.fb-channels,
.fb-channel {
  display: none !important;
}
.fb-meta-grid--tech {
  grid-template-columns: minmax(140px, 220px);
}
.fb-shot-block {
  margin-top: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.55rem;
  background: #f8fafc;
}
.fb-shot-block-title {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
}
.fb-shot-block-title em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem;
  color: #94a3b8;
}
.fb-new-split {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.fb-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
@media (max-width: 720px) {
  .fb-meta-grid { grid-template-columns: 1fr; }
}
.fb-field input[type="text"],
.fb-field select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.9rem;
}
.fb-field em {
  font-style: normal;
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.78rem;
}
.fb-attach-field input[type="file"] {
  font-size: 0.82rem;
}
.fb-dropzone {
  width: 100%;
}
.fb-dropzone-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.85rem 0.7rem;
  border: 1.5px dashed #cbd5e1;
  border-radius: 0.55rem;
  background: #fff;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.fb-dropzone-btn:hover,
.fb-dropzone.is-dragover .fb-dropzone-btn {
  border-color: #93c5fd;
  background: #f8fbff;
  color: #1d4ed8;
}
.fb-dropzone-ico {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.fb-dropzone-title {
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.25;
}
.fb-dropzone-hint {
  font-size: 0.72rem;
  color: #94a3b8;
}
.fb-file-previews,
.fb-file-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr));
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.fb-file-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  background: #fff;
  overflow: hidden;
  min-height: 4.6rem;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.fb-file-chip:hover {
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.fb-file-chip-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.1rem;
  background: #f1f5f9;
  overflow: hidden;
}
.fb-file-chip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fb-file-chip-thumb i {
  font-size: 1.15rem;
  color: #64748b;
}
.fb-file-chip-name {
  font-size: 0.65rem;
  line-height: 1.2;
  padding: 0.28rem 0.3rem 0.35rem;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-file-chip-remove {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.fb-file-chip-remove:hover {
  background: #b91c1c;
}
.fb-kinds--stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  width: 100%;
}
.fb-kinds--stack .fb-kind {
  width: 100%;
  justify-content: flex-start;
  border-radius: 0.45rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.86rem;
}
.fb-file-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 14000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  box-sizing: border-box;
}
.fb-file-preview-modal[hidden] {
  display: none !important;
}
.fb-file-preview-dialog {
  width: min(920px, calc(100vw - 1.2rem));
  max-height: calc(100vh - 1.2rem);
  background: #fff;
  border-radius: 0.65rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fb-file-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  flex: 0 0 auto;
}
.fb-file-preview-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-file-preview-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  padding: 0.75rem;
  overflow: auto;
}
.fb-file-preview-body img {
  max-width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: 0.35rem;
  background: #fff;
}
.fb-file-preview-body iframe {
  width: min(100%, 860px);
  height: min(78vh, 820px);
  border: 0;
  border-radius: 0.35rem;
  background: #fff;
}
.fb-file-preview-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: #e2e8f0;
  text-align: center;
  padding: 1.5rem;
}
.fb-file-preview-fallback > i {
  font-size: 2.4rem;
  color: #93c5fd;
}
.fb-file-preview-name {
  font-size: 1rem;
  font-weight: 650;
  color: #fff;
  word-break: break-word;
}
.fb-file-preview-meta {
  font-size: 0.82rem;
  color: #94a3b8;
}
.fb-shot-details {
  margin-top: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  padding: 0.35rem 0.55rem 0.55rem;
  background: #f8fafc;
}
.fb-shot-details > summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
  padding: 0.25rem 0;
}
.fb-shot-details[open] > summary {
  margin-bottom: 0.45rem;
}
.fb-kinds {
  flex-wrap: wrap;
}

.app-sidebar-feedback {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--app-sidebar-muted, #94a3b8);
  padding: 0.38rem 0.5rem;
  border-radius: 0.45rem;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
}
.app-sidebar-feedback:hover {
  background: var(--app-sidebar-hover);
  color: #fff;
}
.app-sidebar-feedback i {
  width: 1.35rem;
  text-align: center;
  font-size: 1.1rem;
}
html.app-sidebar-collapsed .app-sidebar-feedback {
  justify-content: center;
  padding: 0.5rem 0;
  gap: 0;
  min-height: 2.35rem;
}
html.app-sidebar-collapsed .app-sidebar-feedback i {
  width: 1.45rem;
  font-size: 1.28rem;
  line-height: 1;
}
html.app-sidebar-collapsed .app-sidebar-feedback .app-nav-label {
  display: none;
}

.fb-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  box-sizing: border-box;
}
.fb-modal[hidden] {
  display: none !important;
}
.fb-dialog {
  width: min(1120px, calc(100vw - 1.2rem));
  height: min(860px, calc(100vh - 1.2rem));
  max-width: calc(100vw - 1.2rem);
  max-height: calc(100vh - 1.2rem);
  overflow: hidden;
  background: #fff;
  border-radius: 0.65rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.fb-dialog--tech,
.fb-dialog--work {
  width: min(1680px, calc(100vw - 0.4rem));
  height: min(980px, calc(100vh - 0.6rem));
}
.fb-dialog-head,
.fb-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  flex: 0 0 auto;
}
.fb-dialog-foot {
  border-bottom: 0;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}
.fb-dialog-head h2,
.fb-dialog-title {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.fb-dialog-title-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  flex: 0 0 auto;
}
.fb-dialog--tech .fb-dialog-title-ico {
  background: linear-gradient(145deg, #fee2e2, #fecaca);
  color: #b91c1c;
  box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.12);
}
.fb-dialog--work .fb-dialog-title-ico {
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.fb-dialog--tech .fb-dialog-head {
  background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
}
.fb-dialog--work .fb-dialog-head {
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.fb-dialog--tech .fb-compose-fields,
.fb-dialog--work .fb-compose-fields {
  flex: 0 1 auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.65rem 0.7rem;
}
.fb-dialog--work .fb-kinds--stack {
  grid-template-columns: 1fr 1fr;
}
.fb-dialog--work .fb-meta-grid {
  grid-template-columns: 1fr;
}
.fb-work-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}
.fb-work-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.7rem;
  flex: 0 0 auto;
}
.fb-work-main-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e3a8a;
}
.fb-work-main-title i {
  color: #2563eb;
}
.fb-work-main-head em {
  font-style: normal;
  font-size: 0.78rem;
  color: #64748b;
}
.fb-field--message-fill {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.fb-field--message-fill textarea,
.fb-dialog--work .fb-field--message-fill textarea {
  flex: 1 1 auto;
  min-height: min(42vh, 360px);
  height: auto;
  max-height: none;
  resize: vertical;
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.fb-work-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  flex: 0 0 auto;
}
.fb-work-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  line-height: 1.35;
}
.fb-work-tip i {
  color: #2563eb;
  margin-top: 0.1rem;
  flex: 0 0 auto;
}
@media (max-width: 1100px) {
  .fb-work-tips {
    grid-template-columns: 1fr;
  }
}
.fb-dialog-head-titles {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
}
.fb-dialog-title {
  flex-wrap: wrap;
  min-width: 0;
}
.fb-dialog-sub {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
  white-space: normal;
}
.fb-dialog-sub::before {
  content: "·";
  margin-right: 0.45rem;
  color: #94a3b8;
}
.fb-dialog-sub kbd {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 0.3rem;
  background: #f8fafc;
  color: #334155;
  font: 650 0.72rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.fb-dialog--tech .fb-shot-block {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  padding: 0.55rem;
  gap: 0.45rem;
  background: #eef2f7;
  border: 1px solid #d0d7e2;
  border-radius: 0.55rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.fb-shot-toolbar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.45rem;
  background: #fff;
  border: 1px solid #dbe3ee;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.fb-dialog--tech .fb-shot-block-title {
  margin-bottom: 0;
}
.fb-dialog--tech .fb-canvas-wrap {
  flex: 1 1 auto;
  min-height: min(48vh, 420px);
  height: 0;
  border: 1px solid #c5d0de;
  border-radius: 0.45rem;
  background: #dbe3ee;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.fb-shot-hint {
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
  padding: 0.15rem 0.1rem 0;
}
.fb-shot-block-title > span i {
  color: #2563eb;
  margin-right: 0.2rem;
}
.fb-shot-block-title em {
  color: #3b82f6;
}
.fb-dialog-head-main {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.fb-dialog-head .fb-kinds {
  flex: 0 1 auto;
}
.fb-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  box-sizing: border-box;
}
.fb-dialog--tech .fb-dialog-body,
.fb-dialog--work .fb-dialog-body {
  padding: 0.65rem 0.85rem;
}
#fbComposeView,
[data-fb="compose-view"] {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.fb-compose-fields {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-width: 0;
}
.fb-urgency {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  width: 100%;
}
.fb-urgency-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.fb-urgency-btn.is-active {
  background: #e8f1ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.fb-urgency-btn[data-fb-urgency="urgent"].is-active {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.12);
}
.fb-dialog--tech .fb-canvas-wrap {
  flex: 1 1 auto;
  min-height: min(48vh, 420px);
  height: 0;
}
@media (min-width: 980px) {
  .fb-dialog--tech [data-fb="compose-view"],
  .fb-dialog--work [data-fb="compose-view"] {
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
  }
  .fb-dialog--tech .fb-compose-fields,
  .fb-dialog--work .fb-compose-fields {
    flex: 0 0 300px;
    width: 300px;
    max-width: 320px;
    overflow: auto;
    padding-right: 0.15rem;
  }
  .fb-dialog--tech .fb-shot-block,
  .fb-dialog--work .fb-work-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
  }
  .fb-dialog--tech .fb-canvas-wrap {
    min-height: 0;
  }
  .fb-dialog--tech .fb-meta-grid--tech {
    grid-template-columns: 1fr;
  }
}
#fbComposeView[hidden],
#fbSuccessView[hidden],
#fbComposeFoot[hidden],
#fbSuccessFoot[hidden],
#fbSuccessBadge[hidden],
#fbKinds[hidden],
[data-fb="compose-view"][hidden],
[data-fb="success-view"][hidden],
[data-fb="compose-foot"][hidden],
[data-fb="success-foot"][hidden],
[data-fb="success-badge"][hidden],
[data-fb="kinds"][hidden] {
  display: none !important;
}
.fb-success-view,
[data-fb="success-view"] {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.15rem 0 0.35rem;
}
.fb-success-hero {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.fb-success-hero > i {
  color: #16a34a;
  font-size: 1.55rem;
  line-height: 1.2;
  margin-top: 0.05rem;
}
.fb-success-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.fb-success-sub {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: #64748b;
}
.fb-success-shot-wrap {
  align-self: center;
  width: min(640px, 100%);
  max-height: 42vh;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-success-shot {
  display: block;
  max-width: 100%;
  max-height: 42vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.fb-success-shot-empty {
  padding: 2rem 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}
.fb-success-msg-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}
.fb-success-subject {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  background: #f8fafc;
  font-size: 0.9rem;
  font-weight: 650;
  color: #0f172a;
  word-break: break-word;
}
.fb-success-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.fb-success-files li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.32rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  background: #f8fafc;
  font-size: 0.82rem;
  color: #0f172a;
}
.fb-success-files li i {
  flex: 0 0 auto;
  width: 1rem;
  text-align: center;
  color: #64748b;
}
.fb-success-files li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-success-msg {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  background: #f8fafc;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  max-height: 9rem;
  overflow: auto;
}
.fb-success-hint {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: #475569;
}
.fb-success-view > .btn {
  align-self: flex-start;
}

.fb-modal.is-success .fb-dialog,
.fb-modal.is-success .fb-dialog--tech,
.fb-modal.is-success .fb-dialog--work {
  width: min(26rem, calc(100vw - 1.6rem));
  height: auto;
  max-height: calc(100vh - 1.5rem);
}
.fb-modal.is-success[data-fb-channel="tech"] .fb-dialog,
.fb-modal.is-success[data-fb-channel="tech"] .fb-dialog--tech {
  width: min(36rem, calc(100vw - 1.6rem));
}
.fb-modal.is-success .fb-dialog-head,
.fb-modal.is-success .fb-dialog-foot {
  padding: 0.55rem 0.8rem;
}
.fb-modal.is-success .fb-dialog-sub {
  display: none;
}
.fb-modal.is-success .fb-dialog-body {
  flex: 0 1 auto;
  padding: 0.7rem 0.85rem 0.8rem;
  overflow: auto;
}
.fb-modal.is-success .fb-success-view,
.fb-modal.is-success [data-fb="success-view"] {
  flex: 0 1 auto;
  min-height: 0;
  overflow: visible;
  gap: 0.45rem;
  padding: 0;
}
.fb-modal.is-success .fb-success-hero > i {
  font-size: 1.25rem;
}
.fb-modal.is-success .fb-success-title {
  font-size: 0.95rem;
}
.fb-modal.is-success .fb-success-shot-wrap {
  align-self: stretch;
  width: 100%;
  max-height: none;
  overflow: hidden;
  border-radius: 0.4rem;
}
.fb-modal.is-success .fb-success-shot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  background: #f8fafc;
}
.fb-modal.is-success .fb-success-shot-empty {
  padding: 0.7rem 0.5rem;
  font-size: 0.8rem;
}
.fb-modal.is-success .fb-success-msg {
  max-height: none;
  overflow: visible;
  padding: 0.45rem 0.6rem;
  font-size: 0.84rem;
}
.fb-modal.is-success .fb-success-hint {
  font-size: 0.78rem;
}
.fb-pill--ok {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}
.fb-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.fb-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.fb-kind i {
  font-size: 0.78rem;
  opacity: 0.85;
}
.fb-kind:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.fb-kind.is-active {
  background: #e8f1ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}
.fb-kind[data-fb-kind="bug"].is-active {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.1);
}
.fb-kind[data-fb-kind="suggestion"].is-active {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
  box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.1);
}
.fb-kind[data-fb-kind="question"].is-active {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
  box-shadow: 0 0 0 1px rgba(21, 128, 61, 0.1);
}
.fb-kind[data-fb-kind="notice"].is-active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.fb-field {
  display: grid;
  gap: 0.28rem;
  flex: 0 0 auto;
}
.fb-field > span,
.fb-field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}
.fb-field-label i {
  width: 0.95rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.78rem;
}
.fb-urgency-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 0.45rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.fb-urgency-btn i {
  font-size: 0.85rem;
}
.fb-field textarea {
  width: 100%;
  min-height: 56px;
  max-height: 72px;
  resize: none;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  box-sizing: border-box;
}
.fb-field--message textarea,
.fb-dialog--tech .fb-field--message textarea {
  min-height: 7.5rem;
  max-height: min(50vh, 28rem);
  height: 7.5rem;
  resize: vertical;
}
.fb-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.fb-tools-group {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.fb-tools-sep {
  width: 1px;
  height: 1.35rem;
  background: #cbd5e1;
  margin: 0 0.15rem;
  flex: 0 0 auto;
}
.fb-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  box-sizing: border-box;
}
.fb-tool-btn .fb-tool-ico {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}
.fb-tool-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.fb-tool-btn.is-active {
  background: #e8f1ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.fb-tool-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fb-tool-btn--wide {
  width: 2rem;
}
.fb-colors {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.fb-color-swatch {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e1;
  background: var(--fb-swatch, #ef4444);
  padding: 0;
  cursor: pointer;
}
.fb-color-swatch.is-active {
  box-shadow: 0 0 0 2px #2563eb;
}
.fb-color-swatch[data-fb-color="#ffffff"] {
  box-shadow: 0 0 0 1px #94a3b8;
}
.fb-color-swatch[data-fb-color="#ffffff"].is-active {
  box-shadow: 0 0 0 2px #2563eb;
}
.fb-text-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #cbd5e1;
  border-radius: 0.45rem;
  background: #fff;
  overflow: hidden;
}
.fb-text-group .fb-tool-btn {
  border: 0;
  border-radius: 0;
  border-right: 1px solid #e2e8f0;
  width: 2rem;
  height: 1.9rem;
}
.fb-text-group .fb-tool-btn.is-active {
  background: #e8f1ff;
  color: #1d4ed8;
}
.fb-text-group .fb-font-size-label {
  min-width: 1.7rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  border-right: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #475569;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  background: #f8fafc;
}
.fb-font-slider {
  width: 5.5rem;
  height: 1.9rem;
  margin: 0 0.45rem 0 0.35rem;
  padding: 0;
  accent-color: #2563eb;
  cursor: pointer;
  vertical-align: middle;
}
.fb-font-size-label {
  min-width: 1.6rem;
  text-align: center;
  font-size: 0.78rem;
  color: #475569;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.fb-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}
.fb-zoom-label {
  min-width: 3.2rem;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.fb-canvas-wrap {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  background: #e8edf3;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 180px;
  height: 0; /* flex fills remaining space; prevents growing dialog */
  overscroll-behavior: contain;
}
.fb-canvas-wrap.is-pan,
.fb-canvas-wrap.is-pan canvas {
  cursor: grab;
}
.fb-canvas-wrap.is-pan.is-panning,
.fb-canvas-wrap.is-pan.is-panning canvas {
  cursor: grabbing;
}
.fb-canvas-wrap.is-draw canvas {
  cursor: crosshair;
}
.fb-canvas-wrap.is-text canvas {
  cursor: text;
}
.fb-canvas-wrap.is-text.is-dragging-text,
.fb-canvas-wrap.is-text.is-dragging-text canvas {
  cursor: move;
}
.fb-canvas-wrap canvas {
  display: block;
  max-width: none;
  touch-action: none;
  transform-origin: 0 0;
}
.fb-text-input {
  position: absolute;
  z-index: 2;
  min-width: 8rem;
  max-width: 60%;
  border: 1px solid #2563eb;
  border-radius: 0.25rem;
  padding: 0.2rem 0.35rem;
  font: 600 16px/1.2 system-ui, sans-serif;
  color: #ef4444;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.fb-canvas-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}
.fb-status {
  font-size: 0.8rem;
  color: #64748b;
  min-height: 0;
  flex: 0 0 auto;
}
.fb-status:empty {
  display: none;
}
.fb-status.is-error {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  background: #dc2626;
  border: none;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}
.fb-status.is-error i {
  flex: 0 0 auto;
  font-size: 1rem;
}
.fb-status.is-alert-shake {
  animation: fb-kind-shake 0.45s ease;
}
.fb-status.is-ok {
  color: #15803d;
  font-weight: 650;
}
.fb-kind-error {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}
.fb-kind-error[hidden] {
  display: none !important;
}
.fb-kind-error i {
  flex: 0 0 auto;
  font-size: 1rem;
}
.fb-field.is-invalid,
.fb-field--kinds.is-invalid {
  padding: 0.5rem;
  border-radius: 0.55rem;
  background: #fff5f5;
  border: 2px solid #ef4444;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.15);
  box-sizing: border-box;
}
.fb-field.is-invalid .fb-field-label,
.fb-field--kinds.is-invalid .fb-field-label {
  color: #b91c1c;
  font-weight: 700;
}
.fb-field.is-invalid input,
.fb-field.is-invalid textarea,
.fb-field.is-invalid select,
.fb-field--kinds.is-invalid .fb-kind {
  border-color: #fca5a5;
  background: #fff;
}
.fb-field.is-invalid .fb-dropzone {
  border-color: #fca5a5;
  background: #fff;
}
.fb-field.is-invalid-shake,
.fb-field--kinds.is-invalid-shake {
  animation: fb-kind-shake 0.45s ease;
}
@keyframes fb-kind-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
.fb-hint-key {
  font-size: 0.75rem;
  color: #94a3b8;
}
@media (max-width: 640px) {
  .fb-dialog {
    width: calc(100vw - 0.6rem);
    height: calc(100vh - 0.6rem);
  }
  .fb-modal.is-success .fb-dialog,
  .fb-modal.is-success .fb-dialog--tech,
  .fb-modal.is-success .fb-dialog--work {
    width: min(36rem, calc(100vw - 1rem));
    height: auto;
    max-height: calc(100vh - 1rem);
  }
  .fb-dialog-body {
    padding: 0.55rem 0.65rem;
  }
  .fb-field textarea {
    min-height: 48px;
    max-height: 56px;
  }
  .fb-field--message textarea,
  .fb-dialog--tech .fb-field--message textarea {
    min-height: 6rem;
    max-height: min(40vh, 20rem);
    height: 6rem;
    resize: vertical;
  }
  .fb-zoom-controls {
    margin-left: 0;
    width: 100%;
  }
}

/* ——— Список / просмотр обращений ——— */
.fb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}
.fb-pill--bug {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.fb-pill--remark {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}
.fb-pill--suggestion {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.fb-pill--question {
  background: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}
.fb-pill--request {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}
.fb-pill--notice {
  background: #fdf2f8;
  color: #9d174d;
  border-color: #fbcfe8;
}
.fb-pill--urgent {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: #fecaca;
  font-weight: 700;
  margin-left: 0.2rem;
}
.fb-view-attach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  flex: 0 0 auto;
}
.fb-view-attach-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 0.15rem;
}
.fb-attach-link {
  font-size: 0.82rem;
  color: #1d4ed8;
  text-decoration: none;
  background: #eff6ff;
  border-radius: 0.35rem;
  padding: 0.25rem 0.5rem;
}
.fb-attach-link:hover { text-decoration: underline; }
.fb-pill--new {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}
.fb-pill--in_progress {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.fb-pill--done {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.fb-pill--rejected {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.fb-view-modal {
  position: fixed;
  inset: 0;
  z-index: 12500;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  box-sizing: border-box;
}
.fb-view-modal[hidden] {
  display: none !important;
}
.fb-view-dialog {
  width: min(1680px, calc(100vw - 0.4rem));
  height: min(980px, calc(100vh - 0.6rem));
  max-width: calc(100vw - 0.4rem);
  max-height: calc(100vh - 0.6rem);
  background: #fff;
  border-radius: 0.65rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.fb-view-dialog.is-tech .fb-dialog-title-ico {
  background: linear-gradient(145deg, #fee2e2, #fecaca);
  color: #b91c1c;
  box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.12);
}
.fb-view-dialog.is-work .fb-dialog-title-ico {
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.12);
}
.fb-view-head,
.fb-view-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  flex: 0 0 auto;
}
.fb-view-foot {
  border-bottom: 0;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}
.fb-view-foot-spacer {
  flex: 1 1 auto;
  min-width: 0.5rem;
}
.fb-view-foot .text-danger {
  color: #b91c1c;
}
.fb-view-foot .text-danger:hover {
  color: #991b1b;
  background: #fef2f2;
}
.fb-view-head-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}
.fb-view-head h2,
.fb-view-head .fb-dialog-title {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
  white-space: normal;
  min-width: 0;
}
.fb-view-head .fb-dialog-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.fb-modal .wh-co-icon-btn,
.fb-view-modal .wh-co-icon-btn,
.fb-dialog-head .wh-co-icon-btn,
.fb-view-head .wh-co-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.fb-modal .wh-co-icon-btn:hover,
.fb-view-modal .wh-co-icon-btn:hover,
.fb-dialog-head .wh-co-icon-btn:hover,
.fb-view-head .wh-co-icon-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.fb-modal .wh-co-icon-btn:focus-visible,
.fb-view-modal .wh-co-icon-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}
.fb-view-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
}
.fb-view-dialog.has-shot .fb-view-body {
  flex-direction: row;
  align-items: stretch;
}
.fb-view-side {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}
.fb-view-dialog.has-shot .fb-view-side {
  flex: 0 0 360px;
  width: 360px;
  max-width: 380px;
}
.fb-view-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.fb-view-main[hidden] {
  display: none !important;
}
.fb-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  color: #64748b;
  font-size: 0.84rem;
  flex: 0 0 auto;
}
.fb-view-meta a {
  color: #1d4ed8;
  text-decoration: none;
}
.fb-view-meta a:hover {
  text-decoration: underline;
}
.fb-view-msg {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.7rem 0.85rem;
  margin: 0;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  line-height: 1.5;
  max-height: none;
  overflow: auto;
  flex: 0 1 auto;
}
.fb-view-dialog:not(.has-shot) .fb-view-msg {
  flex: 0 1 40%;
  min-height: 7rem;
}
.fb-view-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.fb-view-tools .btn.is-active {
  background: #e8f1ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.fb-view-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin-left: 0.25rem;
}
.fb-view-shot {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #e8edf3;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  overscroll-behavior: contain;
}
.fb-view-shot.is-pan,
.fb-view-shot.is-pan img {
  cursor: grab;
}
.fb-view-shot.is-pan.is-panning,
.fb-view-shot.is-pan.is-panning img {
  cursor: grabbing;
}
.fb-view-shot img {
  display: block;
  max-width: none;
  height: auto;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
}
.fb-view-shot-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}
.fb-view-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0.75rem;
  flex: 0 0 auto;
}
.fb-thread {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-height: 8rem;
  overflow: auto;
  padding: 0.15rem 0.1rem 0.35rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 0.1rem;
}
.fb-thread-empty {
  color: #94a3b8;
  font-size: 0.84rem;
  padding: 0.65rem 0.2rem;
}
.fb-msg {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.45rem;
  border-radius: 0.4rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  min-height: 2.15rem;
  box-sizing: border-box;
  flex: 0 0 auto;
  white-space: normal;
  overflow: visible;
}
.fb-msg.is-staff {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.fb-msg.is-author {
  background: #f8fafc;
}
.fb-msg-who {
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.82rem;
  color: #0f172a;
}
.fb-msg-role {
  flex: 0 0 auto;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #94a3b8;
}
.fb-msg-time {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.75rem;
  color: #94a3b8;
}
.fb-msg-status {
  flex: 0 0 auto;
  font-size: 0.68rem !important;
  padding: 0.05rem 0.35rem !important;
}
.fb-msg-body {
  flex: 1 1 12rem;
  min-width: 0;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.fb-composer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding-top: 0.35rem;
  border-top: 1px solid #e2e8f0;
}
.fb-composer-msg {
  min-width: 0;
  width: 100%;
}
.fb-composer-msg textarea {
  min-height: 4.5rem;
  height: 4.5rem;
  width: 100%;
  resize: vertical;
  box-sizing: border-box;
}
.fb-composer-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.45rem;
  min-width: 0;
}
.fb-composer-status {
  flex: 1 1 8rem;
  min-width: 7rem;
  max-width: 12rem;
  width: auto;
}
.fb-composer-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.4rem;
  margin-left: auto;
  white-space: nowrap;
}
.fb-view-dialog:not(.has-shot) .fb-composer {
  flex-direction: row;
  align-items: flex-end;
  gap: 0.65rem;
}
.fb-view-dialog:not(.has-shot) .fb-composer-msg {
  flex: 1 1 auto;
}
.fb-view-dialog:not(.has-shot) .fb-composer-toolbar {
  flex: 0 0 auto;
}
@media (max-width: 980px) {
  .fb-view-dialog.has-shot .fb-view-body {
    flex-direction: column;
  }
  .fb-view-dialog.has-shot .fb-view-side {
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    max-height: 46%;
  }
  .fb-view-main {
    min-height: 220px;
  }
}
@media (max-width: 720px) {
  .fb-view-grid {
    grid-template-columns: 1fr;
  }
  .fb-view-dialog:not(.has-shot) .fb-composer {
    flex-direction: column;
    align-items: stretch;
  }
  .fb-view-dialog {
    width: calc(100vw - 0.4rem);
    height: calc(100vh - 0.4rem);
  }
}
.fb-view-field {
  display: grid;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: #475569;
}
.fb-view-field textarea,
.fb-view-field select {
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  padding: 0.35rem 0.55rem;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}
.fb-view-field select,
#fbAdminStatus {
  height: 2.1rem;
  min-height: 2.1rem;
}
.fb-view-readonly {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  padding: 0.55rem 0.65rem;
  white-space: pre-wrap;
  margin: 0;
  font-family: inherit;
  color: #0f172a;
  min-height: 2.5rem;
  max-height: 88px;
  overflow: auto;
}
.fb-row-click {
  cursor: pointer;
}
.fb-row-click:hover td {
  background: #fff8d6 !important;
}
.fb-col-num {
  width: 3.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #475569;
}
.fb-attach-link.js-file-preview {
  cursor: zoom-in;
}
html.warehouse-page-active .modal.task-file-preview-modal,
.task-file-preview-modal {
  position: fixed !important;
  z-index: 14000 !important;
}
html.warehouse-page-active:has(.task-file-preview-modal.show) .modal-backdrop,
body:has(.task-file-preview-modal.show) .modal-backdrop {
  z-index: 13950 !important;
}
.task-file-preview-heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 0.5rem;
}
.task-file-preview-heading .modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  max-height: 2.6em;
  overflow: hidden;
}
.task-file-preview-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.25;
  color: #64748b;
}
.task-file-preview-sub .task-file-preview-author {
  color: #334155;
  font-weight: 600;
}
.task-file-preview-sub .task-file-preview-sep {
  color: #cbd5e1;
}
.task-file-preview-modal .modal-dialog {
  width: min(99vw, 96rem);
  max-width: 96rem;
  margin: 0.4rem auto;
  height: calc(100vh - 0.8rem);
  max-height: calc(100vh - 0.8rem);
}
.task-file-preview-modal .modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 10px;
}
.task-file-preview-modal .modal-header {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  min-height: 0;
  align-items: flex-start;
  gap: 0.35rem;
}
.task-file-preview-modal .modal-footer {
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  min-height: 0;
  gap: 0.4rem;
}
.task-file-preview-modal .modal-body.task-file-preview-body {
  padding: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.task-file-preview-body.is-doc {
  background: #f8fafc;
  align-items: stretch;
  justify-content: stretch;
}
.task-file-preview-body.is-docx {
  background: #525659;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}
.task-file-preview-docx-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 1rem 0.75rem 1.5rem;
}
.task-file-preview-docx-host {
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
}
.task-file-preview-fallback {
  margin: auto;
  max-width: 28rem;
  text-align: center;
  color: #e2e8f0;
  padding: 2rem 1rem;
}
.task-file-preview-loading {
  color: #cbd5e1;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.task-file-preview-img,
.task-file-preview-video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.task-file-preview-audio { width: min(36rem, 90%); }
.task-file-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
