/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@-ms-viewport {
  width: device-width;
}
body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f3f6fa;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #eef3f8;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid #dbe5ef;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

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

.login-brand .ant-typography {
  margin: 0;
}

.public-document-page {
  min-height: 100vh;
  padding: 32px 20px;
  background: #f3f6fa;
}

.public-document-card {
  width: min(960px, 100%);
  margin: 0 auto;
  border: 1px solid #dbe5ef;
}

.public-document-page:has(.document-with-toc-outside .document-toc) {
  padding-left: 372px;
}

.public-document-card .document-with-toc-outside {
  display: block;
}

.public-document-card .document-with-toc-outside .document-toc {
  position: fixed;
  top: 32px;
  left: max(20px, calc((100vw - 1320px) / 2));
  width: 300px;
  z-index: 5;
}

.document-with-toc {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.document-without-toc {
  min-width: 0;
}

.document-toc {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 12px;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #f8fafc;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.document-toc::-webkit-scrollbar {
  width: 8px;
}

.document-toc::-webkit-scrollbar-track {
  background: transparent;
}

.document-toc::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  background-clip: content-box;
}

.document-toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.document-toc-item {
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.document-toc-item:hover {
  background: #e8f0f8;
  color: #0f172a;
}

.document-toc-item.level-2 {
  padding-left: 18px;
}

.document-toc-item.level-3 {
  padding-left: 30px;
  font-size: 12px;
  color: #64748b;
}

.document-toc-content {
  min-width: 0;
}

.document-toc-content :where(h1, h2, h3, [data-content-type='heading']) {
  scroll-margin-top: 18px;
}

.app-shell {
  min-height: 100vh;
}

.mobile-nav {
  display: none;
}

.mobile-actions {
  display: none;
}

.app-sider {
  display: flex;
  flex-direction: column;
  position: sticky !important;
  top: 0;
  height: 100vh;
  border-right: 1px solid #e5eaf1;
  box-shadow: 8px 0 24px rgba(16, 24, 40, 0.03);
}

.app-sider.ant-layout-sider-collapsed {
  border-right: 0;
  box-shadow: none;
}

.sidebar-show-button {
  position: fixed;
  top: 14px;
  left: 12px;
  z-index: 30;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
}

.brand > div:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
}

.sidebar-hide-button {
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #0f172a;
  color: #5eead4;
  font-weight: 900;
  letter-spacing: 0;
}

.brand .ant-typography {
  display: block;
  margin: 0;
}

.sidebar-actions {
  padding: 0 16px 14px;
}

.sidebar-actions-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
}

.sidebar-action-stack,
.sidebar-action-stack .ant-btn {
  width: 100%;
}

.sidebar-action-stack .ant-btn {
  justify-content: flex-start;
}

.app-sider .ant-menu {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  border-inline-end: 0 !important;
}

.local-card {
  flex: 0 0 auto;
  margin: 12px 16px 16px;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
}

.local-auth-actions {
  width: 100%;
  margin-top: 12px;
}

.content {
  padding: 16px 24px 32px;
}

.release-workbench {
  color: #172033;
  border: 1px solid #e5ebf1;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.release-header,
.project-release-title,
.project-release-actions,
.section-heading,
.build-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.release-header {
  min-height: 56px;
  padding: 10px 18px;
  border-bottom: 1px solid #e8edf2;
}

.release-header > div:first-child > .ant-typography:last-child { display: none; }

.release-header h3,
.release-header .ant-typography,
.project-release-title h4,
.section-heading h4,
.build-detail-title h4 {
  margin: 0;
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(390px, 0.98fr);
  gap: 12px;
  align-items: stretch;
  min-height: calc(100vh - 106px);
  padding: 14px;
  background: #f8fafc;
}

.release-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.project-release-panel,
.deployment-history,
.build-detail-panel {
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

.project-release-panel {
  padding: 16px;
  box-shadow: none;
}

.project-release-title h4 {
  color: #009ca6;
}

.project-release-actions {
  margin: 12px 0;
}

.branch-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.branch-control .ant-select {
  width: 108px;
}

.latest-commit {
  padding: 10px 0;
  border-block: 1px solid #edf1f5;
}

.latest-commit > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 7px 0 4px;
}

.latest-commit > div .ant-typography:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-release-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 11px;
}

.project-release-meta span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-release-meta span + span {
  padding-left: 16px;
  border-left: 1px solid #e8edf2;
}

.project-release-meta strong {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.project-release-meta small {
  color: #64748b;
  font-size: 11px;
  font-weight: 400;
}

.success-rate {
  width: 48px;
  height: 4px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 99px;
  background: #e8edf2;
}

.success-rate b { display: block; height: 100%; border-radius: inherit; background: #28a745; }

.deployment-history {
  flex: 1;
  min-height: 650px;
  margin-top: 10px;
  padding: 14px 14px 6px;
  box-shadow: none;
}

.section-heading {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.section-heading h4 { min-width: 80px; }
.section-heading > .ant-space { flex: 1; }
.section-heading .ant-picker { width: 230px; }
.section-heading .ant-input-affix-wrapper { width: 230px; }

.section-heading .ant-select {
  min-width: 126px;
}

.deployment-history .ant-table-row {
  cursor: pointer;
}

.deployment-commit-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.deployment-commit-cell > .ant-typography {
  min-width: 0;
  margin: 0;
  font-size: 12px;
}

.deployment-commit-cell > .ant-typography:last-child {
  flex: 1;
}

.deployment-duration {
  white-space: nowrap;
}

.deployment-history .selected-deployment-row > td {
  background: #effbfc !important;
  border-block-color: #9fe1e4 !important;
}

.deployment-history .selected-deployment-row > td:first-child {
  box-shadow: inset 3px 0 #00aab5;
}

.build-detail-panel {
  position: relative;
  min-height: 100%;
  padding: 0 18px 70px;
  box-shadow: none;
}

.build-detail-panel::before {
  display: block;
  margin: 0 -18px 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #e8edf2;
  color: #172033;
  content: "构建详情";
  font-weight: 600;
}

.build-detail-title > div > .ant-typography:first-child { display: none; }

.build-detail-title h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.build-overview {
  display: flex;
  gap: 18px;
  margin: 2px 0 15px;
  color: #64748b;
  font-size: 12px;
}

.success-icon {
  color: #27a844;
}

.commit-range {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #f6f9fc;
}

.change-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.change-summary span {
  padding: 8px 7px;
  border: 1px solid #e6ebf0;
  border-radius: 6px;
  background: #fbfcfd;
  text-align: center;
  font-size: 12px;
}

.deployment-commits {
  max-height: calc(100vh - 440px);
  overflow: auto;
  padding-right: 4px;
}

.deployment-commit {
  padding: 14px 0;
  border-top: 1px solid #edf1f5;
}

.deployment-commit > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 7px;
}

.deployment-commit > div:first-child .ant-typography:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commit-stats {
  display: flex;
  gap: 12px;
  margin-top: 9px;
  color: #64748b;
  font-size: 12px;
}

.commit-stats .added { color: #20943a; }
.commit-stats .deleted { color: #d83c4d; }

.changed-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  gap: 6px;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.changed-file > span { text-align: right; }

.build-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding-top: 16px;
  border-top: 1px solid #e7edf3;
}

@media (max-width: 1400px) {
  .release-layout { grid-template-columns: minmax(0, 1fr) 390px; }
  .project-release-actions { flex-wrap: wrap; }
  .project-release-actions .ant-badge { margin-left: auto; }
  .project-release-actions .ant-btn { width: 100%; }
  .section-heading .ant-picker, .section-heading .ant-input-affix-wrapper { width: 190px; }
}

@media (max-width: 1100px) {
  .release-layout { grid-template-columns: 1fr; }
  .build-detail-panel { min-height: 560px; }
}

@media (max-width: 760px) {
  .release-header { align-items: flex-start; }
  .project-release-grid { grid-template-columns: 1fr; }
  .project-release-meta { grid-template-columns: 1fr 1fr; }
  .project-release-actions { align-items: stretch; flex-direction: column; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .build-detail-panel { padding: 16px; }
}

.full {
  width: 100%;
}

.flex-compact {
  flex: 0 0 120px;
}

.flex-fluid {
  flex: 1 1 auto;
  min-width: 0;
}

.mt16 {
  margin-top: 16px;
}

.table-toolbar {
  margin-bottom: 12px;
}

.table-toolbar .ant-input-search {
  min-width: 260px;
  width: min(360px, 100%);
}

.toolbar-select {
  min-width: 148px;
}

.endpoint-table .ant-table-body {
  scrollbar-width: thin;
}

.result-box {
  min-height: 260px;
  max-height: none;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  background: #111827;
  color: #d7e2f0;
  white-space: pre-wrap;
  word-break: break-word;
}

.work-date-input {
  width: 160px;
}

.work-summary-box,
.work-report-box {
  min-height: 180px;
  max-height: 360px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fbfdff;
  white-space: pre-wrap;
  word-break: break-word;
}

.weekly-report-issue-select {
  width: 100%;
}

.weekly-report-issue-select .ant-select-selector,
.weekly-report-issue-select .ant-select-selection-item,
.weekly-report-issue-select .ant-select-selection-placeholder {
  min-width: 0;
}

.weekly-report-issue-select .ant-select-selection-item {
  overflow: hidden;
}

.weekly-report-issue-dropdown {
  max-width: min(720px, calc(100vw - 48px));
}

.weekly-report-issue-dropdown .ant-select-item-option-content {
  min-width: 0;
  overflow: hidden;
}

.weekly-report-issue-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.weekly-report-issue-title {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.weekly-report-issue-meta {
  overflow: hidden;
  max-width: 220px;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.api-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100vh - 48px);
  min-height: 720px;
}

.api-toolbar-card {
  flex: 0 0 auto;
}

.api-layout {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(520px, 1fr) minmax(320px, 400px);
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
}

.api-panel-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.api-panel-card > .ant-card-head {
  flex: 0 0 auto;
}

.api-panel-card > .ant-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.api-directory-card > .ant-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.api-directory-tools {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
}

.api-request-card > .ant-card-body,
.api-response-card > .ant-card-body {
  scrollbar-width: thin;
}

.api-side-column {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) minmax(220px, 0.85fr);
  gap: 16px;
  min-width: 0;
  min-height: 0;
}

.api-workspace .ant-typography h4,
.api-workspace h4.ant-typography {
  margin: 0 0 4px;
}

.endpoint-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
}

.virtual-endpoint-list {
  position: relative;
  scrollbar-width: thin;
}

.virtual-endpoint-inner {
  position: relative;
  min-height: 100%;
}

.api-endpoint-item {
  margin-bottom: 8px;
  padding: 12px !important;
  border: 1px solid #e5eaf1;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.virtual-endpoint-item {
  position: absolute;
  left: 0;
  width: calc(100% - 4px);
  height: 88px;
  margin: 0;
  text-align: left;
}

.api-endpoint-item:hover {
  border-color: #87e8de;
  box-shadow: 0 8px 20px rgba(19, 194, 194, 0.12);
}

.api-endpoint-item.active {
  border-color: #13c2c2;
  background: #e6fffb;
}

.endpoint-item-content {
  display: grid;
  grid-template-rows: 22px 24px 20px;
  gap: 4px;
  min-width: 0;
}

.endpoint-item-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.endpoint-source {
  min-width: 0;
  text-align: right;
}

.data-source-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 12px;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.data-source-item:hover {
  border-color: #87e8de;
  box-shadow: 0 8px 20px rgba(19, 194, 194, 0.1);
}

.data-source-item.active {
  border-color: #13c2c2;
  background: #e6fffb;
}

.data-source-status {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.data-browser-card .ant-card-body {
  padding: 12px;
}

.data-layout {
  display: grid;
  grid-template-columns: 240px 280px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.data-layout.elastic-mode {
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 170px);
}

.data-source-pane,
.data-object-pane,
.data-main-pane {
  min-width: 0;
}

.data-source-list,
.data-object-list {
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding-right: 4px;
}

.data-source-item .ant-flex {
  min-width: 0;
}

.data-source-item .ant-flex > .ant-typography:first-child {
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

.data-source-item > .ant-typography {
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

.data-topbar .ant-card-body {
  padding: 12px 16px;
}

.data-topbar h4 {
  margin-bottom: 2px;
}

.data-source-environment {
  display: block;
  margin-bottom: 10px;
  color: #16a085 !important;
}

.data-source-item {
  padding: 10px !important;
}

.data-query-card .ant-card-body,
.data-results-card .ant-card-body {
  padding: 0;
}

.data-editor-inline {
  border: 0;
  border-radius: 0 0 8px 8px;
}

.data-query-limit {
  width: 130px;
}

.data-results-card .result-box {
  min-height: calc(100vh - 600px);
  margin: 0;
  border: 0;
  border-radius: 0 0 8px 8px;
}

.data-source-item .ant-space {
  flex-shrink: 0;
}

.data-object-pane .ant-descriptions-item-content {
  min-width: 0;
  word-break: break-word;
}

.data-credential-card {
  border-color: #dbeafe;
  background: #fbfdff;
}

.data-credential-card .ant-card-head {
  min-height: 40px;
}

.data-credential-card .ant-card-body {
  padding: 10px;
}

.data-credential-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.data-credential-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #e5eaf1;
  border-radius: 6px;
  background: #ffffff;
}

.data-credential-label {
  white-space: nowrap;
}

.data-credential-value {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.proxy-row {
  padding-top: 4px;
  border-top: 1px dashed #e5eaf1;
}

.proxy-type-select {
  width: 108px;
}

.data-object-item {
  cursor: pointer;
  border-radius: 8px;
  padding: 8px !important;
}

.data-object-item:hover {
  background: #f0fdfa;
}

.data-object-row {
  cursor: pointer;
}

.data-object-row:hover > td {
  background: #f0fdfa !important;
}

.redis-key-tree {
  max-height: 520px;
  overflow: auto;
  padding: 4px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}

.data-editor-shell {
  overflow: hidden;
  border: 1px solid #1f2937;
  border-radius: 8px;
}

.elastic-discover-pane {
  min-width: 0;
}

.elastic-discover-card,
.elastic-discover-card > .ant-card-body {
  min-height: calc(100vh - 170px);
}

.elastic-discover-card .ant-card-body {
  padding: 14px;
}

.elastic-discover-card .ant-typography {
  margin-bottom: 0;
}

.elastic-querybar {
  padding: 10px;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fbfdff;
}

.elastic-dataview-select {
  width: 220px;
}

.elastic-query-input {
  min-width: 320px;
  flex: 1 1 520px;
}

.elastic-time-select {
  width: 160px;
}

.elastic-limit-input {
  width: 130px;
}

.elastic-discover-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  min-height: calc(100vh - 300px);
}

.elastic-fields-panel,
.elastic-results-panel {
  min-width: 0;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #ffffff;
}

.elastic-fields-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.elastic-selected-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

.elastic-fields-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.elastic-fields-list .ant-list-item {
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 8px !important;
}

.elastic-fields-list .ant-list-item:hover,
.elastic-fields-list .ant-list-item.selected {
  background: #e6fffb;
}

.elastic-results-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.elastic-histogram {
  display: grid;
  grid-template-columns: repeat(24, minmax(3px, 1fr));
  align-items: end;
  height: 86px;
  padding: 8px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff, #f6f9fc);
}

.elastic-histogram span {
  display: block;
  min-height: 4px;
  border-radius: 2px 2px 0 0;
  background: #38b2ac;
}

.log-workspace {
  min-height: calc(100vh - 32px);
}

.log-toolbar-card .ant-card-body {
  padding: 16px 20px;
}

.log-source-select {
  width: 280px;
}

.log-discover-card,
.log-discover-card > .ant-card-body {
  min-height: calc(100vh - 130px);
}

.log-discover-card .ant-card-body {
  padding: 14px;
}

.log-querybar {
  align-items: center;
}

.log-account-input {
  width: 260px;
}

.log-discover-shell {
  min-height: calc(100vh - 260px);
}

@media (max-width: 1180px) {
  .data-layout {
    grid-template-columns: 1fr;
  }

  .data-layout.elastic-mode,
  .elastic-discover-shell,
  .log-discover-shell {
    grid-template-columns: 1fr;
  }

  .api-workspace {
    height: auto;
    min-height: calc(100vh - 32px);
  }

  .api-layout {
    grid-template-columns: 1fr;
  }

  .api-directory-card,
  .api-request-card,
  .api-side-column {
    min-height: 520px;
  }
}

.endpoint-path {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-summary {
  display: block;
  min-width: 0;
}

.method-filter {
  width: 108px;
  flex: 0 0 108px;
}

.param-title {
  margin-bottom: 8px;
}

.request-param-table .ant-table-cell {
  vertical-align: top;
}

.request-param-table .ant-input,
.request-param-table .ant-input-outlined {
  font-size: 13px;
}

.request-param-table textarea.ant-input {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.code-editor {
  margin-top: 8px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.body-editor {
  min-height: 300px !important;
}

.mini-code-box {
  max-height: 220px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-url {
  display: block;
  max-width: 100%;
  word-break: break-all;
}

.account-url {
  display: inline-block;
  max-width: 320px;
}

.quick-todo-form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #f8fafc;
}

.ant-space-item:has(> .todo-calendar-card),
.todo-calendar-card {
  order: 1;
}

.ant-space-item:has(> .github-assigned-card),
.github-assigned-card {
  order: 2;
}

.ant-space-item:has(> .completed-todos-card),
.completed-todos-card {
  order: 3;
}

.github-task-compact-table .ant-table-cell {
  height: 52px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  white-space: nowrap;
}

.github-task-compact-table .ant-space {
  flex-wrap: nowrap;
}

.quick-todo-form .ant-form-item {
  margin-inline-end: 0;
  margin-bottom: 0;
}

.quick-todo-title {
  flex: 1 1 320px;
  min-width: 240px;
}

.todo-priority-select {
  width: 96px;
}

.todo-date-input {
  width: 132px;
}

.todo-title,
.todo-gantt .ant-input,
.todo-gantt .ant-select-selector,
.todo-gantt textarea.ant-input {
  border-radius: 6px;
}

.todo-title.done input,
.todo-title.done {
  color: #94a3b8;
  text-decoration: line-through;
}

.todo-gantt {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #ffffff;
}

.todo-gantt-header,
.todo-gantt-row {
  display: block;
  min-width: max-content;
}

.todo-gantt-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid #e5eaf1;
  background: #f8fafc;
}

.todo-gantt-task-heading {
  position: sticky;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-right: 1px solid #e5eaf1;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
}

.todo-gantt-days {
  display: grid;
  grid-auto-columns: 42px;
  grid-auto-flow: column;
  min-width: 100%;
}

.todo-gantt-day-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 44px;
  border-right: 1px solid #e5eaf1;
  color: #64748b;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.todo-gantt-day-label small {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
}

.todo-gantt-day-label.is-today {
  background: #ecfeff;
  color: #0f766e;
  font-weight: 600;
}

.todo-gantt-row {
  border-bottom: 1px solid #eef2f7;
}

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

.todo-gantt-row.is-done {
  background: #fbfdff;
}

.todo-gantt-task {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  padding: 12px;
  border-right: 1px solid #e5eaf1;
  background: inherit;
}

.todo-task-mainline,
.todo-date-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.todo-task-mainline .todo-title {
  flex: 1 1 220px;
  min-width: 180px;
}

.todo-date-line {
  flex-wrap: wrap;
}

.todo-association-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}

.todo-association-grid .ant-input-affix-wrapper:nth-last-child(-n + 2) {
  grid-column: span 3;
}

.todo-gantt-timeline {
  position: relative;
  min-height: 132px;
  min-width: 100%;
  background: #ffffff;
}

.todo-calendar-row {
  min-height: 54px;
}

.todo-calendar-track {
  min-height: 54px;
}

.todo-gantt-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-columns: 42px;
  grid-auto-flow: column;
  min-width: 100%;
  pointer-events: none;
}

.todo-gantt-day {
  border-right: 1px solid #eef2f7;
}

.todo-gantt-day.is-today {
  background: rgba(20, 184, 166, 0.08);
}

.todo-gantt-bar {
  position: absolute;
  top: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 42px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 7px;
  background: #14b8a6;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.todo-gantt-bar:active {
  cursor: grabbing;
}

.todo-gantt-bar.priority-high {
  border-color: rgba(239, 68, 68, 0.3);
  background: #ef4444;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.16);
}

.todo-gantt-bar.priority-low {
  border-color: rgba(100, 116, 139, 0.25);
  background: #64748b;
  box-shadow: 0 8px 18px rgba(100, 116, 139, 0.14);
}

.todo-gantt-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-gantt-handle {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.38);
  cursor: ew-resize;
}

.todo-gantt-handle.left {
  left: 4px;
}

.todo-gantt-handle.right {
  right: 4px;
}

.todo-calendar-bar {
  top: 9px;
  justify-content: flex-start;
  gap: 4px;
  min-width: 180px;
  padding: 0 18px;
}

.todo-calendar-title,
.todo-calendar-drag {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.todo-calendar-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.todo-calendar-title:hover {
  text-decoration: underline;
}

.todo-calendar-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 22px;
  padding: 0;
  cursor: grab;
  opacity: 0.78;
  touch-action: none;
}

.todo-calendar-drag:active {
  cursor: grabbing;
}

.completed-todo-title {
  height: auto;
  max-width: 100%;
  padding: 0;
  text-align: left;
  white-space: normal;
}

.todo-detail-view h4.ant-typography {
  margin: 0 0 8px;
}

.todo-detail-link {
  height: auto;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

.todo-detail-notes {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.documents-workspace {
  display: grid;
  grid-template-columns: minmax(340px, var(--documents-list-width, 420px)) 8px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  min-height: calc(100vh - 96px);
}

.documents-resizer {
  align-self: stretch;
  border-radius: 999px;
  cursor: col-resize;
  transition: background 0.15s ease;
}

.documents-resizer:hover,
.is-document-resizing .documents-resizer {
  background: rgba(20, 184, 166, 0.18);
}

.is-document-resizing {
  cursor: col-resize;
  user-select: none;
}

.documents-list-card,
.document-editor-card {
  min-height: calc(100vh - 96px);
}

.documents-list-card {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

.documents-list-card > .ant-card-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: 12px 14px 14px;
}

.documents-list-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.documents-tree-area {
  flex: 1;
  min-height: 0;
  padding: 4px 4px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.document-trash-button {
  flex: 0 0 auto;
  margin-top: 10px;
  border-style: dashed;
  color: #667085;
}

.document-trash-button:hover {
  color: #ff4d4f !important;
  border-color: #ffccc7 !important;
  background: #fff7f6;
}

.document-trash-modal .ant-modal-body {
  padding-top: 8px;
}

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

.document-trash-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 14px;
  min-height: 620px;
}

.document-trash-list,
.document-trash-preview {
  min-height: 0;
  max-height: 70vh;
  overflow: auto;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #fff;
}

.document-trash-list {
  padding: 8px;
}

.document-trash-item {
  gap: 10px;
  margin-bottom: 6px;
  padding: 10px !important;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.document-trash-item:hover {
  background: #f8fafc;
}

.document-trash-item.active {
  background: #ccfbf1;
  box-shadow: inset 3px 0 0 #14b8a6;
}

.document-trash-item .ant-list-item-meta {
  min-width: 0;
}

.document-trash-preview {
  display: flex;
  flex-direction: column;
}

.document-trash-preview-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
}

.document-trash-preview-header .ant-space {
  min-width: 0;
}

.document-trash-preview-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px;
}

.documents-list {
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding-right: 4px;
}

.documents-list .ant-list-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.document-tree {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 2px 12px 0;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

.document-tree::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.document-tree::-webkit-scrollbar-track {
  background: transparent;
}

.document-tree::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.document-tree:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.38);
}

.document-tree .ant-tree-list-holder-inner {
  gap: 3px;
}

.document-tree .ant-tree-treenode {
  width: 100%;
  padding: 1px 0;
  border-radius: 8px;
}

.document-tree .ant-tree-draggable-icon {
  display: none;
}

.document-tree .ant-tree-switcher {
  width: 20px;
  color: #64748b;
}

.document-tree .ant-tree-indent-unit {
  width: 13px;
}

.document-tree .ant-tree-node-content-wrapper {
  min-height: 48px;
  padding: 6px 8px 7px 7px;
  border-radius: 8px;
  white-space: normal;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.document-tree .ant-tree-node-content-wrapper.ant-tree-node-selected,
.document-tree .ant-tree-node-content-wrapper:hover {
  background: #f1f5f9;
}

.document-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
  box-shadow: inset 3px 0 0 #14b8a6, 0 6px 16px rgba(20, 184, 166, 0.08);
  background: linear-gradient(90deg, #ccfbf1 0%, #e8fff9 100%);
}

.document-tree-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  gap: 6px;
}

.document-tree-name {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
  color: #1f2937;
  line-height: 1.4;
  font-size: 13px;
}

.document-tree-text {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
}

.document-tree-label {
  display: block;
  min-width: 0;
  overflow: visible;
  color: #1f2937;
  font-weight: 600;
  white-space: normal;
  word-break: break-word;
}

.document-tree-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 16px;
}

.document-tree-id {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  font-size: 11px;
  line-height: 16px;
}

.document-current-id {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
}

.document-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--document-icon-color, #14b8a6) 13%, #ffffff);
  color: var(--document-icon-color, #14b8a6);
  font-size: 13px;
}

.document-icon-editor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #f8fafc;
}

.document-icon-select {
  width: 140px;
}

.document-color-options {
  display: flex;
  align-items: center;
  gap: 8px;
}

.document-color-dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--document-color);
  cursor: pointer;
}

.document-color-dot.active {
  border-color: #111827;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(17, 24, 39, 0.18);
}

.document-tree-add {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  opacity: 0;
  border-radius: 7px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.08);
}

.document-tree-title:hover .document-tree-add {
  opacity: 1;
}

.product-prototype-workspace .ant-card {
  border-radius: 8px;
}

.product-prototype-card-subtitle {
  font-size: 12px;
  font-weight: 400;
}

.product-prototype-form {
  display: block;
}

.product-prototype-form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.5fr) 150px;
  gap: 12px;
  align-items: start;
}

.product-prototype-form .ant-form-item {
  margin-bottom: 12px;
}

.product-prototype-url {
  min-width: 0;
}

.product-prototype-name {
  min-width: 0;
}

.product-prototype-source {
  min-width: 0;
}

.product-prototype-source-select {
  width: 100%;
}

.product-prototype-prompt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.product-prototype-prompt {
  min-width: 0;
}

.product-prototype-submit {
  min-width: 132px;
  margin-bottom: 12px;
}

.product-prototype-list-card {
  position: sticky;
  top: 16px;
}

.product-prototype-detail-column > .ant-card > .ant-card-head .ant-card-head-title {
  overflow: visible;
  white-space: normal;
}

.product-prototype-detail-header {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.product-prototype-detail-title {
  min-width: 200px;
  flex: 1 1 200px;
}

.product-prototype-detail-title > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-prototype-detail-actions {
  flex: 0 1 auto;
  justify-content: flex-end;
  margin-left: auto;
}

.product-prototype-list-card .ant-card-body {
  max-height: calc(100vh - 88px);
  overflow: auto;
  padding: 10px;
  overscroll-behavior: contain;
}

.product-prototype-list-item {
  margin-bottom: 10px;
  padding: 0 !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-prototype-list-item:hover,
.product-prototype-list-item.active {
  border-color: #30c5c0;
  background: #f4fffd;
  box-shadow: 0 8px 20px rgb(15 23 42 / 7%);
}

.product-prototype-list-content {
  display: grid;
  width: 100%;
  gap: 10px;
  padding: 12px;
}

.product-prototype-list-main {
  min-width: 0;
}

.product-prototype-list-title {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  line-height: 1.4;
}

.product-prototype-list-url {
  display: block;
  font-size: 12px;
}

.product-prototype-list-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-prototype-list-badges .ant-tag {
  margin-inline-end: 0;
}

.product-prototype-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
}

.product-prototype-list-meta span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
}

.product-prototype-list-error {
  display: block;
  font-size: 12px;
}

.product-prototype-notes {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.8;
}

.product-prototype-assets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.product-prototype-summary-assets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-prototype-asset {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: inherit;
  background: #fff;
}

.product-prototype-asset .ant-image,
.product-prototype-asset img {
  width: 100%;
}

.product-prototype-asset img {
  height: 120px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
}

.product-prototype-document-preview {
  min-height: 68vh;
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
}

.product-prototype-document-preview .document-with-toc-outside {
  align-items: flex-start;
}

.product-prototype-text-preview {
  min-height: 68vh;
}

.product-prototype-text-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.product-prototype-text-header h2.ant-typography {
  margin: 0 0 6px;
}

.product-prototype-text-preview .document-with-toc-outside {
  gap: 18px;
}

.product-prototype-text-preview .document-toc-content {
  max-width: 980px;
  color: #172033;
  font-size: 15px;
  line-height: 1.8;
}

.product-prototype-text-preview .document-toc {
  flex-basis: 220px;
  max-height: calc(100vh - 250px);
  border-color: #e2e8f0;
  background: #f8fafc;
}

@media (max-width: 980px) {
  .product-prototype-form-grid,
  .product-prototype-prompt-row {
    grid-template-columns: 1fr;
  }

  .product-prototype-source {
    min-width: 0;
  }

  .product-prototype-submit {
    width: 100%;
  }

  .product-prototype-list-card {
    position: static;
  }

  .product-prototype-list-card .ant-card-body {
    max-height: none;
    overflow: visible;
  }

  .product-prototype-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-prototype-detail-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  .product-prototype-list-column {
    flex: 0 0 288px;
    max-width: 288px;
  }

  .product-prototype-detail-column {
    flex: 1 1 0;
    max-width: calc(100% - 288px);
    min-width: 0;
  }
}

.product-prototype-figma-frame {
  width: 100%;
  height: 72vh;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.codex-cli-output {
  min-height: 180px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.prompt-memory-workspace .ant-card {
  border-radius: 8px;
}

.prompt-memory-list-item {
  cursor: pointer;
  padding: 12px !important;
  border-radius: 6px;
}

.prompt-memory-list-item.active {
  background: #e6fffb;
  border: 1px solid #2ec4c6;
}

.prompt-memory-candidate-form {
  row-gap: 10px;
}

.prompt-memory-chat-select {
  min-width: 360px;
}

.prompt-memory-role-select,
.prompt-memory-tool-select {
  min-width: 140px;
}

.prompt-memory-candidate-content {
  margin: 0 !important;
  white-space: pre-wrap;
}

.prompt-memory-export {
  min-height: 320px;
}

.prompt-library-header .ant-card-body {
  padding: 24px 28px;
}

.prompt-library-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

.prompt-library-editor-card .ant-card-body {
  padding: 0 24px 24px;
}

.prompt-library-editor {
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
}

.prompt-library-actions {
  margin-top: 18px;
}

.prompt-library-note {
  display: grid;
  flex: 1;
  min-width: 280px;
  max-width: 720px;
  gap: 8px;
}

.prompt-library-version {
  padding-inline: 12px !important;
  border-radius: 8px;
}

.prompt-library-version.active {
  background: #f0fdfa;
}

.prompt-library-version-preview {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

.prompt-library-version-preview .monaco-editor {
  margin-top: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .prompt-library-header .ant-card-body {
    padding: 20px;
  }

  .prompt-library-editor-card .ant-card-body {
    padding-inline: 12px;
  }
}

.document-child-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #f8fafc;
}

.document-child-links .ant-btn {
  height: 30px;
  padding-inline: 8px;
  color: #344054;
  font-weight: 600;
}

.document-list-item {
  margin-bottom: 0;
  padding: 12px !important;
  border: 1px solid #e5eaf1;
  border-block-end: 1px solid #e5eaf1 !important;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.document-list-item:hover {
  border-color: #87e8de;
  box-shadow: 0 8px 18px rgba(19, 194, 194, 0.1);
}

.document-list-item.active {
  border-color: #13c2c2;
  border-block-end-color: #13c2c2 !important;
  background: #e6fffb;
}

.document-version-list .ant-list-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.document-version-item {
  padding: 14px 16px !important;
  border: 1px solid #e5eaf1;
  border-block-end: 1px solid #e5eaf1 !important;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.document-version-item:hover {
  border-color: #87e8de;
  box-shadow: 0 8px 18px rgba(19, 194, 194, 0.1);
}

.document-version-item.active {
  border-color: #13c2c2;
  border-block-end-color: #13c2c2 !important;
  background: #e6fffb;
}

.document-version-item:focus-visible {
  outline: 2px solid rgba(19, 194, 194, 0.35);
  outline-offset: 2px;
}

.version-hash-tag {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
}

.telegram-chat-cell {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
}

.telegram-chat-cell .ant-tag {
  flex: 0 0 auto;
  margin-inline-end: 0;
}

.telegram-chat-option {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  line-height: 1;
  vertical-align: middle;
}

.telegram-chat-option .ant-space-item {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.telegram-chat-option .ant-tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 22px;
  margin-inline-end: 0;
  line-height: 20px;
  text-align: center;
}

.telegram-chat-option-title {
  display: inline-block;
  min-width: 0;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ant-select-selection-item .telegram-chat-option,
.ant-select-item-option-content .telegram-chat-option {
  max-width: 100%;
}

.telegram-chat-select .ant-select-selection-item {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.telegram-chat-select .ant-select-selection-item .telegram-chat-option {
  height: 22px;
  gap: 4px !important;
}

.telegram-chat-select .ant-select-selection-item .telegram-chat-option .ant-tag {
  min-width: 36px;
  height: 18px;
  padding-inline: 4px;
  font-size: 12px;
  line-height: 16px;
}

.telegram-chat-select .ant-select-selection-item .telegram-chat-option-title {
  line-height: 18px;
}

.ant-select-item-option-content :where(.ant-tag),
.ant-select-selection-item :where(.ant-tag),
.ant-select-selection-overflow-item :where(.ant-tag) {
  vertical-align: middle;
}

.telegram-chat-title {
  display: inline-block;
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telegram-summary-text {
  word-break: break-word;
}

.telegram-summary-text .ant-typography {
  display: inline;
}

.telegram-key-rule-form {
  margin-bottom: 14px;
  padding: 14px 16px 0;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fbfdff;
}

.document-editor-card .ant-card-head-title {
  flex: 1 1 280px;
  min-width: 240px;
}

.document-editor-card .ant-card-head-title:empty {
  display: none;
}

.document-editor-card .ant-card-head-wrapper {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: 100%;
}

.document-editor-card .ant-card-extra {
  flex: 1 1 420px;
  margin-inline-start: 0;
}

.document-editor-card .ant-card-extra > .ant-space {
  justify-content: flex-end;
  row-gap: 8px;
  width: 100%;
}

.document-editor-card .ant-card-extra .ant-typography {
  white-space: nowrap;
}

.markdown-viewer {
  min-height: calc(100vh - 300px);
  padding: 12px 0 24px;
}

.markdown-editor {
  min-height: 420px;
}

.blocknote-document {
  border-radius: 8px;
  background: #ffffff;
}

.blocknote-document .bn-container {
  --bn-colors-editor-background: #ffffff;
  --bn-colors-menu-background: #ffffff;
  --bn-colors-hovered-background: #eefdfb;
  --bn-colors-selected-background: #d7f7f2;
  --bn-colors-side-menu: #6b7280;
  min-height: inherit;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.blocknote-document .bn-editor {
  min-height: inherit;
  padding: 12px 8px 32px;
  font-size: 15px;
  line-height: 1.78;
}

.document-editor-card .blocknote-document .bn-editor {
  max-width: 920px;
  margin: 0 auto;
}

.markdown-editor.blocknote-document {
  min-height: calc(100vh - 360px);
  border: 1px solid #d9edf0;
  box-shadow: inset 0 1px 0 rgba(15, 118, 110, 0.04);
}

.markdown-editor.blocknote-document .bn-editor {
  padding-top: 18px;
}

.markdown-viewer.blocknote-document.readonly .bn-container,
.markdown-viewer.blocknote-document.readonly .bn-editor {
  background: transparent;
}

.markdown-viewer.blocknote-document.readonly .bn-editor {
  padding-left: 0;
  padding-right: 0;
}

.markdown-viewer.blocknote-document.readonly .bn-editor :where(p, li, [data-content-type="paragraph"]) {
  line-height: 1.9;
}

.blocknote-document :where(:not(pre) > code) {
  display: inline;
  max-width: 100%;
  padding: 0.12em 0.38em;
  border: 1px solid #bdc9d8;
  border-radius: 5px;
  background: #dbe4ee;
  color: #0f172a;
  font-size: 0.92em;
  line-height: inherit;
  vertical-align: baseline;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  word-break: break-word;
}

.blocknote-document pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.blocknote-document [data-content-type="codeBlock"] {
  border: 1px solid #202a3a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blocknote-document [data-content-type="codeBlock"] + [data-content-type="codeBlock"] {
  margin-top: 14px;
}

.blocknote-document [data-content-type="codeBlock"] pre {
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.blocknote-document [data-content-type="codeBlock"] select {
  min-width: 110px;
  height: 24px;
  padding: 0 22px 0 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  font-size: 12px;
  line-height: 24px;
  opacity: 0.76;
}

.blocknote-document [data-content-type="codeBlock"]:hover select,
.blocknote-document [data-content-type="codeBlock"] select:focus {
  opacity: 1;
}

.blocknote-document [data-content-type="codeBlock"] select:disabled {
  cursor: default;
  opacity: 0.68;
}

.blocknote-document .shiki,
.blocknote-document [data-content-type="codeBlock"] code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.blocknote-document [data-content-type="codeBlock"] .highlight {
  border-radius: 3px;
  background: rgba(125, 211, 252, 0.14);
}

.blocknote-document.readonly [data-content-type="codeBlock"].mermaid-code-block {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.blocknote-document.readonly [data-content-type="codeBlock"].mermaid-rendered pre,
.blocknote-document.readonly [data-content-type="codeBlock"].mermaid-rendered select {
  display: none;
}

.readonly-mermaid-diagram {
  overflow-x: auto;
  display: flex;
  justify-content: center;
  padding: 22px;
  color: #475569;
}

.readonly-mermaid-diagram svg {
  width: 100%;
  max-width: 1280px;
  height: auto;
}

@media (min-width: 900px) {
  .readonly-mermaid-diagram svg {
    min-width: 820px;
  }
}

.blocknote-document.readonly [data-content-type="codeBlock"].mermaid-error .readonly-mermaid-diagram {
  margin: 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff1f2;
  color: #b91c1c;
  text-align: left;
}

.blocknote-document.readonly .readonly-highlighted-code .tok-comment {
  color: #8b949e;
  font-style: italic;
}

.blocknote-document.readonly .readonly-highlighted-code .tok-keyword {
  color: #ff7b72;
}

.blocknote-document.readonly .readonly-highlighted-code .tok-string {
  color: #a5d6ff;
}

.blocknote-document.readonly .readonly-highlighted-code .tok-number {
  color: #79c0ff;
}

.blocknote-document.readonly .readonly-highlighted-code .tok-function {
  color: #d2a8ff;
}

.github-workspace-card .ant-tabs-nav {
  margin-bottom: 18px;
}

.github-project-tasks,
.github-repo-browser {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.github-project-list,
.github-repo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-right: 1px solid #edf1f5;
}

.github-project-list .ant-btn,
.github-repo-list .ant-btn {
  justify-content: flex-start;
  height: auto;
  min-height: 36px;
  padding: 8px 10px;
  text-align: left;
  white-space: normal;
}

.github-project-table {
  min-width: 0;
}

.github-stat-row {
  margin-bottom: 14px;
}

.github-branch-select {
  width: 260px;
}

.github-browser-layout {
  align-items: stretch;
}

.github-browser-layout > .ant-col {
  display: flex;
  min-width: 0;
}

.github-browser-layout > .ant-col > .ant-card {
  width: 100%;
}

.github-browser-layout .github-tree-card {
  display: flex;
  flex-direction: column;
}

.github-tree-card .ant-card-body {
  flex: 1;
  min-height: 0;
  padding: 10px 8px;
}

.github-tree-card .ant-tree-node-content-wrapper {
  min-width: 0;
}

.github-tree-title {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.github-tree-name {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-tree-idea {
  flex: 0 0 auto;
  opacity: 0;
}

.ant-tree-treenode:hover .github-tree-idea,
.github-tree-idea:focus-visible {
  opacity: 1;
}

.github-workspace-card .ant-table-cell .ant-space {
  max-width: 100%;
}

.ant-card {
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.05);
}

.ant-table-wrapper .ant-table {
  border-radius: 8px;
}

.ant-layout-sider-zero-width-trigger {
  top: 18px;
  background: #13c2c2;
}

.settings-tabs .ant-tabs-content-holder {
  max-height: min(64vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.telegram-settings-modal .ant-modal-body,
.telegram-settings-modal .ant-tabs-tabpane {
  overflow-x: hidden;
}

.telegram-settings-modal .ant-row {
  max-width: 100%;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.telegram-settings-modal .ant-space.full {
  display: flex;
  max-width: 100%;
}

.telegram-settings-modal .ant-space-item,
.telegram-settings-modal .ant-card,
.telegram-settings-modal .ant-form-item,
.telegram-settings-modal .ant-input,
.telegram-settings-modal .ant-input-affix-wrapper {
  min-width: 0;
  max-width: 100%;
}

.telegram-settings-modal .ant-list-item .ant-typography,
.telegram-settings-modal .ant-typography code {
  max-width: 100%;
  white-space: normal;
  word-break: break-all;
}

.proxy-row .ant-form-item {
  margin-bottom: 10px;
}

.proxy-row .ant-btn {
  margin-top: 20px;
}

.telegram-punch-plan-table .telegram-punch-day-start > td {
  border-top: 8px solid #f3f6fb !important;
}

.telegram-punch-plan-table .ant-table-tbody > tr > td {
  vertical-align: middle;
}

.telegram-punch-history-alert {
  margin-bottom: 12px;
}

.telegram-punch-history-table .telegram-punch-history-success > td {
  background: #f6ffed;
}

.telegram-punch-history-table .telegram-punch-history-missed > td {
  background: #fff2f0;
}

.telegram-punch-history-table .ant-table-tbody > tr:hover > td {
  background: #e6f4ff !important;
}

@media (max-width: 991px) {
  .app-sider {
    display: none;
  }

  .github-project-tasks,
  .github-repo-browser {
    grid-template-columns: 1fr;
  }

  .github-project-list,
  .github-repo-list {
    border-right: 0;
    border-bottom: 1px solid #edf1f5;
  }

  .mobile-nav {
    display: block;
    position: sticky;
    top: 0;
    z-index: 12;
    overflow-x: auto;
    border-bottom: 1px solid #e5eaf1;
    background: #ffffff;
  }

  .mobile-nav .ant-menu {
    min-width: max-content;
    border-bottom: 0;
  }

  .mobile-actions {
    display: block;
    position: sticky;
    top: 46px;
    z-index: 11;
    padding: 10px 16px;
    border-bottom: 1px solid #e5eaf1;
    background: #ffffff;
  }

  .mobile-action-stack {
    width: 100%;
  }

  .content {
    padding: 16px;
  }

  .document-with-toc {
    grid-template-columns: 1fr;
  }

  .document-toc {
    position: static;
    max-height: none;
  }

  .public-document-page:has(.document-with-toc-outside .document-toc) {
    padding-left: 20px;
  }

  .public-document-card .document-with-toc-outside .document-toc {
    position: static;
    width: 100%;
    margin-bottom: 16px;
  }
}

.telegram-file-explorer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.telegram-file-card {
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.telegram-file-card:hover,
.telegram-file-card:focus {
  border-color: #22c1c3;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.telegram-file-thumb {
  position: relative;
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  overflow: hidden;
}

.telegram-file-thumb-image,
.telegram-file-thumb-video {
  background: #111827;
}

.telegram-file-preview-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.telegram-file-preview-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e8edf3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telegram-file-preview-placeholder .anticon {
  font-size: 34px !important;
}

.telegram-file-type-tag,
.telegram-file-status-tag {
  position: absolute;
  top: 8px;
  margin: 0;
}

.telegram-file-type-tag {
  left: 8px;
}

.telegram-file-status-tag {
  right: 8px;
}

.telegram-file-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 142px;
}

.telegram-file-name,
.telegram-file-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telegram-file-meta {
  font-size: 12px;
}

.telegram-file-facts {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.telegram-file-version {
  width: fit-content;
  margin: 0;
}

.telegram-file-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
}

.telegram-file-modal-preview {
  min-height: 220px;
  max-height: 560px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.telegram-file-modal-preview img,
.telegram-file-modal-preview video {
  max-width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.telegram-file-modal-preview audio {
  width: min(520px, 100%);
}

.telegram-file-modal-placeholder {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.telegram-file-modal-placeholder .anticon {
  font-size: 48px !important;
}

.telegram-status-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-top: 4px;
}

.menu-label-with-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: #f0fffe !important;
}

.github-task-body {
  margin: 0;
  max-height: 60vh;
  overflow: auto;
  padding: 12px;
  border: 1px solid #e6edf3;
  border-radius: 6px;
  background: #f7fafc;
  color: #263238;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.github-task-modal .ant-modal-content {
  overflow: hidden;
}

.github-task-modal .ant-modal-header {
  padding-right: 42px;
}

.github-task-modal .ant-modal-body {
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding-right: 10px;
}

.github-task-modal-title {
  width: 100%;
  padding-right: 18px;
}

.github-task-detail-layout {
  min-height: min(780px, calc(100vh - 150px));
}

.github-task-markdown {
  padding: 16px 18px;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  background: #fff;
  color: #24292f;
  font-size: 14px;
  line-height: 1.8;
  word-break: break-word;
}

.github-task-markdown p,
.github-task-markdown ul,
.github-task-markdown ol,
.github-task-markdown pre,
.github-task-markdown .github-task-image {
  margin-top: 0;
  margin-bottom: 14px;
}

.github-task-markdown p:last-child,
.github-task-markdown ul:last-child,
.github-task-markdown ol:last-child,
.github-task-markdown pre:last-child,
.github-task-markdown .github-task-image:last-child {
  margin-bottom: 0;
}

.github-task-markdown h3,
.github-task-markdown h4,
.github-task-markdown h5 {
  margin: 18px 0 10px;
  color: #1f2328;
  font-weight: 700;
  line-height: 1.35;
}

.github-task-markdown h3:first-child,
.github-task-markdown h4:first-child,
.github-task-markdown h5:first-child {
  margin-top: 0;
}

.github-task-markdown a {
  color: #0969da;
  text-decoration: none;
  word-break: break-all;
}

.github-task-markdown a:hover {
  text-decoration: underline;
}

.github-task-markdown code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #e8edf3;
  color: #17212b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
}

.github-task-markdown pre {
  overflow: auto;
  padding: 12px;
  border-radius: 6px;
  background: #0f172a;
  color: #e5e7eb;
}

.github-task-markdown pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  white-space: pre;
}

.github-task-markdown ul,
.github-task-markdown ol {
  padding-left: 24px;
}

.github-task-markdown li + li {
  margin-top: 4px;
}

.github-task-image-button {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.github-task-inline-image-button {
  display: inline-block;
  max-width: 100%;
  margin: 10px 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  vertical-align: middle;
}

.github-task-image,
.github-task-inline-image {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  background: #f6f8fa;
}

.github-task-image {
  max-height: 760px;
  object-fit: contain;
}

.github-task-inline-image {
  margin: 10px 0;
}

.github-task-image-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin: 10px 0 16px;
  padding: 12px 14px;
  border: 1px dashed #8c959f;
  border-radius: 8px;
  background: #f6f8fa;
  color: #57606a;
}

.github-task-image-fallback .anticon {
  color: #0969da;
  font-size: 18px;
}

.github-task-image-fallback a {
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #fff;
  color: #0969da;
  white-space: nowrap;
}

.github-task-image-fallback-inline {
  display: inline-flex;
  min-height: auto;
  margin: 0 4px;
  padding: 3px 8px;
  vertical-align: middle;
}

.github-task-image-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(7, 13, 24, 0.88);
  backdrop-filter: blur(2px);
  cursor: grab;
  touch-action: none;
}

.github-task-image-preview-overlay.is-dragging {
  cursor: grabbing;
}

.github-task-image-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  transform-origin: center center;
  transition: transform 0.06s ease-out;
  user-select: none;
  will-change: transform;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
  cursor: inherit;
}

@media (max-width: 640px) {
  .mobile-actions {
    top: 46px;
    overflow-x: auto;
  }

  .table-toolbar .ant-input-search,
  .toolbar-select {
    width: 100%;
  }

  .method-filter {
    width: 100%;
    flex: 1;
  }

  .quick-todo-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-todo-title,
  .todo-priority-select,
  .todo-date-input {
    width: 100%;
    min-width: 0;
  }

  .todo-gantt-header,
  .todo-gantt-row {
    grid-template-columns: minmax(360px, 86vw) max-content;
  }

  .todo-gantt-task {
    min-height: 178px;
  }

  .todo-gantt-timeline {
    min-height: 178px;
  }

  .todo-task-mainline,
  .todo-date-line {
    flex-wrap: wrap;
  }

  .todo-task-mainline .todo-title {
    flex-basis: 100%;
    min-width: 0;
  }

  .todo-association-grid {
    grid-template-columns: 1fr;
  }

  .todo-association-grid .ant-input-affix-wrapper:nth-last-child(-n + 2) {
    grid-column: span 1;
  }

  .todo-gantt-bar {
    top: 70px;
  }

  .todo-calendar-track {
    min-height: 54px;
  }

  .todo-calendar-bar {
    top: 9px;
  }

  .endpoint-list {
    min-height: 360px;
    max-height: none;
  }

  .api-workspace {
    height: auto;
    min-height: calc(100vh - 32px);
  }

  .api-layout {
    grid-template-columns: 1fr;
  }

  .api-directory-card,
  .api-request-card,
  .api-side-column {
    min-height: 520px;
  }

  .documents-workspace {
    grid-template-columns: 1fr;
  }

  .documents-resizer {
    display: none;
  }

  .documents-list-card,
  .document-editor-card {
    min-height: auto;
  }

  .documents-list-card {
    position: static;
    max-height: none;
  }

  .documents-list {
    max-height: 320px;
  }

  .public-document-page {
    padding: 16px 10px;
  }

  .document-toc {
    padding: 10px;
  }

  .telegram-file-explorer {
    grid-template-columns: 1fr;
  }

  .telegram-file-thumb {
    height: 180px;
  }
}
