@charset "UTF-8";

.compose-page {
  max-width: 1280px;
  padding: 40px 24px 56px;
}

.compose-card-shell {
  padding: 28px;
  border-radius: 26px;
}

.compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.compose-form-area,
.compose-side-area {
  min-width: 0;
}

.compose-section {
  padding: 22px;
  border: 1px solid #e9edf5;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.compose-section + .compose-section {
  margin-top: 20px;
}

.compose-section-title {
  margin: 0 0 18px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #1f2937;
}

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

.compose-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 15px;
  border: 1px solid #e3e8f2;
  border-radius: 16px;
  background: #f8faff;
  font-size: 0.95rem;
  color: #243248;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.compose-check:hover {
  border-color: #c6d4ef;
  background: #f3f7ff;
  transform: translateY(-1px);
}

.compose-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #356dff;
  flex-shrink: 0;
}

.compose-btn-row {
  margin-top: 24px;
}

.compose-alert {
  display: none;
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.compose-alert.is-show {
  display: block;
}

.compose-alert.is-warning {
  background: #fff7e8;
  color: #8a5a00;
  border: 1px solid #f2ddb0;
}

.compose-alert.is-success {
  background: #edf8ef;
  color: #1f6b36;
  border: 1px solid #cfead7;
}

.compose-side-card {
  padding: 22px 20px;
  border: 1px solid #e7ebf3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.compose-side-card + .compose-side-card {
  margin-top: 16px;
}

.compose-side-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: #1f2937;
}

.compose-side-list {
  margin: 0;
  padding-left: 18px;
  color: #4b5b70;
  line-height: 1.75;
  font-size: 0.94rem;
}

.compose-recommend {
  display: grid;
  gap: 10px;
}

.compose-preset-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #dbe5f3;
  border-radius: 14px;
  background: #f8fbff;
  color: #21324d;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.compose-preset-btn:hover {
  background: #edf4ff;
  border-color: #bdd0f8;
}

.compose-output-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: 26px;
}

.compose-output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.compose-output-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #1f2937;
}

.compose-output-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compose-tab-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.compose-tab-btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #dfe6f2;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.compose-tab-btn:hover {
  background: #f1f5fb;
  border-color: #cbd7eb;
}

.compose-tab-btn.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.compose-tab-panel {
  display: none;
}

.compose-tab-panel.is-active {
  display: block;
}

.compose-textarea {
  min-height: 380px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre;
}

.compose-textarea-small {
  min-height: 260px;
}

.compose-textarea-tiny {
  min-height: 100px;
}

.help-panel {
  margin-top: 30px;
}

.help-panel > h2 {
  margin-bottom: 16px;
  font-size: 1.18rem;
  font-weight: 800;
  color: #1f2937;
}

.help-box + .help-box {
  margin-top: 14px;
}

.help-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: #1f2937;
}

.help-box p {
  margin: 0;
  color: #4e5d70;
  line-height: 1.75;
  font-size: 0.96rem;
}

@media (max-width: 1024px) {
  .compose-page {
    padding: 32px 18px 48px;
  }

  .compose-card-shell,
  .compose-output-card {
    padding: 20px;
  }

  .compose-grid {
    grid-template-columns: 1fr;
  }

  .compose-side-area {
    order: -1;
  }
}

@media (max-width: 768px) {
  .compose-page {
    padding: 24px 14px 42px;
  }

  .compose-section,
  .compose-side-card,
  .compose-output-card {
    padding: 18px;
    border-radius: 18px;
  }

  .compose-check-grid {
    grid-template-columns: 1fr;
  }

  .compose-output-head {
    align-items: stretch;
  }

  .compose-output-actions {
    width: 100%;
  }

  .compose-output-actions .utility-btn {
    flex: 1 1 auto;
  }

  .compose-tab-nav {
    gap: 8px;
  }

  .compose-tab-btn {
    width: 100%;
    justify-content: center;
  }

  .compose-textarea {
    min-height: 300px;
    font-size: 0.88rem;
  }

  .compose-textarea-small {
    min-height: 220px;
  }
}
.compose-hidden-source {
  display: none;
}

.compose-readme-preview {
  padding: 24px 22px;
  border: 1px solid #e5eaf3;
  border-radius: 20px;
  background: #fbfcfe;
  color: #243247;
  line-height: 1.8;
  font-size: 0.96rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.compose-readme-preview h1,
.compose-readme-preview h2,
.compose-readme-preview h3,
.compose-readme-preview h4 {
  margin: 0 0 12px;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.35;
}

.compose-readme-preview h1 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.compose-readme-preview h2 {
  font-size: 1.16rem;
  margin-top: 26px;
  padding-top: 6px;
  border-top: 1px solid #e9eef6;
}

.compose-readme-preview h3 {
  font-size: 1.02rem;
  margin-top: 20px;
}

.compose-readme-preview p {
  margin: 0 0 12px;
  color: #445268;
}

.compose-readme-preview ul,
.compose-readme-preview ol {
  margin: 0 0 14px 20px;
  padding: 0;
}

.compose-readme-preview li {
  margin: 0 0 6px;
  color: #445268;
}

.compose-readme-preview code {
  padding: 2px 7px;
  border-radius: 8px;
  background: #eef3fb;
  color: #183153;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.92em;
}

.compose-readme-preview pre {
  margin: 14px 0 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #0f172a;
  color: #e5edf8;
  overflow-x: auto;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
}

.compose-readme-preview pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  border-radius: 0;
  font-size: inherit;
}

.compose-readme-preview strong {
  color: #1e293b;
  font-weight: 800;
}

.compose-readme-preview hr {
  border: 0;
  border-top: 1px solid #e5eaf3;
  margin: 22px 0;
}

@media (max-width: 768px) {
  .compose-readme-preview {
    padding: 18px 16px;
    border-radius: 16px;
    font-size: 0.94rem;
  }

  .compose-readme-preview h1 {
    font-size: 1.28rem;
  }

  .compose-readme-preview h2 {
    font-size: 1.08rem;
  }

  .compose-readme-preview pre {
    padding: 14px;
    border-radius: 14px;
    font-size: 0.86rem;
  }
}
.compose-readme-shell {
  border: 1px solid #e5eaf3;
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.compose-readme-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #e9eef6;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f9fd 100%);
  flex-wrap: wrap;
}

.compose-readme-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.compose-readme-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef4ff;
  font-size: 1.18rem;
  flex-shrink: 0;
}

.compose-readme-meta {
  min-width: 0;
}

.compose-readme-meta strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.compose-readme-meta span {
  display: block;
  margin-top: 3px;
  font-size: 0.9rem;
  color: #5a6a80;
  line-height: 1.5;
}

.compose-readme-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compose-readme-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef2f8;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #dde5f0;
}

.compose-readme-badge-primary {
  background: #eaf2ff;
  color: #2251c7;
  border-color: #cfe0ff;
}

.compose-readme-preview {
  padding: 24px 22px;
  border: 0;
  border-radius: 0;
  background: #fbfcfe;
  color: #243247;
  line-height: 1.8;
  font-size: 0.96rem;
  box-shadow: none;
}

@media (max-width: 768px) {
  .compose-readme-head {
    padding: 16px;
  }

  .compose-readme-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .compose-readme-meta strong {
    font-size: 0.96rem;
  }

  .compose-readme-meta span {
    font-size: 0.86rem;
  }

  .compose-readme-preview {
    padding: 18px 16px;
  }
}
.compose-readme-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e9eef6;
  background: #ffffff;
}

.compose-readme-summary-item {
  padding: 14px 14px 13px;
  border: 1px solid #e6ecf5;
  border-radius: 16px;
  background: #f8fbff;
  min-width: 0;
}

.compose-readme-summary-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7a90;
  letter-spacing: 0.02em;
}

.compose-readme-summary-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #122033;
  line-height: 1.45;
  word-break: break-word;
}

.compose-readme-summary-value.is-on {
  color: #166534;
}

.compose-readme-summary-value.is-off {
  color: #8a3b12;
}

@media (max-width: 1024px) {
  .compose-readme-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .compose-readme-summary {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .compose-readme-summary-item {
    padding: 13px 13px 12px;
    border-radius: 14px;
  }

  .compose-readme-summary-label {
    font-size: 0.76rem;
  }

  .compose-readme-summary-value {
    font-size: 0.92rem;
  }
}