body {
  min-height: 100vh;
  background: #ecedf0;
}

.avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0088cc;
  color: #fff;
  font-weight: 600;
}

.ot-page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.ot-page-head .ot-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.ot-page-head .ot-subtitle {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8a9299;
}

.ot-page-head .ot-meta {
  color: #6c757d;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.ot-page-head-responsive .ot-page-head-main {
  flex: 1 1 320px;
  min-width: 240px;
}

.ot-page-head-responsive .ot-page-head-actions {
  flex: 0 1 auto;
  min-width: 260px;
}

.ot-page-head-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ot-page-head-tools .breadcrumbs {
  justify-content: flex-end;
}

.ot-page-head .breadcrumbs {
  margin-bottom: 0.35rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.ot-page-head .breadcrumbs li {
  display: inline-flex;
  align-items: center;
  color: #6c757d;
  font-size: 0.85rem;
}

.ot-page-head .breadcrumbs li + li::before {
  content: "/";
  margin: 0 0.35rem;
  color: #adb5bd;
}

.ot-label-hint {
  font-size: 0.75rem;
  color: #8a9299;
  font-weight: 500;
  margin-left: 0.35rem;
}

.ot-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 136, 204, 0.12);
  color: #0088cc;
}

.ot-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ot-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(13, 110, 253, 0.12);
  color: #1b5bbf;
}

.ot-tag-remove {
  border: none;
  background: transparent;
  color: #b42318;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.ot-tag-remove:hover {
  color: #7a1b0f;
}

.ot-quick-jump {
  min-width: 110px;
  flex: 0 0 auto;
}

.ot-quick-jump .input-group {
  align-items: center;
}

.ot-quick-jump .form-control {
  min-width: 100px;
}

.ot-quick-jump .input-group-sm > .form-control,
.ot-quick-jump .input-group-sm > .input-group-text,
.ot-quick-jump .input-group-sm > .btn {
  height: 1.35rem !important;
  min-height: 1.35rem !important;
  padding: 0 0.35rem !important;
  font-size: 0.75rem !important;
}

@media (max-width: 767.98px) {
  .ot-page-head-responsive .ot-page-head-actions {
    min-width: 100%;
  }

  .ot-page-head-tools {
    justify-content: flex-start;
  }

  .ot-page-head-tools .breadcrumbs {
    justify-content: flex-start;
  }
}

.ot-quick-jump-toggle {
  line-height: 1;
}

.ot-card {
  border: 1px solid #e3e6eb;
  box-shadow: none;
  border-radius: 0.5rem;
}

.ot-card .card-header {
  border-bottom: 1px solid #e3e6eb;
  background: #f6f7f9;
}

.ot-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.ot-stat {
  background: #fff;
  color: #1f2a33;
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  min-width: 140px;
  border: 1px solid #e3e6eb;
}

.ot-stat .label {
  font-size: 0.72rem;
  color: #8a9299;
}

.ot-stat .value {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.1rem;
  color: #0088cc;
}

.table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a9299;
  border-bottom-width: 1px;
}

.table:not(.ot-table-fixed) tbody tr:hover {
  background: rgba(0, 136, 204, 0.04);
}

.ot-type-badge {
  font-weight: 600;
  border-radius: 0.4rem;
  padding: 0.25rem 0.5rem;
}

.ot-type-DevTask {
  background: rgba(0, 136, 204, 0.12);
  color: #0088cc;
}

.ot-type-SupportTicket {
  background: rgba(44, 123, 229, 0.12);
  color: #2c7be5;
}

.ot-type-Opportunity {
  background: rgba(245, 166, 35, 0.18);
  color: #b07800;
}

.ot-status {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border-radius: 0.4rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid transparent;
  background: #f1f5f9;
  color: #334155;
}

.ot-status-backlog {
  background: #ffffff;
  color: #111827;
  border-color: #111827;
}

.ot-status-ready-for-dev {
  background: rgba(251, 191, 36, 0.2);
  color: #92400e;
}

.ot-status-in-dev,
.ot-status-in-review,
.ot-status-in-testing,
.ot-status-in-acceptance {
  background: rgba(14, 116, 144, 0.14);
  color: #0e7490;
}

.ot-status-accepted,
.ot-status-released {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

.ot-status-blocked {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.ot-status-neutral {
  background: #f1f5f9;
  color: #334155;
}

.ot-inline-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ot-inline-display {
  border: none;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.ot-inline-display:focus {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.ot-inline-form {
  display: none;
}

.ot-rank-list {
  padding-left: 0;
  margin-bottom: 0;
}

.ot-rank-item {
  cursor: default;
}

.ot-rank-item.is-dragging {
  opacity: 0.6;
}

.ot-rank-handle {
  cursor: grab;
  color: #6c757d;
}

.ot-rank-handle:active {
  cursor: grabbing;
}

.ot-inline-edit.is-editing .ot-inline-form {
  display: inline-flex;
}

.ot-inline-edit.is-editing .ot-inline-display {
  display: none;
}

.ot-table-fixed {
  table-layout: fixed;
  width: 100%;
  --bs-table-hover-bg: rgba(0, 136, 204, 0.04);
  --ot-hover-bg: rgba(0, 136, 204, 0.04);
  --bs-table-hover-color: inherit;
}

.ot-table-fixed tbody tr:hover {
  background: transparent;
}

.ot-table-fixed tbody tr:hover td {
  background-color: var(--ot-row-bg, transparent);
}

.ot-table-fixed th,
.ot-table-fixed td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ot-table-fixed col.col-key {
  width: 6.5rem;
}

.ot-table-fixed col.col-project {
  width: 6rem;
}

.ot-table-fixed col.col-type {
  width: 7rem;
}

.ot-table-fixed col.col-status {
  width: 10rem;
}

.ot-table-fixed col.col-version {
  width: 7rem;
}

.ot-table-fixed col.col-assignee {
  width: 8rem;
}

.ot-table-fixed col.col-created,
.ot-table-fixed col.col-updated {
  width: 9rem;
}

.ot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ot-overlay-card {
  background: #fff;
  border-radius: 12px;
  width: min(960px, 100%);
  max-height: 85vh;
  overflow: auto;
  padding: 1.5rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
}

.ot-item-row td,
.ot-title-row td {
  background-color: var(--ot-row-bg, transparent);
}

.ot-title-row {
  --ot-row-bg: rgba(148, 163, 184, 0.08);
}

.ot-title-row td {
  font-weight: 500;
  white-space: normal;
  padding-left: 1.1rem;
}

.ot-title-row td a {
  font-size: 1.05rem;
}

.ot-item-row.is-hover,
.ot-title-row.is-hover {
  --ot-row-bg: var(--ot-hover-bg);
}

.ot-table-fixed .ot-chip,
.ot-table-fixed .ot-type-badge {
  font-size: 1rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.ot-bulk-checkbox {
  display: none;
  margin-right: 0.45rem;
}

.ot-bulk-mode .ot-bulk-checkbox {
  display: inline-block;
}

.ot-item-row.is-hover td,
.ot-title-row.is-hover td {
  background-color: var(--ot-hover-bg) !important;
  color: var(--bs-table-hover-color);
}

.ot-work-item-detail {
  font-size: 1.05rem;
}

.ot-work-item-detail .markdown-body {
  font-size: 1.05rem;
  line-height: 1.65;
}

.ot-opportunity-form,
.ot-opportunity-cashflow-form,
.ot-line-item-form {
  display: grid;
  gap: 0.45rem 0.65rem;
  grid-template-columns: minmax(0, 1fr);
}

.ot-opportunity-field,
.ot-line-item-field {
  min-width: 0;
}

.ot-opportunity-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.ot-line-item-list {
  display: grid;
  gap: 0.75rem;
}

.ot-line-item-card {
  border: 1px solid #e3e6eb;
  border-radius: 0.5rem;
  padding: 0.5rem 0.6rem;
}

.ot-opportunity-form .form-label,
.ot-opportunity-cashflow-form .form-label,
.ot-line-item-form .form-label {
  margin-bottom: 0.2rem;
}

.ot-cashflow-list .list-group-item {
  padding: 0.4rem 0;
}

@media (min-width: 1200px) {
  .ot-opportunity-form,
  .ot-opportunity-cashflow-form,
  .ot-line-item-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ot-line-item-field-span-2 {
    grid-column: 1 / -1;
  }

  .ot-line-item-actions {
    grid-column: 1 / -1;
  }

  .ot-cashflow-actions {
    grid-column: 1 / -1;
  }
}

.ot-toast-editor .toastui-editor-defaultUI {
  border-color: #e3e6eb;
  border-radius: 0.5rem;
}

.ot-toast-editor {
  width: 100%;
}

.ot-toast-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1080;
  pointer-events: none;
}

.ot-toast {
  background: #111827;
  color: #f8fafc;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
  font-weight: 500;
  min-width: 220px;
  max-width: 360px;
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ot-toast-success {
  background: #047857;
}

.ot-toast-error {
  background: #b91c1c;
}

.ot-toast.is-hiding {
  opacity: 0;
  transform: translateY(6px);
}

.ot-kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
}

.ot-kanban-column {
  background: var(--ot-kanban-bg, #f8fafc);
  border: 1px solid var(--ot-kanban-border, #e3e6eb);
  border-radius: 0.75rem;
  padding: 0.75rem;
  min-height: 320px;
}

.ot-kanban-column.is-drop-target {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.ot-kanban-column.ot-status-backlog {
  --ot-kanban-bg: #ffffff;
  --ot-kanban-border: #111827;
}

.ot-kanban-column.ot-status-ready-for-dev {
  --ot-kanban-bg: rgba(251, 191, 36, 0.12);
  --ot-kanban-border: rgba(251, 191, 36, 0.45);
}

.ot-kanban-column.ot-status-in-dev,
.ot-kanban-column.ot-status-in-review,
.ot-kanban-column.ot-status-in-testing,
.ot-kanban-column.ot-status-in-acceptance {
  --ot-kanban-bg: rgba(14, 116, 144, 0.1);
  --ot-kanban-border: rgba(14, 116, 144, 0.35);
}

.ot-kanban-column.ot-status-accepted,
.ot-kanban-column.ot-status-released {
  --ot-kanban-bg: rgba(16, 185, 129, 0.12);
  --ot-kanban-border: rgba(16, 185, 129, 0.35);
}

.ot-kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ot-kanban-count {
  font-size: 0.8rem;
  color: #6b7280;
}

.ot-kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ot-kanban-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  padding: 0.65rem 0.7rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.ot-kanban-card.is-dragging {
  opacity: 0.55;
}

.ot-kanban-card h4 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.ot-kanban-card h4 a {
  text-decoration: none;
  color: #111827;
}

.ot-kanban-desc {
  font-size: 0.85rem;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.ot-kanban-more {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.ot-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ot-filter-bar .form-control,
.ot-filter-bar .form-select {
  font-size: 0.85rem;
}

.ot-shortcut-hint {
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
}

.ot-shortcut-hint u {
  text-underline-offset: 2px;
}

.markdown-body pre {
  background: #0f172a;
  color: #e5e7eb;
  padding: 0.75rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

.markdown-body code {
  background: rgba(15, 23, 42, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 0.4rem 0.6rem;
}

.markdown-body img {
  display: block;
  max-width: 80%;
  max-height: 50vh;
  height: auto;
  width: auto;
  border: 1px solid #111827;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
}
