:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #1f2329;
  background: #f5f7fa;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #fafcff;
  --surface-tint: #f8fbff;
  --line: #e5e6eb;
  --line-strong: #d0d3d9;
  --text: #1f2329;
  --muted: #6b7280;
  --brand: #409eff;
  --brand-strong: #1677ff;
  --brand-soft: rgba(64, 158, 255, 0.12);
  --success: #0fbf60;
  --warning: #ff9f1a;
  --danger: #f53f3f;
  --danger-soft: rgba(245, 63, 63, 0.12);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --sider-bg: #001529;
  --sider-bg-soft: #0d2338;
  --sider-line: rgba(255, 255, 255, 0.08);
  --sider-text: rgba(255, 255, 255, 0.88);
  --sider-muted: rgba(255, 255, 255, 0.54);
  --sider-active: #1677ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 320px;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

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

.status-box {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.status-box.success {
  background: rgba(15, 191, 96, 0.1);
  color: #0b7a3c;
}

.status-box.error {
  background: var(--danger-soft);
  color: #b71d1d;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-soft);
}

.submit-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 140ms ease;
  white-space: nowrap;
}

.submit-button[aria-busy="true"]::before,
.secondary-button[aria-busy="true"]::before,
.ghost-button[aria-busy="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: button-busy-spin 0.72s linear infinite;
}

.submit-button {
  background: var(--brand-strong);
  color: #fff;
  border-color: var(--brand-strong);
}

.submit-button:hover {
  background: #0958d9;
  border-color: #0958d9;
}

.submit-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.secondary-button {
  background: #fff;
  color: var(--text);
  border-color: var(--line-strong);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.ghost-button {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.danger-button {
  border-color: #ffccc7;
  color: #cf1322;
}

.field {
  display: grid;
  gap: 8px;
}

.field.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #4e5969;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: all 140ms ease;
}

.field select {
  padding-right: 40px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5b6677 50%),
    linear-gradient(135deg, #5b6677 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.14);
}

.field select:hover,
.field select:focus {
  transform: translateY(-1px);
}

.field select:focus {
  background-position:
    calc(100% - 18px) calc(50% + 1px),
    calc(100% - 12px) calc(50% + 1px);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.helper {
  font-size: 12px;
  color: var(--muted);
}

.helper-error {
  color: #b42318;
}

.attachment-selection {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.upload-progress {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: #f8fbff;
}

.upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.upload-progress-label {
  color: var(--text);
}

.upload-progress-value {
  color: var(--brand-strong);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.upload-progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5edf8;
}

.upload-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-strong), #73aaf8);
  transition: width 160ms ease;
}

.attachment-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: #f8fbff;
}

.attachment-chip-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.attachment-chip-meta strong,
.attachment-chip-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip-meta span {
  font-size: 12px;
  color: var(--muted);
}

.attachment-chip-remove {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #d0d7e5;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.attachment-chip-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.attachment-chip-actions a {
  color: var(--brand-strong);
  font-size: 13px;
}

.rich-editor-host {
  display: grid;
}

.rich-editor {
  display: grid;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rich-editor:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.14);
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #d8e1ef;
}

.rich-toolbar-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  position: relative;
  padding-right: 10px;
  border-right: 1px solid #dbe3ef;
}

.rich-toolbar-group:last-child {
  border-right: 0;
  padding-right: 0;
}

.rich-tool-button,
.rich-tool-select,
.rich-color-button {
  min-height: 34px;
  border: 1px solid #cfd9e8;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  border-radius: 8px;
  font-size: 13px;
}

.rich-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 0 10px;
  cursor: pointer;
}

.rich-tool-button:hover,
.rich-tool-select:hover,
.rich-color-button:hover {
  border-color: #9fb7df;
  background: #fff;
}

.rich-tool-select {
  padding: 0 12px;
  outline: none;
}

.rich-color-button {
  min-width: 54px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.rich-color-preview {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 4px;
  background: var(--preview-color, #2563eb);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  flex: 0 0 auto;
}

.rich-editor-surface {
  position: relative;
  padding: 16px 18px;
  background: #fff;
  overflow: hidden;
}

.rich-color-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 6;
  display: grid;
  gap: 12px;
  width: 220px;
  padding: 12px;
  border: 1px solid #d7e3f3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.rich-color-swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.rich-color-swatch {
  width: 28px;
  height: 28px;
  border: 1px solid #d7dfec;
  border-radius: 999px;
  background: var(--swatch-color);
  cursor: pointer;
}

.rich-color-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
  font-size: 13px;
}

.rich-color-custom input {
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rich-editor-body {
  min-height: 220px;
  max-height: min(52vh, 620px);
  overflow-y: auto;
  padding-right: 6px;
  outline: none;
  color: #1f2937;
  line-height: 1.8;
  font-size: 14px;
}

.rich-editor-body.is-empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
}

.rich-editor-body img,
.message-body img,
.faq-answer img {
  width: var(--rich-image-width, auto);
  max-width: min(100%, 520px);
  display: block;
  margin: 14px 0;
  border-radius: 12px;
  border: 1px solid #dbe5f2;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rich-editor-body img {
  cursor: pointer;
}

.rich-editor-body img.is-selected {
  border-color: #2563eb;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.18),
    0 14px 28px rgba(15, 23, 42, 0.12);
}

.rich-image-toolbar {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 16px);
  padding: 8px;
  border: 1px solid #d8e3f3;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.rich-image-tool-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d0dceb;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  cursor: pointer;
}

.rich-image-tool-button:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
}

.rich-image-resize-handle {
  position: absolute;
  z-index: 5;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
  cursor: nwse-resize;
}

.rich-editor-body hr,
.message-body hr,
.faq-answer hr {
  border: 0;
  border-top: 1px solid #d8e1ef;
  margin: 18px 0;
}

.rich-editor-body blockquote,
.message-body blockquote,
.faq-answer blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 4px solid #93c5fd;
  background: #f8fbff;
  color: #334155;
}

.rich-editor-body pre,
.message-body pre,
.faq-answer pre,
.rich-editor-body code,
.message-body code,
.faq-answer code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.rich-editor-body pre,
.message-body pre,
.faq-answer pre {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
}

.rich-editor-body p,
.rich-editor-body h2,
.rich-editor-body h3,
.rich-editor-body ul,
.rich-editor-body ol,
.message-body p,
.message-body h2,
.message-body h3,
.message-body ul,
.message-body ol,
.faq-answer p,
.faq-answer h2,
.faq-answer h3,
.faq-answer ul,
.faq-answer ol {
  margin: 0 0 12px;
}

.rich-editor-body a,
.message-body a,
.faq-answer a {
  color: var(--brand-strong);
  text-decoration: underline;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.pill-row,
.toolbar-row,
.action-row,
.inline-row,
.stats-row,
.section-head,
.message-head,
.history-row,
.ticket-row-meta,
.board-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-row,
.ticket-row-meta,
.stats-row {
  flex-wrap: wrap;
}

.section-head,
.board-toolbar {
  justify-content: space-between;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef3fa;
  color: #335;
}

.pill.brand {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.pill.success {
  background: rgba(15, 191, 96, 0.12);
  color: #0b7a3c;
}

.pill.published {
  background: rgba(22, 119, 255, 0.14);
  color: #1456d9;
}

.pill.warning {
  background: rgba(255, 159, 26, 0.14);
  color: #a85c00;
}

.pill.danger {
  background: rgba(245, 63, 63, 0.12);
  color: #b71d1d;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.page-shell.is-sider-compact {
  grid-template-columns: 88px minmax(0, 1fr);
}

.page-sider {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sider-bg);
  color: var(--sider-text);
  padding: 18px 0 82px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sider-toggle {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 10;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
}

.sider-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.brand-block {
  padding: 0 24px 18px;
  border-bottom: 1px solid var(--sider-line);
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-shell.is-sider-compact .brand-block {
  padding-left: 14px;
  padding-right: 14px;
}

.page-shell.is-sider-compact .brand-top {
  justify-content: center;
}

.page-shell.is-sider-compact .brand-top > div,
.page-shell.is-sider-compact .menu-label,
.page-shell.is-sider-compact [data-account-block],
.page-shell.is-sider-compact .page-sider > .sider-foot,
.page-shell.is-sider-compact .sider-tail {
  display: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
}

.brand-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--sider-muted);
  letter-spacing: 0.08em;
}

.brand-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.menu-block {
  padding: 16px 12px 0;
}

.menu-group {
  display: grid;
  gap: 4px;
}

.menu-parent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.menu-parent.is-active {
  color: #fff;
}

.menu-sub-list {
  display: grid;
  gap: 4px;
  margin-left: 16px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-sub-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  text-align: left;
}

.menu-sub-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-sub-button.is-active {
  background: rgba(22, 119, 255, 0.2);
  color: #fff;
  border-color: rgba(64, 158, 255, 0.2);
}

.menu-label {
  margin: 0 12px 8px;
  font-size: 12px;
  color: var(--sider-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-link,
.menu-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 4px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sider-text);
  cursor: pointer;
  text-align: left;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.page-shell.is-sider-compact .menu-link,
.page-shell.is-sider-compact .menu-button {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.page-shell.is-sider-compact .menu-parent,
.page-shell.is-sider-compact .menu-sub-button {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.page-shell.is-sider-compact .menu-sub-list {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.page-shell.is-sider-compact .menu-link span:last-child,
.page-shell.is-sider-compact .menu-button span:last-child,
.page-shell.is-sider-compact .menu-parent span:last-child,
.page-shell.is-sider-compact .menu-sub-button span:last-child {
  display: none;
}

.menu-link:hover,
.menu-button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.menu-link.is-active,
.menu-button.is-active {
  background: rgba(22, 119, 255, 0.2);
  color: #fff;
  border-color: rgba(64, 158, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(64, 158, 255, 0.1);
}

.menu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.72;
}

.sider-foot {
  padding: 18px 24px 0;
  font-size: 12px;
  color: var(--sider-muted);
  border-top: 1px solid var(--sider-line);
}

.page-sider > .sider-foot:last-child {
  grid-row: -2 / -1;
  align-self: end;
}

.sider-tail {
  grid-row: -2 / -1;
  align-self: end;
  display: grid;
  gap: 12px;
}

.page-main {
  display: grid;
  grid-template-rows: 64px auto;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar-title {
  font-size: 18px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.account-menu {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  min-width: 112px;
  justify-content: center;
  font-weight: 600;
}

.account-trigger-name {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 12;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.account-popover-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.account-popover-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.account-popover-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.account-popover-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  font-size: 13px;
  color: #4e5969;
}

.topbar-chip img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.workspace {
  padding: 16px;
  display: grid;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  align-content: start;
}

.board {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.board.has-detail {
  grid-template-columns: minmax(420px, 1.1fr) minmax(380px, 0.9fr);
  align-items: start;
}

.board-primary,
.board-detail {
  position: relative;
  min-width: 0;
}

.board-primary-shell,
.detail-shell {
  min-width: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.board-primary::after,
.board-detail::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.9), rgba(255, 255, 255, 0.94));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.detail-toggle {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 8;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-strong);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  font-size: 13px;
  font-weight: 600;
}

.detail-toggle:hover {
  border-color: var(--brand);
  background: #fff;
}

.board.has-detail[data-detail-mode="focus"] {
  grid-template-columns: 1fr;
}

.board.has-detail[data-detail-mode="focus"] .board-primary-shell,
.board.has-detail[data-detail-mode="focus"] .detail-shell {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

.board.has-detail[data-detail-mode="peek"] {
  grid-template-columns: 1fr;
}

.board.has-detail[data-detail-mode="peek"] .board-detail {
  min-height: 84px;
}

.board.has-detail[data-detail-mode="peek"] .detail-shell {
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.board.has-detail[data-detail-mode="peek"] .board-detail::after {
  opacity: 1;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  align-content: start;
  min-height: 0;
}

.panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.panel-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-body {
  padding: 16px;
  min-height: 0;
}

.board-detail .panel-body {
  padding-bottom: 72px;
}

.split-stack {
  display: grid;
  gap: 16px;
}

.ticket-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.ticket-table-head,
.ticket-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 120px 110px 140px;
  gap: 12px;
  align-items: center;
}

.review-ticket-table .ticket-table-head,
.review-ticket-table .ticket-row {
  grid-template-columns: minmax(240px, 1.2fr) 110px 130px minmax(180px, 0.95fr) 130px 140px;
}

.review-ticket-table .ticket-entry-warning > .ticket-row {
  background: linear-gradient(180deg, #fffaf0 0%, #fff5de 100%);
  box-shadow: inset 4px 0 0 var(--warning);
}

.review-ticket-table .ticket-entry-danger > .ticket-row {
  background: linear-gradient(180deg, #fff6f6 0%, #ffeded 100%);
  box-shadow: inset 4px 0 0 var(--danger);
}

.review-ticket-table .ticket-entry-warning > .ticket-row:hover,
.review-ticket-table .ticket-entry-warning > .ticket-row.is-active {
  background: #fff0cc;
}

.review-ticket-table .ticket-entry-danger > .ticket-row:hover,
.review-ticket-table .ticket-entry-danger > .ticket-row.is-active {
  background: #ffe4e4;
}

.ticket-table-head {
  padding: 10px 14px;
  background: #fafafa;
  color: #4e5969;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.ticket-row {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
}

.ticket-row:last-child {
  border-bottom: 0;
}

.ticket-row:hover,
.ticket-row.is-active {
  background: #f2f8ff;
}

.ticket-row.is-static {
  cursor: default;
}

.ticket-row.is-static:hover {
  background: #fff;
}

.ticket-row-title {
  display: grid;
  gap: 4px;
}

.ticket-row-title strong {
  font-size: 14px;
  font-weight: 600;
}

.ticket-row-title span {
  font-size: 12px;
  color: var(--muted);
}

.ticket-deadline-stack {
  display: grid;
  gap: 4px;
}

.ticket-deadline-primary {
  font-size: 12px;
  font-weight: 600;
  color: #355;
}

.ticket-deadline-secondary,
.ticket-deadline-empty {
  font-size: 12px;
  color: var(--muted);
}

.ticket-entry {
  display: grid;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.ticket-entry:last-child {
  border-bottom: 0;
}

.ticket-entry > .ticket-row {
  border-bottom: 0;
}

.ticket-entry.is-open > .ticket-row,
.ticket-entry.is-open > .ticket-row:hover {
  background: #f8fbff;
}

.ticket-inline-shell {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    grid-template-rows 260ms cubic-bezier(0.2, 0.75, 0.2, 1),
    padding-top 220ms ease,
    padding-bottom 220ms ease,
    opacity 180ms ease,
    transform 220ms ease,
    visibility 220ms step-end,
    border-color 180ms ease;
}

.ticket-inline-shell > * {
  min-height: 0;
  overflow: hidden;
}

.ticket-entry.is-open .ticket-inline-shell {
  grid-template-rows: 1fr;
  padding-top: 16px;
  padding-bottom: 18px;
  border-top: 1px solid var(--line);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    grid-template-rows 280ms cubic-bezier(0.2, 0.75, 0.2, 1),
    padding-top 220ms ease,
    padding-bottom 220ms ease,
    opacity 180ms ease,
    transform 220ms ease,
    visibility 0s step-start,
    border-color 180ms ease;
}

.ticket-inline-shell .detail-card {
  gap: 18px;
}

.ticket-inline-loading {
  padding: 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ticket-table {
  position: relative;
}

.ticket-list.is-refreshing,
.ticket-table.is-refreshing .empty-state {
  opacity: 0.64;
}

.ticket-table.is-refreshing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(22, 119, 255, 0.08), transparent);
  pointer-events: none;
  animation: faq-refresh-sweep 0.95s ease-in-out infinite;
}

.ticket-list.did-refresh > * {
  animation: ticket-refresh-reveal 400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--ticket-refresh-index, 0) * 32ms);
}

.pill.is-refreshing {
  animation: faq-count-pulse 0.9s ease-in-out infinite;
}

.member-table-head,
.member-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 160px 120px;
  gap: 12px;
  align-items: center;
}

.member-table-head {
  padding: 10px 14px;
  background: #fafafa;
  color: #4e5969;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.member-row {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
}

.member-row:last-child {
  border-bottom: 0;
}

.member-row:hover,
.member-row.is-active {
  background: #f2f8ff;
}

.ticket-list-compact {
  display: grid;
  gap: 12px;
}

.seed-actions-inline {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.detail-card {
  display: grid;
  gap: 16px;
}

.ticket-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.workspace-view {
  display: grid;
  gap: 16px;
  min-height: 0;
  align-content: start;
}

.animated-presence {
  overflow: hidden;
  max-height: 4800px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transform-origin: top;
  transition:
    max-height 300ms cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms step-end;
}

.animated-presence.is-collapsed-anim {
  max-height: 0 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

.animated-presence.is-entering-anim {
  will-change: max-height, opacity, transform;
}

.detail-collapse {
  overflow: hidden;
  max-height: var(--detail-open-height, 0px);
  opacity: 1;
  transform: translateY(0);
  transform-origin: top;
  transition:
    max-height 280ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    margin-top 220ms ease;
}

.detail-collapse.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  margin-top: -8px;
  pointer-events: none;
}

.faq-workspace {
  display: grid;
  gap: 16px;
}

.announcement-workspace {
  display: grid;
  gap: 16px;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.faq-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-header {
  display: grid;
  gap: 10px;
}

.detail-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

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

.stats-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
}

.stats-item strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.stats-item span {
  font-size: 14px;
  font-weight: 600;
}

.message-list,
.history-list,
.faq-list,
.announcement-list,
.announcement-admin-list {
  display: grid;
  gap: 12px;
}

.message-card,
.history-card,
.faq-card,
.announcement-card,
.announcement-featured-card,
.announcement-admin-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.announcement-featured-card {
  padding: 22px 24px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: #d7e7fb;
}

.announcement-featured-title {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

.announcement-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.announcement-featured-content {
  position: relative;
  overflow: hidden;
  max-height: 5200px;
  transition:
    max-height 320ms cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 220ms ease,
    transform 220ms ease;
}

.announcement-featured-content.is-collapsed {
  max-height: 220px;
}

.announcement-body {
  color: #334155;
  line-height: 1.75;
  word-break: break-word;
}

.announcement-featured-fade {
  position: relative;
  margin-top: -74px;
  padding-top: 54px;
  padding-bottom: 6px;
  display: grid;
  justify-items: center;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0) 0%, rgba(248, 251, 255, 0.94) 48%, rgba(248, 251, 255, 1) 100%);
}

.announcement-featured-controls {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.announcement-featured-attachments {
  margin-top: 14px;
}

.announcement-featured-toggle {
  min-width: 124px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.announcement-history-shell {
  display: grid;
  gap: 14px;
}

.announcement-history-section {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.announcement-history-toggle {
  width: fit-content;
}

.announcement-history-list {
  display: grid;
  gap: 12px;
}

.announcement-history-list-shell,
.announcement-card-body-shell {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    grid-template-rows 240ms cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 180ms ease,
    transform 220ms ease,
    visibility 220ms step-end;
}

.announcement-history-list-shell.is-open,
.announcement-card.is-open .announcement-card-body-shell {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    grid-template-rows 260ms cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 180ms ease,
    transform 220ms ease,
    visibility 0s step-start;
}

.announcement-history-list-shell > *,
.announcement-card-body-shell > * {
  min-height: 0;
  overflow: hidden;
}

.announcement-card {
  padding: 0;
  overflow: hidden;
}

.announcement-card.is-open {
  border-color: #cadcf8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.announcement-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 16px 18px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.announcement-card-summary:hover {
  background: #f8fbff;
}

.announcement-card-main h3 {
  margin: 8px 0 8px;
  font-size: 16px;
}

.announcement-card-side {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.announcement-excerpt {
  margin: 0;
  color: #4e5969;
  line-height: 1.65;
}

.announcement-card-body {
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
  background: #fff;
}

.announcement-empty-state {
  margin: 0;
}

.announcement-admin-item {
  display: grid;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.announcement-admin-item:hover {
  border-color: #b7cff3;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.announcement-admin-item.is-active {
  border-color: #7aa7eb;
  background: #f8fbff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.announcement-admin-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.announcement-admin-item-head strong {
  font-size: 15px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.message-card.internal {
  background: #fff8f0;
  border-style: dashed;
}

.message-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.message-head strong {
  font-size: 14px;
}

.message-head span,
.history-row span {
  color: var(--muted);
  font-size: 12px;
}

.message-body,
.faq-answer {
  color: #334155;
  line-height: 1.7;
  word-break: break-word;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.attachment-list a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f8ff;
  border: 1px solid #dbe7ff;
  color: var(--brand-strong);
  font-size: 12px;
}

.history-list {
  border-left: 2px solid #e5edf8;
  padding-left: 12px;
}

.history-card {
  padding: 10px 12px;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-row strong {
  font-size: 14px;
}

.divider {
  height: 1px;
  background: var(--line);
}

.search-input {
  min-width: 220px;
}

.toolbar-row {
  flex-wrap: wrap;
}

.toolbar-row .field {
  min-width: 160px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(420px, 520px);
  background: linear-gradient(120deg, #001529 0%, #0e2942 58%, #132f4c 100%);
}

.auth-cover {
  padding: 56px;
  color: rgba(255, 255, 255, 0.9);
  display: grid;
  align-content: space-between;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.auth-brand h1 {
  margin: 0;
  font-size: 34px;
  color: #fff;
}

.auth-brand p,
.auth-cover p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.auth-points {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.auth-point {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-point strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: #fff;
}

.auth-point-line {
  white-space: nowrap;
  font-size: 14px;
}

.auth-main {
  background: #fff;
  display: grid;
  align-content: center;
  padding: 40px;
}

.auth-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.auth-tabs {
  display: inline-flex;
  background: #f5f7fa;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 16px;
}

.auth-entry-tabs {
  width: 100%;
}

.auth-entry-tabs .auth-tab {
  flex: 1;
}

.auth-tab {
  min-width: 96px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--muted);
}

.auth-tab.is-active {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.auth-card .lead {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.faq-list-panel .faq-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.faq-answer {
  margin-top: 10px;
}

.faq-card {
  padding: 0;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-card.is-open {
  border-color: #cadcf8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.faq-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.faq-card-summary:hover {
  background: #f8fbff;
}

.faq-card-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.faq-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(110px, 0.7fr) minmax(0, 1.3fr) minmax(180px, 0.9fr);
  gap: 8px 16px;
  align-items: end;
}

.faq-summary-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.faq-summary-value {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  min-width: 0;
}

.faq-summary-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.faq-summary-time {
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.faq-summary-excerpt {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faq-card-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 160ms ease, border-color 160ms ease;
  flex: 0 0 auto;
  margin-right: 4px;
}

.faq-card.is-open .faq-card-chevron {
  transform: rotate(-135deg);
  border-color: var(--brand-strong);
}

.faq-card-body-shell,
.faq-module-shell {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    grid-template-rows 240ms cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 180ms ease,
    transform 220ms ease,
    visibility 220ms step-end;
}

.faq-expand-clip {
  min-height: 0;
  overflow: hidden;
}

.faq-card.is-open .faq-card-body-shell,
.faq-ticket-group.is-open .faq-module-shell {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    grid-template-rows 260ms cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 180ms ease,
    transform 220ms ease,
    visibility 0s step-start;
}

.faq-card-body {
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
  background: #fff;
}

.faq-feedback-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.faq-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d9e6f5;
}

.faq-collapse-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d9e6f5;
}

.faq-collapse-button {
  min-width: 88px;
}

.faq-feedback-row-inline {
  margin-top: 0;
  margin-bottom: 2px;
}

.faq-like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d9e2f0;
  background: #fff;
  color: #4b647f;
  cursor: pointer;
  transition: all 140ms ease;
  font-size: 13px;
  font-weight: 600;
}

.faq-like-button:hover {
  border-color: #8db6f7;
  color: var(--brand-strong);
  background: #f8fbff;
}

.faq-like-button.is-active {
  border-color: #8db6f7;
  background: #eef5ff;
  color: var(--brand-strong);
}

.faq-like-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  font-variant-numeric: tabular-nums;
}

.faq-card-body .faq-answer {
  margin-top: 0;
}

.faq-ticket-group {
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-ticket-group.is-target {
  border-color: #7aa8f6;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.faq-ticket-group.is-open {
  border-color: #cadcf8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.faq-ticket-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.faq-ticket-summary:hover {
  background: #f8fbff;
}

.faq-ticket-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.faq-module-list {
  display: grid;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: #fcfdff;
}

.faq-list-panel {
  position: relative;
}

.faq-list-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(22, 119, 255, 0.5), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.faq-list-panel.is-refreshing::before {
  opacity: 1;
  animation: faq-refresh-sweep 0.95s ease-in-out infinite;
}

.faq-list.is-refreshing,
.faq-list-panel.is-refreshing .empty-state {
  opacity: 0.72;
  transform: translateY(2px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.faq-list.did-refresh > * {
  animation: faq-refresh-reveal 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--faq-refresh-index, 0) * 36ms);
}

.pill.is-refreshing,
.topbar-chip.is-refreshing {
  animation: faq-count-pulse 0.9s ease-in-out infinite;
}

@keyframes button-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes faq-refresh-sweep {
  0% {
    transform: translateX(-24%) scaleX(0.45);
    opacity: 0.22;
  }
  45% {
    opacity: 1;
  }
  100% {
    transform: translateX(24%) scaleX(1);
    opacity: 0.16;
  }
}

@keyframes faq-refresh-reveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ticket-refresh-reveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes faq-count-pulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: none;
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 5px rgba(22, 119, 255, 0.1);
  }
}

.faq-module-card {
  padding: 12px 14px;
  overflow: visible;
  border-radius: 12px;
  border-color: #e2ebf5;
}

.faq-module-card h4,
.faq-admin-item h4 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.publish-block-list {
  display: grid;
  gap: 14px;
}

.publish-block-card {
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.publish-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.publish-block-summary {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}

.publish-block-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.publish-block-caption {
  color: #4e5969;
  font-size: 14px;
  line-height: 1.5;
}

.publish-block-side {
  display: flex;
  align-items: flex-start;
  margin-left: auto;
}

.publish-block-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.publish-role-compact {
  min-width: 104px;
  max-width: 116px;
  min-height: 36px;
  padding: 0 32px 0 12px;
  border: 1px solid #ccd8ea;
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%235b6677' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 10px 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  appearance: none;
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.publish-role-compact:hover {
  border-color: var(--brand);
}

.publish-role-compact:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.14);
}

.publish-block-time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.publish-block-editor {
  min-width: 0;
}

.publish-block-attachments-editor {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.publish-block-attachments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.publish-block-attachments-head strong {
  font-size: 14px;
}

.publish-block-attachments-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.publish-block-attachments-group {
  display: grid;
  gap: 8px;
}

.publish-block-attachments-label {
  font-size: 12px;
  font-weight: 700;
  color: #5b6677;
}

.publish-block-attachments-empty {
  padding: 12px 14px;
  border: 1px dashed #d9e6f7;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 13px;
}

.publish-block-attachments {
  display: grid;
  gap: 8px;
}

.publish-block-attachments strong {
  font-size: 13px;
}

.publish-preview-card {
  padding: 18px;
}

.publish-preview-card h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.4;
}

.faq-source-card {
  border-color: #d9e6f7;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.faq-source-actions {
  justify-content: flex-start;
}

.source-attachment-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.source-attachment-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dbe7f5;
  background: #fff;
  flex-wrap: wrap;
}

.source-attachment-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.source-attachment-meta span {
  color: var(--muted);
  font-size: 12px;
}

.source-attachment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.faq-module-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.faq-admin-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.faq-admin-item.is-active {
  border-color: #8db6f7;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.08);
}

.faq-admin-answer {
  color: #334155;
  line-height: 1.7;
}

.faq-admin-actions {
  justify-content: flex-start;
}

.faq-stats-grid {
  margin-top: 8px;
}

.seed-list,
.member-list {
  display: grid;
  gap: 12px;
}

.seed-card,
.member-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.seed-card {
  display: grid;
  gap: 10px;
  background: var(--surface-soft);
}

.member-card {
  display: grid;
  gap: 14px;
}

.member-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.member-card-head strong {
  display: block;
  font-size: 15px;
}

.seed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.member-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-inline-form {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.auth-ghost-light {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.auth-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.44);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-panel-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.auth-inline-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.auth-inline-button:hover {
  color: #0958d9;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(100%, 520px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.modal-head .lead {
  margin: 0;
}

.modal-close {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}

.modal-close:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.faq-list-panel .faq-card h3 {
  margin: 12px 0 0;
}

@media (max-width: 1280px) {
  .management-grid {
    grid-template-columns: 1fr;
  }

  .board,
  .board.has-detail,
  .board.has-detail[data-detail-mode="focus"],
  .board.has-detail[data-detail-mode="peek"] {
    grid-template-columns: 1fr;
  }

  .board.has-detail .board-primary-shell,
  .board.has-detail .detail-shell {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .board-primary::after,
  .board-detail::after {
    display: none;
  }

  .detail-toggle {
    left: 16px;
    right: auto;
    top: auto;
    bottom: 16px;
  }
}

@media (max-width: 1024px) {
  .page-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .page-sider {
    position: relative;
    top: auto;
    grid-template-rows: auto;
    height: auto;
    max-height: 280px;
    padding-bottom: 72px;
  }

  .page-main {
    min-height: 0;
  }

  .sider-toggle {
    right: 16px;
    bottom: 16px;
    top: auto;
  }

  .page-shell.is-sider-compact {
    grid-template-columns: 1fr;
  }

  .page-shell.is-sider-compact .page-sider {
    padding-bottom: 72px;
  }

  .page-shell.is-sider-compact .brand-top > div,
  .page-shell.is-sider-compact .menu-label,
  .page-shell.is-sider-compact [data-account-block],
  .page-shell.is-sider-compact .page-sider > .sider-foot {
    display: block;
  }

  .page-shell.is-sider-compact .menu-link,
  .page-shell.is-sider-compact .menu-button,
  .page-shell.is-sider-compact .menu-parent,
  .page-shell.is-sider-compact .menu-sub-button {
    justify-content: flex-start;
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-shell.is-sider-compact .menu-link span:last-child,
  .page-shell.is-sider-compact .menu-button span:last-child,
  .page-shell.is-sider-compact .menu-parent span:last-child,
  .page-shell.is-sider-compact .menu-sub-button span:last-child {
    display: inline;
  }

  .page-shell.is-sider-compact .menu-sub-list {
    margin-left: 16px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .page-shell.is-sider-compact .brand-block {
    padding-left: 24px;
    padding-right: 24px;
  }

  .sider-foot {
    display: none;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-cover {
    padding: 32px 24px 12px;
    align-content: start;
    gap: 28px;
  }

  .auth-point-line {
    white-space: normal;
    font-size: inherit;
  }

  .auth-main {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .topbar,
  .topbar-actions,
  .toolbar-row,
  .section-head,
  .message-head,
  .history-row,
  .board-toolbar,
  .action-row,
  .inline-row {
    flex-direction: column;
    align-items: stretch;
  }

  .field.two,
  .stats-grid,
  .member-card-grid,
  .faq-filter-grid,
  .announcement-card-summary,
  .member-table-head,
  .member-row,
  .ticket-table-head,
  .ticket-row {
    grid-template-columns: 1fr;
  }

  .ticket-table-head,
  .member-table-head {
    display: none;
  }

  .ticket-row,
  .member-row {
    gap: 6px;
  }

  .announcement-card-side {
    justify-items: start;
    text-align: left;
  }

  .faq-card-summary {
    grid-template-columns: 1fr;
  }

  .faq-ticket-summary {
    grid-template-columns: 1fr;
  }

  .faq-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .faq-summary-label {
    display: none;
  }

  .faq-summary-title {
    white-space: normal;
  }

  .faq-summary-time {
    font-size: 13px;
  }

  .topbar-actions,
  .search-input,
  .toolbar-row .field,
  .submit-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .workspace {
    padding: 12px;
  }

  .auth-cover,
  .auth-main {
    padding: 20px;
  }

  .modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .publish-block-side,
  .publish-block-actions {
    width: 100%;
    justify-items: stretch;
    justify-content: stretch;
  }

  .publish-block-attachments-head,
  .publish-block-attachments-actions {
    align-items: stretch;
  }

  .publish-role-compact {
    width: 100%;
    max-width: none;
  }
}
