/* Source: article/editor.html inline style 1 */
:root {
      --tt-shell: 1170px;
      --tt-bg: #eef4fc;
      --tt-surface: rgba(255, 255, 255, 0.88);
      --tt-card: #ffffff;
      --tt-line: rgba(18, 31, 52, 0.08);
      --tt-text: #152033;
      --tt-muted: #6c7f96;
      --tt-brand: #1368d6;
      --tt-brand-dark: #0d4ea2;
      --tt-warm: #ef7d34;
      --tt-shadow: 0 24px 64px rgba(18, 31, 52, 0.1);
      --tt-radius: 28px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--tt-text);
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
      background:
        radial-gradient(circle at top left, rgba(19, 104, 214, 0.18), transparent 30%),
        radial-gradient(circle at right bottom, rgba(18, 31, 52, 0.12), transparent 28%),
        linear-gradient(180deg, #f7fafe 0%, var(--tt-bg) 100%);
    }

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

    ti-icon {
      --ti-icon-size: 20px;
      width: var(--ti-icon-size);
      height: var(--ti-icon-size);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: currentColor;
      line-height: 0;
      vertical-align: middle;
      flex: 0 0 auto;
    }

    ti-icon svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .tt-host-main {
      padding: 20px 0 48px;
    }

    .tt-page {
      min-height: 100vh;
    }

    .tt-shell,
    .tt-topbar-inner {
      width: min(var(--tt-shell), calc(100% - 30px));
      margin: 0 auto;
    }

    .tt-topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      padding-bottom: 14px;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .tt-topbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      min-height: 72px;
    }

    .tt-topbar-back {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      color: #fff;
      text-decoration: none;
      background: linear-gradient(135deg, var(--tt-brand), var(--tt-brand-dark));
      box-shadow: 0 14px 28px rgba(19, 104, 214, 0.22);
    }

    .tt-topbar-copy {
      display: grid;
      gap: 4px;
      min-width: 0;
      margin-right: auto;
    }

    .tt-kicker,
    .tt-chip,
    .tt-pill,
    .tt-link,
    .tt-action,
    .tt-tool,
    .tt-tab,
    .tt-tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      text-decoration: none;
    }

    .tt-kicker {
      min-height: 34px;
      width: fit-content;
      padding: 0 14px;
      background: rgba(255, 255, 255, 0.72);
      color: var(--tt-brand);
      box-shadow: 0 10px 24px rgba(18, 31, 52, 0.08);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .tt-title,
    .tt-section-title {
      margin: 0;
      font-weight: 900;
    }

    .tt-title {
      font-size: 20px;
    }

    .tt-section-title {
      font-size: 17px;
    }

    .tt-desc,
    .tt-copy,
    .tt-hint {
      margin: 0;
      color: var(--tt-muted);
      font-size: 13px;
      line-height: 1.8;
    }

    .tt-topbar-actions,
    .tt-status-row,
    .tt-meta-row,
    .tt-tab-row,
    .tt-toolbar-row,
    .tt-tag-grid,
    .tt-action-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .tt-link,
    .tt-action,
    .tt-pill {
      min-height: 40px;
      padding: 0 14px;
    }

    .tt-link,
    .tt-pill,
    .tt-tab,
    .tt-tag {
      background: rgba(255, 255, 255, 0.82);
      color: #405166;
      box-shadow: inset 0 0 0 1px rgba(18, 31, 52, 0.06);
    }

    .tt-action {
      border: 0;
      cursor: pointer;
    }

    .tt-action.is-primary {
      color: #fff;
      background: linear-gradient(135deg, var(--tt-brand), var(--tt-brand-dark));
      box-shadow: 0 18px 32px rgba(19, 104, 214, 0.24);
    }

    .tt-action.is-secondary {
      color: var(--tt-text);
      background: rgba(255, 255, 255, 0.88);
      box-shadow: inset 0 0 0 1px var(--tt-line);
    }

    .tt-chip {
      min-height: 32px;
      padding: 0 12px;
      background: rgba(19, 104, 214, 0.1);
      color: var(--tt-brand);
      font-size: 12px;
    }

    .tt-chip.is-warm {
      background: rgba(239, 125, 52, 0.14);
      color: #c96420;
    }

    .tt-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.14fr) 340px;
      gap: 20px;
      align-items: start;
    }

    .tt-panel,
    .tt-sidebar-card {
      position: relative;
      border-radius: var(--tt-radius);
      background: var(--tt-surface);
      border: 1px solid rgba(255, 255, 255, 0.84);
      box-shadow: var(--tt-shadow);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }

    .tt-panel::before,
    .tt-sidebar-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 34%),
        radial-gradient(circle at top right, rgba(19, 104, 214, 0.1), transparent 28%);
      pointer-events: none;
    }

    .tt-panel-body,
    .tt-sidebar-card-body {
      position: relative;
      z-index: 1;
      padding: 22px;
    }

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

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

    .tt-label {
      margin: 0;
      font-size: 13px;
      font-weight: 800;
      color: #3f4d61;
    }

    .tt-input,
    .tt-textarea,
    .tt-select,
    .tt-number {
      width: 100%;
      border: 1px solid rgba(19, 104, 214, 0.12);
      border-radius: 20px;
      background: rgba(248, 251, 255, 0.96);
      color: var(--tt-text);
      box-sizing: border-box;
      outline: none;
    }

    .tt-input,
    .tt-number,
    .tt-select {
      min-height: 48px;
      padding: 0 16px;
    }

    .tt-input.is-title {
      min-height: 72px;
      padding: 18px 20px;
      font-size: 34px;
      font-weight: 900;
      letter-spacing: -0.04em;
    }

    .tt-textarea {
      min-height: 108px;
      padding: 16px 18px;
      resize: vertical;
      line-height: 1.8;
    }

    .tt-toolbar {
      display: grid;
      gap: 12px;
      padding: 18px;
      border-radius: 24px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92));
      box-shadow: inset 0 0 0 1px rgba(18, 31, 52, 0.06);
    }

    .tt-toolbar-row {
      align-items: center;
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
    }

    .tt-toolbar-row::-webkit-scrollbar {
      display: none;
    }

    .tt-toolbar-group {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      gap: 8px;
      padding: 8px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.76);
      box-shadow: inset 0 0 0 1px rgba(18, 31, 52, 0.06);
    }

    .tt-tool,
    .tt-tab {
      min-height: 42px;
      min-width: 42px;
      padding: 0 12px;
      border: 0;
      cursor: pointer;
      background: rgba(255, 255, 255, 0.92);
      color: #405166;
      transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    }

    .tt-tool:hover,
    .tt-tab:hover,
    .tt-tag:hover,
    .tt-link:hover,
    .tt-action:hover {
      transform: translateY(-1px);
    }

    .tt-tool.is-active,
    .tt-tab.is-active,
    .tt-tag.is-active {
      background: rgba(19, 104, 214, 0.12);
      color: var(--tt-brand);
      box-shadow: inset 0 0 0 1px rgba(19, 104, 214, 0.14);
    }

    .tt-popover {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .tt-color-chip {
      width: 16px;
      height: 16px;
      border-radius: 999px;
      box-shadow: inset 0 0 0 1px rgba(18, 31, 52, 0.16);
      pointer-events: none;
    }

    .tt-popover-panel {
      position: fixed;
      z-index: 60;
      display: none;
      min-width: 220px;
      padding: 12px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 22px 42px rgba(18, 31, 52, 0.18);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .tt-popover.is-open .tt-popover-panel {
      display: grid;
      gap: 10px;
    }

    .tt-popover-title {
      margin: 0;
      color: #4d6079;
      font-size: 12px;
      font-weight: 800;
    }

    .tt-swatch-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }

    .tt-swatch {
      position: relative;
      min-width: 40px;
      min-height: 40px;
      border: 0;
      border-radius: 14px;
      cursor: pointer;
      background: rgba(248, 251, 255, 0.96);
      box-shadow: inset 0 0 0 1px rgba(18, 31, 52, 0.08);
    }

    .tt-swatch.is-active {
      box-shadow: inset 0 0 0 2px rgba(19, 104, 214, 0.24), 0 12px 22px rgba(19, 104, 214, 0.12);
    }

    .tt-swatch::after {
      content: "";
      position: absolute;
      inset: 9px;
      border-radius: 999px;
      background: var(--swatch-color, #ffffff);
      box-shadow: inset 0 0 0 1px rgba(18, 31, 52, 0.14);
    }

    .tt-swatch.is-clear::after {
      inset: 10px 8px;
      border-radius: 10px;
      background: linear-gradient(135deg, transparent 43%, #d84b4b 43%, #d84b4b 57%, transparent 57%), #ffffff;
    }

    .tt-font-size-value {
      min-width: 54px;
      text-align: center;
      color: #50647f;
      font-size: 12px;
      font-weight: 900;
    }

    .tt-table-grid {
      display: grid;
      grid-template-columns: repeat(6, 34px);
      gap: 6px;
      justify-content: center;
    }

    .tt-table-cell {
      width: 34px;
      height: 34px;
      border: 0;
      border-radius: 10px;
      cursor: pointer;
      background: rgba(248, 251, 255, 0.96);
      box-shadow: inset 0 0 0 1px rgba(18, 31, 52, 0.08);
    }

    .tt-table-cell.is-active {
      background: rgba(19, 104, 214, 0.12);
      box-shadow: inset 0 0 0 1px rgba(19, 104, 214, 0.18);
    }

    .tt-table-status {
      margin: 0 0 14px;
      color: #5c718d;
      font-size: 12px;
      line-height: 1.7;
      text-align: center;
    }

    .tt-editor-shell {
      border-radius: 28px;
      background: rgba(255, 255, 255, 0.86);
      border: 1px solid rgba(18, 31, 52, 0.06);
      overflow: hidden;
    }

    #articleEditorHost .ProseMirror {
      min-height: 520px;
      padding: 28px;
      outline: none;
      font-size: 17px;
      line-height: 1.85;
      color: var(--tt-text);
      word-break: break-word;
    }

    #articleEditorHost .ProseMirror p.is-editor-empty:first-child::before {
      content: attr(data-placeholder);
      float: left;
      color: #90a0b4;
      pointer-events: none;
      height: 0;
    }

    #articleEditorHost .ProseMirror h1,
    #articleEditorHost .ProseMirror h2,
    #articleEditorHost .ProseMirror h3 {
      margin: 1.1em 0 0.5em;
      line-height: 1.3;
    }

    #articleEditorHost .ProseMirror h1 {
      font-size: 2em;
    }

    #articleEditorHost .ProseMirror h2 {
      font-size: 1.5em;
    }

    #articleEditorHost .ProseMirror h3 {
      font-size: 1.25em;
    }

    #articleEditorHost .ProseMirror img {
      max-width: 100%;
      height: auto;
      display: block;
      border-radius: 20px;
      margin: 20px 0;
    }

    #articleEditorHost .ProseMirror blockquote {
      margin: 20px 0;
      padding: 18px 20px;
      border-left: 4px solid var(--tt-brand);
      background: rgba(19, 104, 214, 0.06);
      border-radius: 16px;
    }

    #articleEditorHost .ProseMirror table {
      width: 100%;
      border-collapse: collapse;
      margin: 20px 0;
      overflow: hidden;
      border-radius: 14px;
    }

    #articleEditorHost .ProseMirror th,
    #articleEditorHost .ProseMirror td {
      border: 1px solid rgba(18, 31, 52, 0.12);
      padding: 10px 12px;
    }

    #articleEditorHost .ProseMirror .selectedCell::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(19, 104, 214, 0.08);
      pointer-events: none;
    }

    #articleEditorHost .ProseMirror .tt-related-comic {
      display: grid;
      grid-template-columns: 108px minmax(0, 1fr);
      gap: 16px;
      align-items: center;
      margin: 24px 0;
      padding: 16px;
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(19, 104, 214, 0.08), transparent 48%), linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
      box-shadow: inset 0 0 0 1px rgba(19, 104, 214, 0.08), 0 18px 32px rgba(18, 31, 52, 0.08);
    }

    #articleEditorHost .ProseMirror .tt-related-comic-cover {
      width: 108px;
      height: 144px;
      border-radius: 18px;
      object-fit: cover;
      margin: 0;
      box-shadow: 0 16px 28px rgba(18, 31, 52, 0.18);
    }

    #articleEditorHost .ProseMirror .tt-related-comic-body {
      display: grid;
      gap: 8px;
      min-width: 0;
    }

    #articleEditorHost .ProseMirror .tt-related-comic-tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      background: rgba(19, 104, 214, 0.1);
      color: var(--tt-brand);
      font-size: 11px;
      font-weight: 800;
    }

    #articleEditorHost .ProseMirror .tt-related-comic-title {
      margin: 0;
      font-size: 20px;
      font-weight: 900;
      line-height: 1.4;
    }

    #articleEditorHost .ProseMirror .tt-related-comic-meta,
    #articleEditorHost .ProseMirror .tt-related-comic-desc {
      margin: 0;
      color: #5e7390;
      font-size: 13px;
      line-height: 1.8;
    }

    #articleEditorHost .ProseMirror .tt-related-comic-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
      min-height: 34px;
      padding: 0 14px;
      border-radius: 999px;
      background: #132033;
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      text-decoration: none;
    }

    .tt-media-modal {
      position: fixed;
      inset: 0;
      z-index: 50;
      display: none;
    }

    .tt-media-modal.is-open {
      display: block;
    }

    .tt-media-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(19, 31, 52, 0.52);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }

    .tt-media-modal-dialog {
      position: relative;
      z-index: 1;
      width: min(980px, calc(100% - 30px));
      max-height: calc(100vh - 40px);
      margin: 20px auto;
      padding: 20px;
      overflow: auto;
      border-radius: 28px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 28px 64px rgba(18, 31, 52, 0.22);
    }

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

    .tt-media-url-form {
      margin-bottom: 16px;
    }

    .tt-media-library {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .tt-media-library-card {
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 0;
      border-radius: 22px;
      text-align: left;
      cursor: pointer;
      background: rgba(248, 251, 255, 0.98);
      color: var(--tt-text);
      box-shadow: inset 0 0 0 1px rgba(18, 31, 52, 0.06);
    }

    .tt-media-library-thumb {
      width: 100%;
      height: 170px;
      border-radius: 16px;
      object-fit: cover;
      box-shadow: 0 16px 28px rgba(18, 31, 52, 0.12);
    }

    .tt-media-library-title {
      font-size: 14px;
      font-weight: 900;
      line-height: 1.6;
    }

    .tt-media-library-meta {
      color: #6f8197;
      font-size: 12px;
      line-height: 1.7;
    }

    .tt-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

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

    .tt-stat,
    .tt-metric {
      display: grid;
      gap: 4px;
      padding: 14px 16px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.8);
      box-shadow: inset 0 0 0 1px rgba(18, 31, 52, 0.06);
    }

    .tt-stat-label,
    .tt-metric-label {
      color: var(--tt-muted);
      font-size: 12px;
      font-weight: 700;
    }

    .tt-stat-value,
    .tt-metric-value {
      font-size: 24px;
      font-weight: 900;
    }

    .tt-tag-grid {
      gap: 8px;
    }

    .tt-tag {
      min-height: 38px;
      padding: 0 14px;
      border: 0;
      cursor: pointer;
    }

    .tt-comic-picker,
    .tt-comic-list,
    .tt-outline {
      display: grid;
      gap: 10px;
    }

    .tt-comic-item,
    .tt-outline-item,
    .tt-empty {
      padding: 16px 18px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.78);
      box-shadow: inset 0 0 0 1px rgba(18, 31, 52, 0.06);
    }

    .tt-comic-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .tt-comic-item-main {
      display: grid;
      gap: 6px;
    }

    .tt-comic-title {
      font-size: 14px;
      font-weight: 800;
    }

    .tt-comic-meta,
    .tt-outline-item small {
      color: var(--tt-muted);
      font-size: 12px;
      line-height: 1.6;
    }

    .tt-outline-item {
      display: grid;
      gap: 4px;
    }

    .tt-inline-form {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
    }

    .tt-code {
      margin: 0;
      min-height: 260px;
      padding: 16px 18px;
      border-radius: 20px;
      background: #142133;
      color: #d7e7ff;
      font-size: 12px;
      line-height: 1.7;
      overflow: auto;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .tt-text-link {
      color: var(--tt-brand);
      text-decoration: none;
    }

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

    @media (max-width: 760px) {
      .tt-host-main {
        padding-top: 12px;
      }

      .tt-shell,
      .tt-topbar-inner {
        width: min(var(--tt-shell), calc(100% - 30px));
      }

      .tt-topbar-inner,
      .tt-footer,
      .tt-inline-form {
        grid-template-columns: 1fr;
        display: grid;
      }

      .tt-topbar-back {
        grid-row: 1;
      }

      .tt-topbar-actions {
        justify-content: flex-start;
      }

      .tt-panel-body,
      .tt-sidebar-card-body {
        padding: 16px;
      }

      .tt-input.is-title {
        min-height: 60px;
        font-size: 24px;
      }

      #articleEditorHost .ProseMirror {
        min-height: 380px;
        padding: 18px;
        font-size: 16px;
      }

      #articleEditorHost .ProseMirror .tt-related-comic {
        grid-template-columns: 1fr;
      }

      #articleEditorHost .ProseMirror .tt-related-comic-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
      }

      .tt-media-modal-head {
        display: grid;
      }

      .tt-media-library {
        grid-template-columns: 1fr;
      }

      .tt-stat-grid,
      .tt-metric-grid {
        grid-template-columns: 1fr 1fr;
      }
    }
