﻿:root {
  --bg: #f5f8fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #6c7686;
  --line: #d9e5ef;
  --line-dark: #b8cde0;
  --navy: #2388d1;
  --navy-2: #176fb0;
  --gold: #1f93d2;
  --gold-soft: #e8f5fc;
  --soft: #f3f9fd;
  --danger: #a9364f;
  --success: #16795b;
  --shadow: 0 18px 50px rgba(22, 57, 88, 0.10);
  --button-shadow: 0 8px 18px rgba(35, 136, 209, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, #f7fbff 0%, #f3f7fb 48%, #ffffff 100%),
    var(--bg);
  font-family: "Segoe UI", "Malgun Gothic", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.create-card,
.result-card {
  padding: 22px 26px;
}

.result-card {
  margin-top: 14px;
}

.card-header,
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf3f8;
}

.eyebrow {
  margin: 0 0 4px;
  color: #1979b8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.35;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.35;
}

.status-pill {
  padding: 8px 12px;
  border: 1px solid #bfddf0;
  border-radius: 999px;
  color: #176b9e;
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 850;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field span,
.advanced-row span {
  color: #2d3a4d;
  font-size: 13px;
  font-weight: 800;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  border: 1px solid #e0eaf2;
  border-radius: 999px;
  padding: 0 15px;
  color: #4b5a6c;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.chip.active {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 6px 14px rgba(35, 136, 209, 0.18);
}

.chip.custom {
  border-color: #bce4ff;
  color: #147abd;
  background: var(--gold-soft);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input,
select {
  height: 43px;
  padding: 0 13px;
}

textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
  line-height: 1.62;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(85, 183, 247, 0.18);
}

.generate-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid #c2def0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fcff 0%, #f1f8fd 100%);
}

.generate-btn {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(180deg, #2d9be0 0%, var(--navy) 100%);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  box-shadow: var(--button-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.generate-btn:hover,
.primary-btn:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
}

.mini-actions {
  display: flex;
  gap: 7px;
}

.icon-btn {
  min-width: 34px;
  height: 34px;
  margin-top: 4px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: #354052;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.publish-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #1f2937;
  background: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.prompt-options {
  display: block;
  margin-top: 12px;
}

.prompt-options label {
  display: grid;
  gap: 7px;
}

.prompt-options span {
  color: #354052;
  font-size: 13px;
  font-weight: 850;
}

.prompt-options textarea {
  min-height: 44px;
  height: 44px;
  padding: 10px 12px;
  resize: none;
  line-height: 1.45;
  overflow: hidden;
}

.prompt-save-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 8px;
}

.prompt-save-row select {
  height: 36px;
  font-size: 12px;
}

.prompt-save-row button {
  white-space: nowrap;
}

.publish-check input {
  width: 16px;
  height: 16px;
}

.publish-check small {
  color: #7f94a8;
  font-weight: 650;
}

.advanced-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.15fr) 140px;
  gap: 12px;
  margin-top: 12px;
}

.advanced-row label {
  display: grid;
  gap: 7px;
}

.inline-save-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.inline-save-field button {
  min-width: 76px;
}

.credential-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.credential-box button {
  min-width: 74px;
}

.credential-status {
  display: block;
  margin-top: -1px;
  color: #7f94a8;
  font-size: 11px;
  font-weight: 700;
}

.credential-status.saved {
  color: var(--success);
}

.credential-inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 43px;
}

.credential-open-btn {
  min-width: 104px;
}

.credential-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 30, 45, 0.42);
  backdrop-filter: blur(8px);
}

.credential-modal.open {
  display: flex;
}

.credential-dialog {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(20, 50, 80, 0.22);
  overflow: hidden;
}

.credential-form {
  display: grid;
  gap: 13px;
  padding: 18px 24px 8px;
}

.credential-form label {
  display: grid;
  gap: 7px;
}

.credential-form span {
  color: #354052;
  font-size: 13px;
  font-weight: 850;
}

.credential-form p {
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.image-uploader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.image-uploader span,
.image-uploader small {
  display: block;
}

.image-uploader span {
  color: #354052;
  font-size: 13px;
  font-weight: 850;
}

.image-uploader small {
  margin-top: 3px;
  color: #7f94a8;
  font-size: 12px;
}

.image-pick {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 0 12px;
  color: #147abd;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.image-pick input {
  display: none;
}

.image-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.image-chip {
  border: 1px solid #bce4ff;
  border-radius: 999px;
  padding: 6px 9px;
  color: #147abd;
  background: #eaf7ff;
  font-weight: 800;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.metric-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef7fd;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 168px;
  margin-top: 14px;
  border: 1px dashed #cfdde9;
  border-radius: 12px;
  color: #1f2937;
  text-align: center;
  background: #fbfdff;
}

.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 9px;
  border: 2px solid var(--line);
  border-radius: 14px;
  color: #a79b8c;
  font-size: 23px;
}

.empty-state strong {
  margin-bottom: 7px;
  font-size: 15px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.result-workspace {
  display: none;
  margin-top: 12px;
}

body.has-result .empty-state {
  display: none;
}

body.has-result .result-workspace {
  display: block;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tool-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.mini-tool {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 18px rgba(22, 57, 88, 0.05);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.mini-tool:hover {
  border-color: #9bd8ff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(22, 57, 88, 0.08);
}

.mini-tool span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: #147abd;
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
}

.mini-tool strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.mini-tool small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.secondary-btn,
.primary-btn,
.danger-btn,
.ghost-btn {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.secondary-btn {
  border: 1px solid var(--line-dark);
  color: #344054;
  background: #ffffff;
}

.secondary-btn:hover {
  border-color: #8dbddd;
  background: #f7fbfe;
  transform: translateY(-1px);
}

.ghost-btn {
  border: 1px solid #e1eaf2;
  color: #667085;
  background: #f8fbfd;
}

.ghost-btn:hover {
  border-color: #c9d8e5;
  color: #344054;
  background: #ffffff;
  transform: translateY(-1px);
}

.primary-btn {
  border: 1px solid var(--navy);
  color: #ffffff;
  background: var(--navy);
}

.result-publish-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #c2def0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fcff 0%, #f2f8fd 100%);
}

.top-publish-btn {
  width: 100%;
  min-width: 0;
}

.draft-view-btn {
  background: linear-gradient(180deg, #2595d8 0%, #1c7dbc 100%);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.danger-btn {
  border: 1px solid #efc2cd;
  color: var(--danger);
  background: #fff8fa;
}

.tag-list,
.result-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-chip {
  border: 1px solid #bce4ff;
  border-radius: 999px;
  padding: 6px 9px;
  color: #147abd;
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 850;
}

.result-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  color: #344054;
  background: #ffffff;
  cursor: pointer;
}

.run-log {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #4b5563;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.45;
}

.draft-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(21, 26, 35, 0.48);
}

.draft-modal.open {
  display: flex;
}

.draft-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.24);
}

.draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.icon-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.full-draft {
  flex: 1 1 auto;
  min-height: min(38vh, 430px);
  overflow: auto;
  padding: 26px 30px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.full-draft h3 {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  line-height: 1.35;
}

.full-draft p {
  margin: 0;
  color: #344054;
}

.draft-meta-section {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #dce8f2;
  border-radius: 12px;
  background: #f8fcff;
  white-space: normal;
}

.draft-meta-section strong {
  display: block;
  margin-bottom: 8px;
  color: #0b72b8;
  font-size: 13px;
}

.draft-meta-section p,
.draft-meta-section ul {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.7;
}

.draft-meta-section ul {
  padding-left: 18px;
}

.draft-meta-editor {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #d5e3ef;
  border-radius: 10px;
  padding: 10px 12px;
  color: #26384d;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  outline: none;
}

.draft-meta-editor:focus {
  border-color: #7fc6e8;
  box-shadow: 0 0 0 3px rgba(35, 167, 232, 0.12);
}

.publish-ready {
  margin: 0 24px 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fcff;
}

.publish-ready h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.publish-ready label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

.publish-ready input {
  width: 15px;
  height: 15px;
  accent-color: var(--navy);
}

.draft-toolbox {
  display: grid;
  gap: 12px;
}

.publish-ready.draft-toolbox {
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1.18fr) minmax(320px, 0.92fr);
  align-items: stretch;
  padding: 14px;
  column-gap: 14px;
}

.draft-toolbox-head {
  display: grid;
  align-content: space-between;
  align-items: start;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce8f2;
  border-radius: 12px;
  background: #ffffff;
}

.draft-toolbox-head h3 {
  margin: 0 0 4px;
}

.draft-toolbox-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.draft-tool-block {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dce8f2;
  border-radius: 12px;
  background: #ffffff;
}

.draft-tool-block #modalAppendTagsBtn {
  width: 100%;
}

.draft-tool-block > strong {
  display: block;
  margin-bottom: 8px;
  color: #0d253f;
  font-size: 13px;
}

.draft-toolbox-head,
.draft-tool-block {
  box-shadow: 0 10px 22px rgba(8, 14, 32, 0.045);
}

.modal-title-list {
  display: grid;
  gap: 7px;
}

.modal-title-option {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d5e3ef;
  border-radius: 9px;
  padding: 7px 10px;
  color: #26384d;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  text-align: left;
}

.modal-title-option:hover,
.modal-title-option.active {
  border-color: #7fc6e8;
  color: #075f94;
  background: #eef8ff;
}

.modal-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.draft-tool-block #modalAppendTagsBtn,
.draft-toolbox-head #modalFormatBtn {
  min-height: 34px;
  border-radius: 9px;
}

.draft-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px 10px;
  border-top: 1px solid var(--line);
}

.draft-dialog .draft-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  flex: 0 0 auto;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px 18px;
}

.draft-dialog .draft-actions button {
  width: 100%;
  min-height: 44px;
}

.modal-status {
  margin: 0 24px 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.draft-dialog .modal-status {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 18px 16px;
  background: rgba(12, 17, 29, 0.72);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 14, 28, 0.48);
  backdrop-filter: blur(10px);
}

.app-notice-modal.open {
  display: flex;
}

.app-notice-dialog {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 210, 93, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(11, 16, 36, 0.98) 0%, rgba(31, 111, 184, 0.94) 58%, rgba(181, 31, 50, 0.92) 100%);
  box-shadow: 0 34px 90px rgba(8, 14, 32, 0.34);
  color: #ffffff;
  text-align: center;
}

.app-notice-dialog .notice-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid rgba(255, 210, 93, 0.54);
  border-radius: 999px;
  color: #0b1024;
  background: linear-gradient(180deg, #fff4c2 0%, #ffd25d 100%);
  font-size: 12px;
  font-weight: 950;
}

.app-notice-dialog h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.app-notice-dialog p {
  margin: 12px 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 750;
}

.app-notice-dialog button {
  min-width: 150px;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 18px, 884px);
  }

  .create-card,
  .result-card {
    padding: 20px;
  }

  .card-header,
  .result-head,
  .generate-box,
  .result-publish-row,
  .advanced-row,
  .credential-box,
  .prompt-save-row {
    grid-template-columns: 1fr;
  }

  .card-header,
  .result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .publish-check {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-uploader {
    grid-template-columns: 1fr;
  }

  .inline-save-field {
    grid-template-columns: 1fr;
  }

  .tool-board {
    grid-template-columns: 1fr 1fr;
  }

  .draft-actions {
    flex-direction: column;
  }

  .draft-actions button {
    width: 100%;
  }

  .publish-ready.draft-toolbox {
    grid-template-columns: 1fr;
  }

  .draft-toolbox-head {
    align-items: stretch;
  }
}

/* Premium workspace theme */
:root {
  --bg: #f3f6f9;
  --card: #ffffff;
  --text: #142033;
  --muted: #68778a;
  --line: #dbe5ee;
  --line-dark: #a9c2d7;
  --navy: #1e8acb;
  --navy-2: #126fa8;
  --gold: #1989c8;
  --gold-soft: #eaf6fd;
  --soft: #f3f8fc;
  --shadow: 0 20px 60px rgba(20, 42, 66, 0.11);
  --shadow-soft: 0 10px 26px rgba(20, 42, 66, 0.07);
  --button-shadow: 0 10px 24px rgba(30, 138, 203, 0.22);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(243, 248, 252, 0.96) 52%, #ffffff 100%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(30, 138, 203, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 138, 203, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
}

.page {
  width: min(940px, calc(100% - 34px));
  padding: 20px 0 24px;
}

.card {
  position: relative;
  border-color: #dbe5ee;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #1e8acb 0%, #62c0e7 48%, #8bc7b6 100%);
}

.create-card,
.result-card {
  padding: 24px 28px;
}

.result-card {
  margin-top: 16px;
}

.card-header,
.result-head {
  padding: 2px 0 16px;
  border-bottom-color: #edf3f8;
}

.eyebrow {
  color: #126fa8;
}

h1 {
  color: #101d2f;
  font-size: 23px;
}

.status-pill {
  min-width: 82px;
  border-color: #c5dfef;
  color: #146a9d;
  background: linear-gradient(180deg, #ffffff 0%, #eaf6fd 100%);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.chip-row {
  gap: 7px;
  padding: 5px;
  border: 1px solid #e8f0f7;
  border-radius: 15px;
  background: #f9fcfe;
}

.chip {
  border-color: #e0eaf2;
  color: #4b5a6c;
  background: #ffffff;
}

.chip.active {
  background: linear-gradient(180deg, #2c98d7 0%, var(--navy) 100%);
  box-shadow: 0 6px 14px rgba(35, 136, 209, 0.18);
}

input,
select,
textarea {
  border-color: #d7e2eb;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

input,
select {
  height: 44px;
}

input:focus,
select:focus,
textarea:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 138, 203, 0.15), 0 8px 18px rgba(20, 42, 66, 0.05);
}

.generate-box,
.result-publish-row {
  padding: 12px;
  border-color: #c4ddea;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 253, 0.98) 100%);
  box-shadow: inset 0 1px 0 #ffffff;
}

.generate-btn {
  min-height: 44px;
  border-radius: 10px;
  background: linear-gradient(180deg, #35a4e5 0%, #1e8acb 52%, #1678b7 100%);
  box-shadow: var(--button-shadow);
}

.generate-btn:hover,
.primary-btn:hover {
  box-shadow: 0 12px 26px rgba(30, 138, 203, 0.28);
}

.icon-btn:hover,
.secondary-btn:hover {
  border-color: #8dbddd;
  background: #f7fbfe;
  transform: translateY(-1px);
}

.prompt-options {
  padding: 13px;
  border: 1px solid #e1ebf3;
  border-radius: 14px;
  background: #fbfdff;
}

.prompt-options textarea {
  min-height: 46px;
  height: 46px;
}

.advanced-row {
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 13px;
}

.publish-check,
.image-uploader,
.run-log {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.image-uploader,
.run-log {
  box-shadow: var(--shadow-soft);
}

.metric-row span {
  border: 1px solid #e1edf5;
  background: #f7fbfe;
}

.empty-state {
  border-style: dashed;
  border-color: #cfdde9;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.tool-board {
  gap: 10px;
  margin-top: 14px;
}

.mini-tool {
  min-height: 94px;
  border-color: #dce7ef;
  border-radius: 13px;
  padding: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 18px rgba(22, 57, 88, 0.05);
}

.mini-tool:hover {
  border-color: #95c9ea;
  box-shadow: 0 12px 22px rgba(22, 57, 88, 0.08);
}

.mini-tool span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #126fa8;
  background: linear-gradient(180deg, #eaf6fd 0%, #dff1fb 100%);
}

.secondary-btn,
.primary-btn,
.danger-btn {
  border-radius: 9px;
}

.secondary-btn {
  color: #31445a;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.primary-btn {
  background: linear-gradient(180deg, #2d9be0 0%, var(--navy) 100%);
  box-shadow: var(--button-shadow);
}

.draft-view-btn {
  background: linear-gradient(180deg, #2b96d0 0%, #1c7dbc 100%);
}

.danger-btn {
  background: linear-gradient(180deg, #fffafd 0%, #fff4f7 100%);
}

/* Premium palette v2 */
:root {
  --bg: #f4f7f8;
  --text: #122231;
  --muted: #667887;
  --line: #d9e6e9;
  --line-dark: #9fc1c9;
  --navy: #147f91;
  --navy-2: #0e6675;
  --gold: #168b9b;
  --gold-soft: #e8f6f7;
  --soft: #f1f8f9;
  --shadow: 0 22px 62px rgba(16, 48, 56, 0.12);
  --shadow-soft: 0 10px 26px rgba(16, 48, 56, 0.075);
  --button-shadow: 0 12px 26px rgba(20, 127, 145, 0.24);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(242, 249, 250, 0.98) 54%, #ffffff 100%),
    var(--bg);
}

body::before {
  background:
    linear-gradient(rgba(20, 127, 145, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 127, 145, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.card::before {
  background: linear-gradient(90deg, #147f91 0%, #55bfd0 46%, #8cc9ad 100%);
}

.eyebrow,
.image-pick,
.tag-chip,
.mini-tool span {
  color: #0e6675;
}

.status-pill,
.chip.custom,
.mini-tool span,
.tag-chip,
.image-chip {
  background: linear-gradient(180deg, #edf9fa 0%, #e3f4f5 100%);
  border-color: #b9dde2;
}

.chip.active,
.generate-btn,
.primary-btn {
  background: linear-gradient(180deg, #23a2b6 0%, #147f91 54%, #0f6f7e 100%);
}

.generate-btn:hover,
.primary-btn:hover {
  background: #0e6675;
  box-shadow: 0 14px 28px rgba(20, 127, 145, 0.28);
}

.result-publish-row {
  grid-template-columns: 1fr;
}

.result-publish-row .draft-view-btn {
  min-height: 46px;
  background: linear-gradient(180deg, #1f9aae 0%, #147f91 100%);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #23a2b6;
  box-shadow: 0 0 0 3px rgba(20, 127, 145, 0.14), 0 8px 18px rgba(16, 48, 56, 0.05);
}

.metric-row span,
.empty-state,
.prompt-options,
.publish-check,
.image-uploader,
.run-log {
  border-color: #d9e8eb;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #b9dde2;
  border-radius: 14px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #26a9ba 0%, #147f91 100%);
  box-shadow: 0 12px 24px rgba(20, 127, 145, 0.24);
  font-size: 19px;
  font-weight: 950;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b8f3d7;
  box-shadow: 0 0 0 3px rgba(184, 243, 215, 0.18);
}

.brand-title h1 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title h1::after {
  content: "?ㅽ뒠?붿삤";
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  border: 1px solid #cce4e8;
  border-radius: 999px;
  padding: 0 9px;
  color: #0e6675;
  background: #f2fbfb;
  font-size: 11px;
  font-weight: 850;
}

/* Premium layout refresh 20260708-46 */
:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #d9e2ec;
  --line-dark: #b9c8d8;
  --navy: #0f76bd;
  --navy-2: #0a5f9d;
  --gold: #35a9e6;
  --gold-soft: #edf8ff;
  --soft: #f7fbff;
  --shadow: 0 18px 48px rgba(24, 45, 72, 0.11);
  --button-shadow: 0 12px 24px rgba(15, 118, 189, 0.18);
}

body {
  background: radial-gradient(circle at 12% -8%, rgba(69, 166, 235, 0.12), transparent 32%), linear-gradient(180deg, #ffffff 0%, #f5f8fb 58%, #ffffff 100%);
}

.page {
  width: min(940px, calc(100% - 34px));
  padding: 16px 0;
}

.card {
  border-color: rgba(169, 188, 207, 0.72);
  border-radius: 18px;
  box-shadow: 0 22px 58px rgba(20, 42, 70, 0.10);
}

.create-card,
.result-card {
  padding: 20px 24px;
}

.card-header {
  position: relative;
  padding-bottom: 16px;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(53, 169, 230, 0.36);
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(145deg, #0f76bd 0%, #35a9e6 100%);
  box-shadow: 0 12px 24px rgba(15, 118, 189, 0.18);
  font-weight: 900;
}

.brand-mark::after {
  background: #b7f7d7;
}

.eyebrow {
  color: #0f76bd;
}

h1 {
  font-size: 23px;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #bfe3f8;
  border-radius: 999px;
  padding: 0 14px;
  color: #0a5f9d;
  background: linear-gradient(180deg, #ffffff 0%, #f2faff 100%);
  box-shadow: 0 9px 20px rgba(15, 118, 189, 0.10);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.account-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #12b981;
  box-shadow: 0 0 0 4px rgba(18, 185, 129, 0.14);
}

.status-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-color: #d8e6f2;
  color: #475467;
  background: #ffffff;
}

.layout-hidden,
.advanced-row-premium {
  display: none !important;
}

.prompt-options {
  padding: 12px;
  border: 1px solid #dce9f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.prompt-save-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
}

.compact-length {
  display: grid;
  grid-template-columns: auto 96px;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding-left: 4px;
  white-space: nowrap;
}

.compact-length span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.compact-length select {
  height: 36px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.generate-box {
  border-color: #bfe3f8;
  background: linear-gradient(180deg, #fafdff 0%, #eef8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.generate-btn,
.primary-btn {
  background: linear-gradient(180deg, #23a7e8 0%, #0f76bd 100%);
  box-shadow: 0 12px 24px rgba(15, 118, 189, 0.22);
}

.secondary-btn,
.ghost-btn,
.icon-btn {
  border-color: #d5e3ef;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.chip {
  border-color: #dce6ef;
  background: #ffffff;
}

.chip.active {
  background: linear-gradient(180deg, #23a7e8 0%, #0f76bd 100%);
}

.publish-check,
.image-uploader {
  border-color: #dce9f4;
  background: #fbfdff;
}

.credential-status {
  max-width: 132px;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credential-dialog {
  border-radius: 18px;
  box-shadow: 0 28px 76px rgba(14, 39, 68, 0.28);
}

@media (max-width: 720px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .prompt-save-row {
    grid-template-columns: 1fr;
  }

  .compact-length {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

/* Premium product shell 20260708-47 */
body {
  background:
    linear-gradient(180deg, #eef5fb 0%, #f8fbfd 34%, #ffffff 100%);
}

.page {
  width: min(1080px, calc(100% - 32px));
  padding: 18px 0 24px;
}

.create-card {
  position: relative;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.create-card::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #0f76bd 0%, #23a7e8 48%, #9edbff 100%);
}

.create-card .card-header {
  padding: 18px 22px;
  border-bottom: 1px solid #dce8f2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.96) 100%);
}

.create-card form {
  padding: 18px 22px 20px;
}

.create-card form > .field,
.prompt-options,
.image-uploader {
  padding: 14px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(31, 54, 78, 0.045);
}

.create-card form > .field:first-child {
  margin-top: 0;
}

.field span,
.prompt-options span,
.image-uploader span {
  color: #1d2939;
  font-size: 12px;
  letter-spacing: 0;
}

.chip-row {
  gap: 7px;
}

.chip {
  min-height: 32px;
  padding: 0 13px;
}

.generate-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 15px;
  background:
    linear-gradient(180deg, #f7fcff 0%, #eef8ff 100%);
}

.generate-btn {
  min-height: 44px;
  border-radius: 11px;
  font-size: 14px;
}

.prompt-options {
  margin-top: 0;
}

.prompt-options textarea {
  min-height: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fbfdff;
}

.publish-check {
  display: none !important;
}

.advanced-row {
  display: none !important;
}

.image-uploader {
  margin-top: 12px;
}

.result-card {
  padding: 0;
  border-radius: 20px;
}

.result-head {
  padding: 17px 22px;
  background: #ffffff;
}

.result-publish-row,
.empty-state,
.result-workspace,
.run-log {
  margin-left: 22px;
  margin-right: 22px;
}

.run-log {
  margin-bottom: 20px;
  border-radius: 12px;
}

.tool-board {
  border-radius: 14px;
}

.mini-tool {
  border-color: #dce8f2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.header-actions {
  flex-wrap: wrap;
}

.account-btn {
  border-radius: 12px;
  min-height: 40px;
}

.status-pill {
  border-radius: 12px;
}

.brand-title h1::after {
  content: "프리미엄";
  color: #0f76bd;
  border-color: #bfe3f8;
  background: #eff9ff;
}

@media (min-width: 980px) {
  .create-card form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .create-card form > .field,
  .generate-box,
  .prompt-options,
  .image-uploader,
  #toneInput {
    margin-top: 0;
  }

  .generate-box,
  .prompt-options,
  .image-uploader {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 18px, 940px);
  }

  .create-card .card-header,
  .create-card form,
  .result-head {
    padding-left: 16px;
    padding-right: 16px;
  }

  .result-publish-row,
  .empty-state,
  .result-workspace,
  .run-log {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Neighbor manager 20260708-48 */
.app-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(20, 42, 70, 0.06);
}

.app-tab {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: #667085;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.app-tab.active {
  color: #ffffff;
  background: linear-gradient(180deg, #23a7e8 0%, #0f76bd 100%);
  box-shadow: 0 10px 20px rgba(15, 118, 189, 0.18);
}

.neighbor-card {
  padding: 0;
  border-radius: 20px;
}

.neighbor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid #dce8f2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.neighbor-head h2 {
  margin: 0;
  font-size: 20px;
}

.neighbor-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 18px 22px 12px;
}

.neighbor-grid label {
  display: grid;
  gap: 7px;
}

.neighbor-grid span {
  color: #1d2939;
  font-size: 12px;
  font-weight: 900;
}

.neighbor-wide {
  grid-column: 1 / -1;
}

.neighbor-wide textarea {
  min-height: 72px;
  resize: vertical;
}

.neighbor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 22px 14px;
}

.neighbor-crm-panel {
  margin: 0 22px 14px;
  padding: 14px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background: #ffffff;
}

.neighbor-crm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.neighbor-crm-head h3 {
  margin: 0;
  font-size: 16px;
}

.neighbor-crm-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.neighbor-crm-stats span {
  min-width: 72px;
  padding: 8px 10px;
  border: 1px solid #dce8f2;
  border-radius: 12px;
  background: #f8fcff;
  text-align: center;
}

.neighbor-crm-stats strong,
.neighbor-crm-stats small {
  display: block;
}

.neighbor-crm-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.neighbor-crm-actions button {
  min-height: 40px;
}

.neighbor-candidate-list {
  display: grid;
  gap: 8px;
  max-height: 250px;
  overflow: auto;
}

.neighbor-candidate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #edf3f8;
  border-radius: 12px;
  background: #f8fcff;
}

.neighbor-candidate-row strong,
.neighbor-candidate-row p,
.neighbor-candidate-row small {
  display: block;
  margin: 0;
}

.neighbor-candidate-row p,
.neighbor-candidate-row small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.neighbor-status {
  padding: 7px 10px;
  border-radius: 999px;
  color: #0f3f6f;
  background: #dff0ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.neighbor-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.neighbor-row-actions button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.neighbor-output {
  margin: 0 22px 12px;
  padding: 16px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background: #ffffff;
  min-height: 180px;
}

.neighbor-output h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.empty-state.compact {
  min-height: 140px;
  border: 1px dashed #cfdce8;
  border-radius: 12px;
}

.comment-draft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #edf3f8;
}

.comment-draft:first-of-type {
  border-top: 0;
}

.comment-draft p,
.neighbor-message p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.6;
}

.neighbor-message {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dce8f2;
  border-radius: 12px;
  background: #f8fcff;
}

.neighbor-message strong {
  display: block;
  margin-bottom: 6px;
  color: #0f76bd;
  font-size: 12px;
}

.neighbor-comment-dialog {
  max-width: 980px;
}

.neighbor-comment-option {
  display: grid;
  gap: 10px;
}

.neighbor-comment-option-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.neighbor-comment-option-actions button {
  min-width: 150px;
}

.neighbor-log {
  margin: 0 22px 20px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #475467;
  background: #f7fafc;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .app-tabs,
  .neighbor-actions {
    flex-direction: column;
  }

  .neighbor-grid {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .neighbor-output,
  .neighbor-crm-panel,
  .neighbor-log {
    margin-left: 16px;
    margin-right: 16px;
  }

  .comment-draft {
    grid-template-columns: 1fr;
  }

  .neighbor-crm-head,
  .neighbor-candidate-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

/* Persona manager 20260710-50 */
.persona-card {
  padding: 0;
  border-radius: 20px;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 22px 12px;
}

.persona-grid label {
  display: grid;
  gap: 7px;
}

.persona-grid span {
  color: #1d2939;
  font-size: 12px;
  font-weight: 900;
}

.persona-wide {
  grid-column: 1 / -1;
}

.persona-wide textarea {
  min-height: 72px;
}

.persona-preview {
  margin: 0 22px 14px;
  padding: 13px 14px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.persona-preview strong {
  display: block;
  margin-bottom: 5px;
  color: #0f76bd;
  font-size: 12px;
}

.persona-preview p {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .persona-grid {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .persona-preview {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Publishing team mode 20260710-51 */
.team-card {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.team-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) 160px;
  gap: 12px;
  padding: 18px 22px 12px;
}

.team-brief label {
  display: grid;
  gap: 7px;
}

.team-brief span {
  color: #1d2939;
  font-size: 12px;
  font-weight: 900;
}

.team-brief textarea {
  min-height: 72px;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 22px 14px;
}

.team-member {
  min-height: 112px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 10px 24px rgba(31, 54, 78, 0.045);
}

.team-member strong {
  display: block;
  color: #0f76bd;
  font-size: 14px;
}

.team-member p {
  margin: 7px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.team-member.done {
  border-color: #9edbff;
  background: linear-gradient(180deg, #f2faff 0%, #ffffff 100%);
}

.team-output {
  margin: 0 22px 20px;
  padding: 16px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background: #ffffff;
  min-height: 220px;
}

.team-stage,
.team-final {
  padding: 12px 0;
  border-top: 1px solid #edf3f8;
}

.team-stage:first-child {
  border-top: 0;
}

.team-stage strong,
.team-final strong {
  display: block;
  margin-bottom: 6px;
  color: #0f76bd;
  font-size: 12px;
}

.team-stage p,
.team-final p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.team-final h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
}

@media (max-width: 920px) {
  .team-brief,
  .team-members {
    grid-template-columns: 1fr;
  }
}

/* SaaS command center 20260710-52 */
.app-tabs {
  position: sticky;
  top: 8px;
  z-index: 20;
  width: min(760px, 100%);
  margin: 0 auto 14px;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.app-tab {
  flex: 1;
  letter-spacing: 0;
}

.team-card {
  border-radius: 24px;
  border-color: rgba(172, 196, 218, 0.8);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 28px 72px rgba(22, 42, 68, 0.13);
}

.team-card .neighbor-head {
  padding: 22px 26px;
  background:
    linear-gradient(135deg, rgba(15, 118, 189, 0.08) 0%, rgba(255, 255, 255, 0.94) 52%, rgba(53, 169, 230, 0.10) 100%);
}

.team-card .neighbor-head h2 {
  font-size: 24px;
}

.team-card .neighbor-head .eyebrow::after {
  content: " 쨌 Command Center";
  color: #667085;
}

.team-card > .neighbor-actions {
  justify-content: flex-start;
  padding: 0 26px 18px;
}

.team-card > .neighbor-actions .primary-btn,
.team-card > .neighbor-actions .secondary-btn {
  min-height: 42px;
  border-radius: 11px;
  padding: 0 16px;
}

.team-brief {
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.35fr) 150px;
  padding: 22px 26px 14px;
  background: #fbfdff;
}

.team-brief label {
  padding: 14px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 54, 78, 0.04);
}

.team-members {
  position: relative;
  padding: 6px 26px 18px;
}

.team-members::before {
  content: "";
  position: absolute;
  left: 38px;
  right: 38px;
  top: 55px;
  height: 2px;
  background: linear-gradient(90deg, #cfe8f8 0%, #9edbff 100%);
}

.team-member {
  position: relative;
  z-index: 1;
  min-height: 126px;
  border-radius: 16px;
  background: #ffffff;
}

.team-member::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border: 1px solid #bfe3f8;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #eff9ff 100%);
  box-shadow: inset 0 0 0 7px #f4fbff;
}

.team-member.done::before {
  border-color: #35a9e6;
  background: #35a9e6;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.35), 0 0 0 5px rgba(53, 169, 230, 0.12);
}

.team-output {
  margin: 0 26px 24px;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 14px 36px rgba(31, 54, 78, 0.06);
}

.team-stage {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.team-stage strong,
.team-final strong {
  color: #0a5f9d;
  font-size: 13px;
}

.team-final {
  margin-top: 8px;
  padding: 16px;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.team-final p {
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
}

@media (max-width: 920px) {
  .team-members::before {
    display: none;
  }

  .team-stage {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Premium SaaS command center 20260710-52 */
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(53, 169, 230, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbfe 0%, #eef5fa 46%, #ffffff 100%);
}

.page {
  width: min(1080px, calc(100% - 32px));
}

.app-tabs {
  padding: 5px;
  border: 1px solid rgba(190, 211, 229, 0.88);
  box-shadow: 0 14px 34px rgba(22, 42, 68, 0.08);
}

.app-tab {
  min-height: 38px;
  border-radius: 12px;
  color: #5b6978;
  font-size: 13px;
  font-weight: 900;
}

.app-tab.active {
  background: linear-gradient(180deg, #1697d4 0%, #0b72b8 100%);
  box-shadow: 0 10px 22px rgba(17, 120, 190, 0.22);
}

.team-card {
  position: relative;
  border: 1px solid rgba(178, 201, 220, 0.92);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(249,252,255,0.98) 100%);
}

.team-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #0b72b8 0%, #35a9e6 42%, #70d2d8 100%);
}

.team-card .neighbor-head {
  position: relative;
  min-height: 124px;
  align-items: flex-start;
  padding: 26px 30px 18px;
}

.team-card .neighbor-head::after {
  content: "AI 湲고쉷 쨌 蹂몃Ц ?묒꽦 쨌 SEO 寃??쨌 諛쒗뻾 以鍮?;
  position: absolute;
  left: 30px;
  bottom: 18px;
  color: #52657a;
  font-size: 13px;
  font-weight: 800;
}

.team-card .neighbor-head h2 {
  margin-top: 2px;
  color: #0d253f;
  font-size: 27px;
  letter-spacing: 0;
}

.team-card .status-pill {
  min-width: 96px;
  text-align: center;
  color: #0c659d;
  background: #eef9ff;
}

.team-brief {
  margin: 0 30px 16px;
  padding: 16px;
  border: 1px solid #dce9f3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(31, 54, 78, 0.055);
}

.team-brief label {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.team-brief input,
.team-brief select,
.team-brief textarea {
  border-radius: 12px;
  background: #fafdff;
}

.team-telegram {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  margin: 0 30px 16px;
  padding: 14px;
  border: 1px solid #dce9f3;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 12px 28px rgba(31, 54, 78, 0.045);
}

.team-telegram strong {
  display: block;
  color: #0d253f;
  font-size: 13px;
}

.team-telegram p {
  margin: 4px 0 0;
  color: #617084;
  font-size: 12px;
  line-height: 1.45;
}

.team-telegram button {
  min-height: 38px;
  white-space: nowrap;
}

.team-telegram span {
  min-width: 62px;
  color: #6b7b8c;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.team-telegram span.saved {
  color: #086146;
}

.team-request-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.team-request-tools select,
.team-request-tools button {
  min-height: 36px;
}

.telegram-modal .modal-status.saved {
  color: #086146;
  font-weight: 850;
}

.team-members {
  margin: 0 30px 14px;
  padding: 4px 0 6px;
}

.team-members::before {
  left: 52px;
  right: 52px;
  top: 57px;
  height: 3px;
  border-radius: 999px;
}

.team-member {
  border-color: #d7e7f2;
  padding: 16px;
  box-shadow: 0 18px 34px rgba(31, 54, 78, 0.07);
}

.team-member strong {
  color: #0d253f;
  font-size: 14px;
}

.team-member p {
  color: #617084;
}

.team-member.done {
  border-color: rgba(53, 169, 230, 0.76);
  box-shadow: 0 18px 40px rgba(27, 137, 204, 0.13);
}

.team-card > .neighbor-actions {
  margin: 0 30px 18px;
  padding: 14px;
  border: 1px solid #dce9f3;
  border-radius: 16px;
  background: #fafdff;
}

.team-card > .neighbor-actions .primary-btn,
.team-card > .neighbor-actions .secondary-btn {
  min-width: 148px;
  min-height: 44px;
  border-radius: 12px;
}

.team-output {
  margin: 0 30px 28px;
  min-height: 260px;
  border-color: #d5e5f0;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.team-stage {
  grid-template-columns: 148px minmax(0, 1fr);
  padding: 15px 0;
}

.team-stage strong,
.team-final strong {
  color: #0b72b8;
}

.team-final {
  border-color: #cfe4f2;
  background: #ffffff;
}

.team-final h3 {
  color: #0d253f;
}

.team-member::after {
  content: attr(data-status);
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #6b7b8c;
  background: #f2f6fa;
  font-size: 11px;
  font-weight: 900;
}

.team-member.waiting {
  opacity: 0.82;
}

.team-member.working {
  border-color: #0b72b8;
  background: linear-gradient(180deg, #f2fbff 0%, #ffffff 100%);
  box-shadow: 0 18px 42px rgba(17, 120, 190, 0.18);
}

.team-member.working::before {
  border-color: #0b72b8;
  background: conic-gradient(from 90deg, #0b72b8, #70d2d8, #eef9ff, #0b72b8);
  animation: teamPulse 1.25s linear infinite;
}

.team-member.working::after {
  color: #ffffff;
  background: #0b72b8;
}

.team-member.done::after {
  color: #086146;
  background: #e9f8f0;
}

.team-member.error::after {
  color: #9f1239;
  background: #fff1f3;
}

.team-live-log {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #dce9f3;
  border-radius: 14px;
  background: #ffffff;
}

.team-live-log strong {
  color: #0d253f;
  font-size: 14px;
}

.team-live-log p {
  margin: 0;
  color: #52657a;
  font-size: 13px;
  line-height: 1.65;
}

@keyframes teamPulse {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .page {
    width: min(100% - 24px, 720px);
  }

  .team-card .neighbor-head,
  .team-brief,
  .team-telegram,
  .team-members,
  .team-card > .neighbor-actions,
  .team-output {
    margin-left: 18px;
    margin-right: 18px;
  }

  .team-card .neighbor-head {
    margin: 0;
    padding-left: 22px;
    padding-right: 22px;
  }

  .team-card .neighbor-head::after {
    left: 22px;
    right: 22px;
  }

  .team-telegram {
    grid-template-columns: 1fr;
  }

  .team-request-tools {
    grid-template-columns: 1fr;
  }
}

/* Premium polish 20260710-61 */
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 132, 214, 0.08), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(17, 185, 173, 0.07), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 44%, #f6fafc 100%);
}

.app-tabs {
  backdrop-filter: blur(18px);
  border-color: rgba(184, 207, 226, 0.78);
  background: rgba(255, 255, 255, 0.86);
}

.app-tab {
  color: #4a5d72;
  font-weight: 900;
}

.app-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0b72b8 0%, #1697d5 58%, #22b8be 100%);
  box-shadow: 0 12px 26px rgba(14, 118, 189, 0.24);
}

.team-card {
  border-color: rgba(162, 190, 214, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 252, 255, 0.96) 100%);
  box-shadow:
    0 30px 80px rgba(23, 48, 77, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.team-card::before {
  height: 7px;
  background: linear-gradient(90deg, #075f9c 0%, #12a3dc 42%, #2ad0c3 100%);
}

.team-card .neighbor-head {
  background:
    linear-gradient(135deg, rgba(7, 95, 156, 0.10) 0%, rgba(255, 255, 255, 0.96) 48%, rgba(42, 208, 195, 0.10) 100%);
}

.team-card .neighbor-head h2 {
  font-size: 29px;
  font-weight: 950;
}

.team-card .status-pill,
.team-telegram span {
  border: 1px solid rgba(28, 147, 199, 0.18);
  border-radius: 999px;
  background: #eef9ff;
}

.team-brief,
.team-telegram,
.team-card > .neighbor-actions,
.team-output {
  border-color: rgba(204, 224, 239, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 253, 255, 0.98) 100%);
  box-shadow: 0 16px 34px rgba(31, 54, 78, 0.055);
}

.team-brief input,
.team-brief textarea,
.team-brief select,
.team-request-tools select {
  border-radius: 12px;
  border-color: #ccdfef;
  background: #fbfdff;
}

.team-member {
  border-color: rgba(204, 224, 239, 0.95);
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: 0 20px 38px rgba(31, 54, 78, 0.08);
}

.team-member::before {
  border-color: #b9e4f6;
  box-shadow: 0 8px 16px rgba(14, 118, 189, 0.10);
}

.team-card > .neighbor-actions .primary-btn {
  background: linear-gradient(135deg, #0b72b8 0%, #1098d8 58%, #20b9bd 100%);
  box-shadow: 0 16px 30px rgba(15, 118, 189, 0.27);
}

.team-card > .neighbor-actions .secondary-btn,
.team-request-tools .secondary-btn,
.team-request-tools .ghost-btn,
.team-telegram .secondary-btn {
  border-color: #cbddea;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fd 100%);
  box-shadow: 0 10px 20px rgba(31, 54, 78, 0.055);
}

/* Publishing team command panel 20260710-65 */
.team-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px;
  align-items: stretch;
  padding: 18px;
}

.team-command-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.25fr);
  gap: 14px;
  align-items: start;
}

.team-command-main label,
.team-length-card {
  display: grid;
  gap: 8px;
}

.team-keyword-field,
.team-request-field,
.team-length-card {
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(207, 225, 239, 0.92);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 253, 255, 0.98) 100%);
  box-shadow: 0 12px 24px rgba(31, 54, 78, 0.045);
}

.team-keyword-field span,
.team-request-field span,
.team-length-card span {
  display: flex;
  align-items: center;
  min-height: 18px;
  color: #12263d;
  font-size: 12px;
  font-weight: 950;
}

.team-keyword-field small {
  color: #66778a;
  font-size: 12px;
  line-height: 1.45;
}

.team-keyword-field input,
.team-request-field textarea,
.team-length-card select,
.team-request-tools select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-size: 13px;
}

.team-request-field textarea {
  min-height: 104px;
  resize: vertical;
}

.team-request-tools {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 116px 84px;
  gap: 10px;
  align-items: center;
  margin-top: 0;
  padding: 12px;
  border: 1px solid rgba(207, 225, 239, 0.86);
  border-radius: 16px;
  background: rgba(248, 252, 255, 0.82);
}

.team-request-tools button,
.team-command-actions button,
.team-telegram button {
  min-height: 44px;
  border-radius: 12px;
  white-space: nowrap;
}

.team-command-side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.team-length-card {
  min-height: auto;
}

.team-command-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-content: stretch;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(207, 225, 239, 0.92);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 12px 24px rgba(31, 54, 78, 0.055);
}

.team-command-actions .primary-btn,
.team-command-actions .secondary-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.team-card > .team-command-panel + .team-telegram {
  margin-top: 0;
}

@media (max-width: 1040px) {
  .team-command-panel,
  .team-command-main {
    grid-template-columns: 1fr;
  }

  .team-command-side {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .team-command-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .team-command-panel {
    margin-left: 18px;
    margin-right: 18px;
    padding: 14px;
  }

  .team-command-side,
  .team-request-tools,
  .team-command-actions {
    grid-template-columns: 1fr;
  }
}

/* Blog Avengers command theme 20260710-69 */
.app-tab[data-view="team"] {
  position: relative;
  overflow: hidden;
  color: #f8fbff;
  border-color: rgba(255, 210, 93, 0.42);
  background:
    linear-gradient(135deg, #0b1024 0%, #163d73 48%, #9e1f2f 100%);
  box-shadow: 0 14px 30px rgba(11, 16, 36, 0.22);
}

.app-tab[data-view="team"]::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: inherit;
  pointer-events: none;
}

.team-card {
  border-color: rgba(21, 32, 58, 0.34);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 210, 93, 0.20), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(25, 118, 210, 0.18), transparent 30%),
    linear-gradient(180deg, #f9fbff 0%, #eef4fb 100%);
  box-shadow:
    0 24px 70px rgba(8, 16, 36, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.team-card::before {
  height: 8px;
  background: linear-gradient(90deg, #15203a 0%, #1f6fb8 28%, #ffd25d 54%, #b51f32 100%);
}

.team-card .neighbor-head {
  min-height: 142px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(8, 14, 32, 0.96) 0%, rgba(22, 61, 115, 0.94) 52%, rgba(158, 31, 47, 0.92) 100%);
}

.team-card .neighbor-head::before {
  content: "A";
  position: absolute;
  right: 30px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 210, 93, 0.80);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  font-weight: 950;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.22);
}

.team-card .neighbor-head::after {
  content: "AI ?묒쟾 湲고쉷 쨌 泥쒕뫁 蹂몃Ц ?묒꽦 쨌 ?꾪겕 寃??쨌 諛⑺뙣 諛쒗뻾 以鍮?;
  color: rgba(255, 255, 255, 0.76);
}

.team-card .neighbor-head .eyebrow {
  color: #ffd25d;
}

.team-card .neighbor-head .eyebrow::after {
  content: " 쨌 Avengers Command";
  color: rgba(255, 255, 255, 0.60);
}

.team-card .neighbor-head h2 {
  color: #ffffff;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.team-card .status-pill {
  color: #15203a;
  border-color: rgba(255, 210, 93, 0.62);
  background: linear-gradient(180deg, #fff6d7 0%, #ffd25d 100%);
}

.team-brief,
.team-telegram,
.team-card > .neighbor-actions,
.team-output {
  border-color: rgba(21, 32, 58, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(8, 16, 36, 0.08);
}

.team-keyword-field,
.team-request-field,
.team-length-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.team-members {
  gap: 12px;
}

.team-member {
  overflow: hidden;
  border-color: rgba(21, 32, 58, 0.13);
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.team-member::before {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-width: 2px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 14px 26px rgba(8, 16, 36, 0.16);
}

.team-member[data-role="planner"]::before {
  content: "SLJ";
  border-color: #26324f;
  background: linear-gradient(135deg, #0b1024 0%, #32405f 100%);
}

.team-member[data-role="writer"]::before {
  content: "TH";
  border-color: #7fc8ff;
  background: linear-gradient(135deg, #105c9e 0%, #68c7ff 100%);
}

.team-member[data-role="seo"]::before {
  content: "IM";
  border-color: #ffd25d;
  background: linear-gradient(135deg, #b51f32 0%, #ffd25d 100%);
}

.team-member[data-role="publisher"]::before {
  content: "CA";
  border-color: #284f96;
  background:
    linear-gradient(135deg, #163d73 0%, #284f96 46%, #b51f32 100%);
}

.team-member strong {
  color: #15203a;
  font-size: 15px;
}

.team-member p {
  color: #526176;
}

.team-member.working {
  border-color: rgba(255, 210, 93, 0.78);
  background:
    linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  box-shadow:
    0 20px 46px rgba(181, 31, 50, 0.13),
    0 0 0 4px rgba(255, 210, 93, 0.12);
}

.team-member.working::before {
  border-color: #ffd25d;
  animation: teamPulse 1.1s linear infinite;
}

.team-member.working::after {
  background: #b51f32;
}

.team-member.done {
  border-color: rgba(31, 111, 184, 0.42);
  box-shadow: 0 18px 40px rgba(31, 111, 184, 0.13);
}

.team-member.done::before {
  border-color: #ffd25d;
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.26),
    0 0 0 5px rgba(255, 210, 93, 0.14);
}

/* Team card readability refinement 20260711-88 */
.team-members {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.team-member {
  min-height: 118px;
  padding: 18px 14px 38px 66px;
}

.team-member strong {
  display: block;
  overflow: visible;
  max-width: 100%;
  color: #15203a;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
}

.team-member p {
  overflow: hidden;
  margin-top: 7px;
  max-width: 100%;
  color: #5d6b80;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member::before {
  left: 16px;
}

.team-member::after {
  top: auto;
  right: 12px;
  bottom: 12px;
}

.team-card > .neighbor-actions .primary-btn,
.team-command-actions .primary-btn {
  border-color: #8b1726;
  background: linear-gradient(135deg, #b51f32 0%, #e24855 48%, #ffd25d 100%);
  box-shadow: 0 18px 34px rgba(181, 31, 50, 0.26);
}

.team-card > .neighbor-actions .secondary-btn,
.team-command-actions .secondary-btn,
.team-request-tools .secondary-btn,
.team-request-tools .ghost-btn,
.team-telegram .secondary-btn {
  border-color: rgba(21, 32, 58, 0.18);
  color: #15203a;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.team-stage strong,
.team-final strong {
  color: #b51f32;
}

.team-live-log {
  border-color: rgba(255, 210, 93, 0.34);
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

/* Global Avengers-inspired premium skin 20260710-70 */
:root {
  --avenger-navy: #0b1024;
  --avenger-blue: #1f6fb8;
  --avenger-red: #b51f32;
  --avenger-gold: #ffd25d;
  --avenger-ice: #eef5ff;
}

body {
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 210, 93, 0.24), transparent 18%),
    radial-gradient(circle at 84% 6%, rgba(31, 111, 184, 0.26), transparent 22%),
    radial-gradient(circle at 78% 82%, rgba(181, 31, 50, 0.16), transparent 26%),
    linear-gradient(135deg, #080e20 0%, #111b35 38%, #172c52 62%, #f5f8fd 62.2%, #ffffff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 72px),
    linear-gradient(22deg, rgba(255, 210, 93, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(8, 14, 32, 0.72) 0%, rgba(8, 14, 32, 0.08) 54%, rgba(255, 255, 255, 0.90) 100%);
  background-size: 72px 72px, auto, auto;
}

body::after {
  content: "A";
  position: fixed;
  right: clamp(18px, 5vw, 72px);
  top: 86px;
  z-index: -1;
  width: clamp(132px, 20vw, 250px);
  height: clamp(132px, 20vw, 250px);
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 210, 93, 0.20);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.09);
  font-size: clamp(82px, 15vw, 172px);
  font-weight: 950;
  line-height: 1;
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.025),
    0 34px 80px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
}

.app-tabs {
  border-color: rgba(255, 210, 93, 0.20);
  background:
    linear-gradient(135deg, rgba(8, 14, 32, 0.92) 0%, rgba(22, 42, 78, 0.88) 100%);
  box-shadow:
    0 18px 44px rgba(8, 14, 32, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.app-tab {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.app-tab::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: inherit;
  pointer-events: none;
}

.app-tab:hover,
.app-tab.active,
.app-tab[data-view="team"] {
  color: #ffffff;
  border-color: rgba(255, 210, 93, 0.42);
  background:
    linear-gradient(135deg, var(--avenger-navy) 0%, var(--avenger-blue) 48%, var(--avenger-red) 100%);
  box-shadow: 0 14px 30px rgba(11, 16, 36, 0.24);
}

.create-card,
.result-card,
.neighbor-card {
  border-color: rgba(21, 32, 58, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
  box-shadow:
    0 24px 66px rgba(8, 14, 32, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.create-card::before,
.result-card::before,
.neighbor-card::before {
  height: 6px;
  background: linear-gradient(90deg, var(--avenger-navy) 0%, var(--avenger-blue) 32%, var(--avenger-gold) 58%, var(--avenger-red) 100%);
}

.create-card .card-header,
.result-head,
.neighbor-card .neighbor-head {
  background:
    linear-gradient(135deg, rgba(8, 14, 32, 0.96) 0%, rgba(22, 61, 115, 0.92) 58%, rgba(181, 31, 50, 0.86) 100%);
  color: #ffffff;
}

.create-card .card-header h1,
.create-card .card-header h2,
.result-head h2,
.neighbor-card .neighbor-head h2 {
  color: #ffffff;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.eyebrow,
.create-card .eyebrow,
.result-head .eyebrow,
.neighbor-card .eyebrow {
  color: var(--avenger-gold);
}

.generate-btn,
.primary-btn,
.image-pick,
.draft-view-btn {
  border-color: #8b1726;
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--avenger-red) 0%, #e24855 46%, var(--avenger-gold) 100%);
  box-shadow: 0 16px 32px rgba(181, 31, 50, 0.24);
}

.generate-btn:hover,
.primary-btn:hover,
.image-pick:hover,
.draft-view-btn:hover {
  background:
    linear-gradient(135deg, #8d1727 0%, var(--avenger-red) 54%, #f2bf3c 100%);
  box-shadow: 0 18px 38px rgba(181, 31, 50, 0.30);
}

.secondary-btn,
.ghost-btn,
.icon-btn,
.modal-title-option,
.team-request-tools .secondary-btn,
.team-request-tools .ghost-btn,
.team-telegram .secondary-btn {
  border-color: rgba(21, 32, 58, 0.18);
  color: #15203a;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--avenger-ice) 100%);
  box-shadow: 0 10px 22px rgba(8, 14, 32, 0.08);
}

.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.modal-title-option:hover {
  border-color: rgba(255, 210, 93, 0.64);
  background:
    linear-gradient(180deg, #fffaf0 0%, #eef5ff 100%);
}

.chip-row {
  border-color: rgba(21, 32, 58, 0.13);
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

.chip {
  border-color: rgba(21, 32, 58, 0.14);
  color: #26324f;
  background: #ffffff;
}

.chip.active,
.chip.custom {
  color: #ffffff;
  border-color: rgba(255, 210, 93, 0.48);
  background:
    linear-gradient(135deg, var(--avenger-navy) 0%, var(--avenger-blue) 58%, var(--avenger-red) 100%);
  box-shadow: 0 10px 22px rgba(8, 14, 32, 0.20);
}

.publish-check,
.image-uploader,
.prompt-options,
.create-card form > .field,
.result-workspace,
.draft-toolbox,
.draft-meta-section {
  border-color: rgba(21, 32, 58, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.tag-chip,
.image-chip,
.status-pill {
  color: #15203a;
  border-color: rgba(255, 210, 93, 0.52);
  background:
    linear-gradient(180deg, #fff7d8 0%, #ffe28a 100%);
}

/* Premium action buttons 20260710-71 */
button,
.image-pick {
  position: relative;
  isolation: isolate;
}

.generate-btn,
.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.image-pick,
.draft-view-btn,
.modal-title-option,
.chip {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.generate-btn,
.primary-btn,
.image-pick,
.draft-view-btn {
  min-height: 44px;
  border: 1px solid rgba(255, 210, 93, 0.46);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 22%),
    linear-gradient(135deg, #9f182a 0%, #c8263c 42%, #f1b83f 100%);
  box-shadow:
    0 18px 34px rgba(181, 31, 50, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(82, 17, 28, 0.30);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.generate-btn::before,
.primary-btn::before,
.image-pick::before,
.draft-view-btn::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 45%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
  z-index: -1;
}

.generate-btn:hover,
.primary-btn:hover,
.image-pick:hover,
.draft-view-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 230, 142, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 24%),
    linear-gradient(135deg, #7f1423 0%, #b51f32 48%, #ffd25d 100%);
  box-shadow:
    0 22px 44px rgba(181, 31, 50, 0.34),
    0 0 0 4px rgba(255, 210, 93, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.generate-btn:active,
.primary-btn:active,
.image-pick:active,
.draft-view-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.icon-btn:active,
.modal-title-option:active {
  transform: translateY(0);
}

.secondary-btn,
.ghost-btn,
.icon-btn,
.modal-title-option,
.team-command-actions .secondary-btn,
.team-request-tools .secondary-btn,
.team-request-tools .ghost-btn,
.team-telegram .secondary-btn {
  min-height: 40px;
  border: 1px solid rgba(255, 210, 93, 0.26);
  border-radius: 12px;
  color: #15203a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 245, 255, 0.98) 100%);
  box-shadow:
    0 12px 24px rgba(8, 14, 32, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.modal-title-option:hover,
.team-command-actions .secondary-btn:hover,
.team-request-tools .secondary-btn:hover,
.team-request-tools .ghost-btn:hover,
.team-telegram .secondary-btn:hover {
  transform: translateY(-2px);
  color: #0b1024;
  border-color: rgba(255, 210, 93, 0.72);
  background:
    linear-gradient(180deg, #fff9e6 0%, #eef5ff 100%);
  box-shadow:
    0 16px 30px rgba(8, 14, 32, 0.14),
    0 0 0 4px rgba(255, 210, 93, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

.icon-btn {
  border-radius: 11px;
  font-weight: 950;
}

.team-command-actions .primary-btn,
.team-card > .neighbor-actions .primary-btn {
  min-height: 48px;
  font-size: 14px;
  letter-spacing: 0;
}

.team-command-actions .secondary-btn,
.team-card > .neighbor-actions .secondary-btn {
  min-height: 46px;
}

button:disabled {
  filter: grayscale(0.25);
  box-shadow: none;
}

/* Keyword analysis cockpit 20260711-88 */
.keyword-card {
  overflow: hidden;
}

.keyword-card .neighbor-head {
  background:
    linear-gradient(135deg, rgba(11, 16, 36, 0.96) 0%, rgba(31, 111, 184, 0.92) 52%, rgba(181, 31, 50, 0.88) 100%);
  color: #ffffff;
}

.keyword-card .eyebrow {
  color: var(--avenger-gold);
}

.keyword-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(255, 210, 93, 0.20);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 245, 255, 0.94) 100%);
  box-shadow: 0 14px 30px rgba(8, 14, 32, 0.08);
}

.keyword-actions {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1.18fr 1.45fr 0.92fr 1.22fr;
  gap: 10px;
}

.keyword-actions button {
  min-height: 46px;
  padding-inline: 12px;
  white-space: nowrap;
}

.keyword-summary {
  margin-top: 14px;
}

.keyword-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 14px;
  align-items: center;
  min-height: 128px;
  padding: 20px;
  border: 1px solid rgba(255, 210, 93, 0.28);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(11, 16, 36, 0.98) 0%, rgba(31, 111, 184, 0.92) 56%, rgba(181, 31, 50, 0.88) 100%);
  box-shadow: 0 18px 40px rgba(8, 14, 32, 0.18);
  color: #ffffff;
}

.spotlight-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 210, 93, 0.34);
  border-radius: 999px;
  color: var(--avenger-gold);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.keyword-spotlight strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.28;
}

.keyword-spotlight p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 750;
}

.spotlight-score {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.spotlight-score span {
  color: var(--avenger-gold);
  font-size: 30px;
  font-weight: 950;
}

.spotlight-score small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.keyword-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.keyword-metrics span {
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(184, 207, 226, 0.72);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(8, 14, 32, 0.06);
}

.keyword-metrics strong {
  display: block;
  overflow: hidden;
  color: var(--avenger-navy);
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyword-metrics small {
  display: block;
  margin-top: 6px;
  color: #66778a;
  font-size: 12px;
  font-weight: 850;
}

.samuel-extract-summary {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 210, 93, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(11, 16, 36, 0.96) 0%, rgba(30, 55, 102, 0.94) 52%, rgba(255, 210, 93, 0.18) 100%),
    #0b1024;
  box-shadow: 0 18px 36px rgba(8, 14, 32, 0.16);
  color: #ffffff;
}

.samuel-brief {
  display: grid;
  gap: 6px;
}

.samuel-brief span {
  color: var(--avenger-gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.samuel-brief strong {
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
}

.samuel-brief p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 760;
}

.samuel-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.samuel-picks span {
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 210, 93, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.keyword-table-wrap {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid rgba(184, 207, 226, 0.72);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(8, 14, 32, 0.08);
}

.keyword-team-btn {
  border-color: rgba(255, 210, 93, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 210, 93, 0.18) 0%, rgba(31, 111, 184, 0.10) 100%),
    #ffffff;
}

.samuel-keyword-btn {
  color: #ffffff;
  border-color: rgba(255, 210, 93, 0.36);
  background:
    linear-gradient(135deg, var(--avenger-navy) 0%, #394b78 42%, #7c1828 100%);
  box-shadow: 0 14px 28px rgba(8, 14, 32, 0.22);
}

.keyword-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.keyword-table th,
.keyword-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 235, 244, 0.92);
  text-align: left;
  vertical-align: middle;
}

.keyword-table th {
  color: #51657c;
  font-size: 12px;
  font-weight: 950;
  background: rgba(238, 245, 255, 0.88);
}

.keyword-table tbody tr:hover {
  background: rgba(255, 210, 93, 0.10);
}

.keyword-cell {
  color: var(--avenger-navy);
  font-weight: 900;
}

.grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  background: #60758d;
}

.grade-s {
  background: linear-gradient(135deg, #8d1727 0%, var(--avenger-red) 48%, var(--avenger-gold) 100%);
}

.grade-a {
  background: linear-gradient(135deg, var(--avenger-blue) 0%, #22b8be 100%);
}

.grade-b {
  background: linear-gradient(135deg, #364f72 0%, #6787b8 100%);
}

@media (max-width: 860px) {
  .keyword-command-panel,
  .keyword-spotlight,
  .keyword-metrics {
    grid-template-columns: 1fr;
  }

  .keyword-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

/* Final draft modal tool layout lock 20260711-88 */
.draft-dialog .publish-ready.draft-toolbox {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.18fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 12px !important;
}

.draft-dialog .draft-toolbox-head,
.draft-dialog .draft-tool-block {
  min-width: 0 !important;
}

.draft-dialog .draft-toolbox-head h3,
.draft-dialog .draft-tool-block > strong {
  margin-bottom: 6px;
  white-space: nowrap;
}

.draft-dialog .draft-toolbox-head p {
  line-height: 1.45;
}

.draft-dialog .modal-title-list {
  max-height: 142px;
  overflow: auto;
}

.draft-dialog .modal-tag-list {
  max-height: 96px;
  overflow: auto;
}

@media (max-width: 720px) {
  .draft-dialog .publish-ready.draft-toolbox {
    grid-template-columns: minmax(150px, 0.9fr) minmax(170px, 1.18fr) minmax(160px, 1fr) !important;
    overflow-x: auto;
  }
}

.team-auto-request-note {
  display: block;
  margin-top: 8px;
  color: #5d6b80;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

/* Blog Avengers pro command center 20260713-89 */
.team-card.team-pro-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(134, 147, 181, 0.26);
  border-radius: 22px;
  background: #111722;
  box-shadow:
    0 30px 80px rgba(4, 9, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.team-card.team-pro-card::before,
.team-card.team-pro-card .neighbor-head {
  display: none;
}

.team-pro-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 18px;
  min-height: 690px;
  padding: 18px;
  color: #eef4ff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(180deg, #101622 0%, #151b28 100%);
}

.team-pro-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(120, 132, 164, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(24, 29, 43, 0.98) 0%, rgba(16, 20, 31, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.team-pro-brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-pro-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(125, 191, 255, 0.44);
  border-radius: 12px;
  color: #d9eaff;
  font-size: 26px;
  font-weight: 950;
  background:
    radial-gradient(circle at 32% 24%, rgba(105, 211, 255, 0.40), transparent 34%),
    linear-gradient(135deg, #182b57 0%, #38234d 52%, #7a1c2e 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.team-pro-brand strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.team-pro-brand span,
.team-side-status span,
.team-side-log p,
.team-style-note p,
.team-option-row p {
  color: #9ca9bf;
  font-size: 12px;
  line-height: 1.5;
}

.team-side-button,
.team-pro-card .team-command-actions button,
.team-pro-card .team-request-tools button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(147, 163, 198, 0.24);
  border-radius: 10px;
  font-weight: 900;
}

.team-side-button,
.team-pro-card .team-request-tools .secondary-btn,
.team-pro-card .team-request-tools .ghost-btn,
.team-pro-card .team-command-actions .secondary-btn {
  color: #eef4ff;
  background:
    linear-gradient(180deg, rgba(58, 65, 91, 0.96) 0%, rgba(42, 48, 70, 0.96) 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.team-pro-card .team-command-actions .primary-btn {
  min-height: 54px;
  border-color: rgba(179, 255, 206, 0.62);
  color: #06150d;
  background:
    linear-gradient(135deg, #a8f0c4 0%, #7ddfa4 52%, #e0d285 100%);
  box-shadow: 0 18px 34px rgba(92, 217, 145, 0.24);
}

.team-pro-card .team-command-actions .secondary-btn {
  min-height: 46px;
}

.team-side-status,
.team-side-log {
  padding: 14px;
  border: 1px solid rgba(121, 135, 168, 0.18);
  border-radius: 12px;
  background: rgba(11, 15, 25, 0.48);
}

.team-side-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.team-side-status strong {
  color: #a8f0c4;
  font-size: 12px;
  white-space: nowrap;
}

.team-side-log {
  flex: 1;
  min-height: 120px;
}

.team-side-log strong,
.team-pro-panel > strong {
  display: block;
  margin-bottom: 8px;
  color: #f5f8ff;
  font-size: 14px;
  font-weight: 950;
}

.team-pro-card .team-command-actions {
  display: grid;
  gap: 11px;
  margin-top: auto;
}

.team-pro-main {
  display: grid;
  grid-template-rows: auto auto auto minmax(170px, 1fr);
  gap: 14px;
  min-width: 0;
}

.team-pro-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 4px 2px 0;
}

.team-pro-topbar .eyebrow {
  margin: 0 0 5px;
  color: #a8f0c4;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.team-pro-topbar h2 {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0;
}

.team-pro-card .status-pill {
  border: 1px solid rgba(168, 240, 196, 0.34);
  color: #cff7dc;
  background: rgba(27, 42, 34, 0.88);
  box-shadow: none;
}

.team-pro-card .team-members {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.team-pro-card .team-members::before {
  display: none;
}

.team-pro-card .team-member {
  min-height: 94px;
  padding: 16px 42px 14px 56px;
  border: 1px solid rgba(108, 92, 152, 0.46);
  border-radius: 12px;
  background:
    radial-gradient(circle at 8% 16%, rgba(168, 240, 196, 0.16), transparent 18%),
    linear-gradient(135deg, rgba(34, 31, 52, 0.98) 0%, rgba(29, 31, 48, 0.98) 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.team-pro-card .team-member::before {
  left: 18px;
  top: 20px;
  width: 18px;
  height: 18px;
  border-color: rgba(168, 240, 196, 0.55);
  box-shadow:
    inset 0 0 0 5px rgba(168, 240, 196, 0.16),
    0 0 14px rgba(168, 240, 196, 0.20);
}

.team-pro-card .team-member::after {
  right: 12px;
  top: 12px;
  bottom: auto;
  min-width: 22px;
  padding: 4px 7px;
  border-radius: 7px;
  color: #dce7ff;
  background: rgba(8, 12, 22, 0.72);
}

.team-pro-card .team-member strong {
  overflow: visible;
  max-width: 100%;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
}

.team-pro-card .team-member p {
  overflow: visible;
  margin-top: 7px;
  color: #aeb9cf;
  font-size: 12px;
  font-weight: 900;
  text-overflow: clip;
  white-space: nowrap;
}

.team-pro-card .team-member.working {
  border-color: rgba(168, 240, 196, 0.72);
  box-shadow: 0 0 0 1px rgba(168, 240, 196, 0.16), 0 18px 38px rgba(95, 222, 143, 0.18);
}

.team-pro-card .team-member.done {
  border-color: rgba(224, 210, 133, 0.68);
}

.team-pro-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.18fr) minmax(230px, 0.82fr) minmax(260px, 0.9fr);
  gap: 12px;
}

.team-pro-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(79, 93, 121, 0.34);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(28, 36, 52, 0.98) 0%, rgba(24, 31, 46, 0.98) 100%);
}

.team-pro-card .team-brief,
.team-pro-card .team-output {
  border-color: rgba(79, 93, 121, 0.34);
  background:
    linear-gradient(180deg, rgba(28, 36, 52, 0.98) 0%, rgba(24, 31, 46, 0.98) 100%);
}

.team-pro-card .team-brief {
  display: grid;
  gap: 14px;
  margin: 0;
}

.team-pro-card .team-brief label,
.team-pro-card .team-request-field,
.team-pro-card .team-length-card {
  display: grid;
  gap: 8px;
}

.team-pro-card .team-brief label span,
.team-pro-card .team-request-field span,
.team-pro-card .team-length-card span,
.team-style-note span,
.team-option-row span {
  color: #dce6f8;
  font-size: 13px;
  font-weight: 950;
}

.team-pro-card .team-brief small,
.team-pro-card .team-auto-request-note {
  color: #8f9cb2;
  font-size: 12px;
  line-height: 1.45;
}

.team-pro-card .team-brief input,
.team-pro-card .team-brief textarea,
.team-pro-card .team-brief select,
.team-pro-card .team-length-card select,
.team-pro-card .team-request-tools select {
  width: 100%;
  border: 1px solid rgba(103, 119, 150, 0.42);
  border-radius: 10px;
  color: #f5f8ff;
  background: rgba(9, 13, 23, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.team-pro-card .team-brief input,
.team-pro-card .team-length-card select,
.team-pro-card .team-request-tools select {
  min-height: 44px;
}

.team-pro-card .team-brief textarea {
  min-height: 106px;
  resize: vertical;
}

.team-pro-card .team-request-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 72px;
  gap: 8px;
  align-items: stretch;
}

.team-style-note,
.team-option-row {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(103, 119, 150, 0.22);
  border-radius: 10px;
  background: rgba(9, 13, 23, 0.34);
}

.team-option-row p,
.team-style-note p {
  margin: 5px 0 0;
}

.team-pro-card .team-output {
  margin: 0;
  min-height: 210px;
  max-height: 360px;
  overflow: auto;
  padding: 18px;
  border-radius: 13px;
  color: #dce6f8;
}

.team-pro-card .team-output .empty-state {
  min-height: 170px;
  color: #dce6f8;
}

.team-pro-card .team-output .empty-state strong,
.team-pro-card .team-live-log strong,
.team-pro-card .team-stage strong,
.team-pro-card .team-final strong {
  color: #f8fbff;
}

.team-pro-card .team-output .empty-state p,
.team-pro-card .team-live-log p,
.team-pro-card .team-stage p,
.team-pro-card .team-final p {
  color: #aeb9cf;
}

.team-pro-card .team-live-log,
.team-pro-card .team-stage,
.team-pro-card .team-final {
  border: 1px solid rgba(103, 119, 150, 0.24);
  border-radius: 12px;
  background: rgba(9, 13, 23, 0.42);
}

.team-pro-card .team-live-log {
  border-color: rgba(168, 240, 196, 0.24);
}

@media (max-width: 1120px) {
  .team-pro-shell {
    grid-template-columns: 1fr;
  }

  .team-pro-sidebar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.8fr) minmax(220px, 1fr);
    align-items: stretch;
  }

  .team-side-log {
    min-height: 0;
  }

  .team-pro-card .team-command-actions {
    margin-top: 0;
  }

  .team-pro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .team-pro-shell {
    padding: 12px;
  }

  .team-pro-sidebar,
  .team-pro-card .team-members {
    grid-template-columns: 1fr;
  }

  .team-pro-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-pro-card .team-request-tools {
    grid-template-columns: 1fr;
  }
}

/* Blog Avengers viewport fit and button alignment 20260713-90 */
.team-card.team-pro-card {
  max-height: calc(100vh - 132px);
}

.team-pro-shell {
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  height: min(690px, calc(100vh - 132px));
  padding: 14px;
}

.team-pro-sidebar {
  gap: 10px;
  padding: 14px;
}

.team-pro-brand {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 10px;
}

.team-pro-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 22px;
}

.team-pro-brand strong {
  font-size: 15px;
}

.team-side-button {
  min-height: 38px;
}

.team-side-status,
.team-side-log {
  padding: 11px;
}

.team-side-log {
  flex: 0 0 auto;
  min-height: 94px;
}

.team-pro-main {
  grid-template-rows: auto auto minmax(190px, 1fr);
  gap: 10px;
  overflow: hidden;
}

.team-pro-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(420px, 1fr);
  gap: 14px;
  align-items: end;
  padding: 0;
}

.team-pro-topbar h2 {
  font-size: 22px;
}

.team-pro-toolbar {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.team-pro-toolbar .status-pill {
  justify-content: center;
  min-width: 0;
  width: 100%;
  padding: 11px 10px;
  text-align: center;
}

.team-pro-card .team-command-actions {
  display: grid;
  grid-template-columns: minmax(112px, 1.08fr) minmax(112px, 1fr) minmax(112px, 1fr);
  gap: 8px;
  margin: 0;
}

.team-pro-card .team-command-actions button {
  min-height: 42px;
  padding: 0 12px;
  white-space: nowrap;
}

.team-pro-card .team-command-actions .primary-btn,
.team-pro-card .team-command-actions .secondary-btn {
  min-height: 42px;
}

.team-pro-card .team-members {
  gap: 9px;
}

.team-pro-card .team-member {
  min-height: 76px;
  padding: 12px 36px 11px 48px;
}

.team-pro-card .team-member::before {
  left: 15px;
  top: 17px;
  width: 16px;
  height: 16px;
}

.team-pro-card .team-member::after {
  right: 9px;
  top: 9px;
  padding: 3px 6px;
}

.team-pro-card .team-member strong {
  font-size: 13px;
}

.team-pro-card .team-member p {
  margin-top: 5px;
  font-size: 11px;
}

.team-pro-grid {
  grid-template-columns: minmax(320px, 1.16fr) minmax(190px, 0.66fr) minmax(250px, 0.9fr);
  gap: 10px;
  min-height: 0;
}

.team-pro-panel {
  padding: 14px;
}

.team-pro-card .team-brief {
  gap: 10px;
}

.team-pro-card .team-brief label,
.team-pro-card .team-request-field,
.team-pro-card .team-length-card {
  gap: 6px;
}

.team-pro-card .team-brief input,
.team-pro-card .team-length-card select,
.team-pro-card .team-request-tools select {
  min-height: 38px;
}

.team-pro-card .team-brief textarea {
  min-height: 74px;
  max-height: 96px;
}

.team-pro-card .team-request-tools {
  grid-template-columns: minmax(0, 1fr) 88px 64px;
  gap: 7px;
}

.team-pro-card .team-request-tools button {
  min-height: 38px;
  padding: 0 8px;
}

.team-style-note,
.team-option-row {
  margin-top: 8px;
  padding: 10px;
}

.team-pro-card .team-output {
  min-height: 0;
  max-height: none;
  padding: 14px;
}

@media (max-height: 760px) and (min-width: 980px) {
  .team-card.team-pro-card {
    max-height: calc(100vh - 104px);
  }

  .team-pro-shell {
    height: calc(100vh - 104px);
    padding: 12px;
  }

  .team-side-log p,
  .team-style-note p,
  .team-option-row p,
  .team-pro-card .team-brief small,
  .team-pro-card .team-auto-request-note {
    font-size: 11px;
    line-height: 1.35;
  }

  .team-pro-card .team-brief textarea {
    min-height: 62px;
  }
}

@media (max-width: 1120px) {
  .team-card.team-pro-card {
    max-height: none;
  }

  .team-pro-shell {
    height: auto;
  }

  .team-pro-topbar {
    grid-template-columns: 1fr;
  }

  .team-pro-toolbar {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .team-pro-toolbar,
  .team-pro-card .team-command-actions {
    grid-template-columns: 1fr;
  }
}

/* Blog Avengers wide desktop layout 20260713-91 */
body[data-active-view="team"] {
  overflow-x: hidden;
}

body[data-active-view="team"] .page {
  width: min(1480px, calc(100% - 34px));
  max-width: none;
  padding-top: 10px;
}

body[data-active-view="team"] .app-tabs {
  width: min(760px, 100%);
  margin-right: auto;
  margin-left: auto;
}

body[data-active-view="team"] .team-card.team-pro-card {
  width: 100%;
  max-height: none;
  margin: 14px auto 0;
}

body[data-active-view="team"] .team-pro-shell {
  grid-template-columns: 250px minmax(0, 1fr);
  height: min(720px, calc(100vh - 116px));
  min-height: 640px;
  gap: 14px;
}

body[data-active-view="team"] .team-pro-main {
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

body[data-active-view="team"] .team-pro-topbar {
  grid-template-columns: minmax(260px, 0.58fr) minmax(560px, 1fr);
}

body[data-active-view="team"] .team-pro-toolbar {
  grid-template-columns: 96px minmax(0, 1fr);
}

body[data-active-view="team"] .team-pro-card .team-command-actions {
  grid-template-columns: minmax(130px, 1.05fr) minmax(136px, 1fr) minmax(136px, 1fr);
  justify-content: end;
}

body[data-active-view="team"] .team-pro-card .team-members {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

body[data-active-view="team"] .team-pro-grid {
  grid-template-columns: minmax(440px, 1.18fr) minmax(240px, 0.66fr) minmax(320px, 0.9fr);
  align-items: stretch;
  min-height: 0;
}

body[data-active-view="team"] .team-target-panel {
  grid-template-rows: auto minmax(118px, 1fr) auto auto;
}

body[data-active-view="team"] .team-pro-card .team-brief textarea {
  min-height: 118px;
  max-height: 150px;
}

body[data-active-view="team"] .team-pro-card .team-request-tools {
  grid-template-columns: minmax(0, 1fr) 104px 72px;
}

body[data-active-view="team"] .team-pro-card .team-output {
  min-height: 0;
  overflow: auto;
}

body[data-active-view="team"] .team-side-log {
  min-height: 124px;
}

@media (min-width: 1520px) {
  body[data-active-view="team"] .page {
    width: min(1540px, calc(100% - 48px));
  }

  body[data-active-view="team"] .team-pro-shell {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}

@media (max-width: 1220px) {
  body[data-active-view="team"] .page {
    width: min(1120px, calc(100% - 28px));
  }

  body[data-active-view="team"] .team-pro-shell {
    height: auto;
    min-height: 0;
  }

  body[data-active-view="team"] .team-pro-topbar,
  body[data-active-view="team"] .team-pro-grid {
    grid-template-columns: 1fr;
  }

  body[data-active-view="team"] .team-pro-toolbar {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  body[data-active-view="team"] .page {
    width: min(760px, calc(100% - 22px));
  }

  body[data-active-view="team"] .team-pro-shell,
  body[data-active-view="team"] .team-pro-toolbar,
  body[data-active-view="team"] .team-pro-card .team-command-actions,
  body[data-active-view="team"] .team-pro-card .team-members {
    grid-template-columns: 1fr;
  }
}

/* Blog Avengers full-window command layout 20260713-92 */
body[data-active-view="team"] .page {
  width: calc(100vw - 28px);
  max-width: none;
  margin: 0 auto;
  padding-top: 6px;
  padding-bottom: 8px;
}

body[data-active-view="team"] .app-tabs {
  width: min(820px, calc(100vw - 48px));
  margin-bottom: 10px;
}

body[data-active-view="team"] .team-card.team-pro-card {
  width: 100%;
  border-radius: 20px;
  margin-top: 0;
}

body[data-active-view="team"] .team-pro-shell {
  grid-template-columns: 270px minmax(0, 1fr);
  width: 100%;
  height: calc(100vh - 82px);
  min-height: 690px;
  gap: 14px;
  padding: 14px;
}

body[data-active-view="team"] .team-pro-main {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}

body[data-active-view="team"] .team-pro-topbar {
  grid-template-columns: minmax(280px, 0.52fr) minmax(720px, 1fr);
  align-items: center;
}

body[data-active-view="team"] .team-pro-toolbar {
  grid-template-columns: 98px minmax(620px, 1fr);
}

body[data-active-view="team"] .team-pro-card .team-command-actions {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-active-view="team"] .team-pro-card .team-command-actions button {
  height: 46px;
  min-height: 46px;
}

body[data-active-view="team"] .team-pro-card .team-members {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 10px;
}

body[data-active-view="team"] .team-pro-grid {
  grid-template-columns: minmax(620px, 1.2fr) minmax(260px, 0.54fr) minmax(360px, 0.78fr);
  gap: 10px;
}

body[data-active-view="team"] .team-target-panel {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.94fr) minmax(320px, 1.06fr) !important;
  grid-auto-rows: auto !important;
  gap: 12px !important;
  align-content: start !important;
  align-items: start !important;
  padding: 14px !important;
}

body[data-active-view="team"] .team-target-panel .team-keyword-field,
body[data-active-view="team"] .team-target-panel .team-request-field {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-active-view="team"] .team-target-panel .team-keyword-field span,
body[data-active-view="team"] .team-target-panel .team-request-field span {
  color: #dce6f8 !important;
}

body[data-active-view="team"] .team-target-panel .team-keyword-field small {
  color: #93a2bb !important;
}

body[data-active-view="team"] .team-target-panel input,
body[data-active-view="team"] .team-target-panel textarea {
  border-color: rgba(103, 119, 150, 0.42) !important;
  color: #f5f8ff !important;
  background: rgba(9, 13, 23, 0.74) !important;
}

body[data-active-view="team"] .team-target-panel textarea {
  min-height: 88px !important;
  max-height: 112px !important;
}

body[data-active-view="team"] .team-target-panel .team-request-tools {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 112px 76px !important;
  align-items: center !important;
  align-content: center !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 10px !important;
  border-color: rgba(103, 119, 150, 0.30) !important;
  border-radius: 12px !important;
  background: rgba(9, 13, 23, 0.30) !important;
  box-shadow: none !important;
}

body[data-active-view="team"] .team-target-panel .team-request-tools select,
body[data-active-view="team"] .team-target-panel .team-request-tools button {
  height: 40px !important;
  min-height: 40px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body[data-active-view="team"] .team-target-panel .team-auto-request-note {
  grid-column: 1 / -1 !important;
  margin-top: 0 !important;
}

body[data-active-view="team"] .team-style-panel,
body[data-active-view="team"] .team-option-panel {
  min-width: 0;
}

body[data-active-view="team"] .team-pro-card .team-output {
  height: clamp(180px, 28vh, 300px);
  min-height: 180px;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 1680px) {
  body[data-active-view="team"] .page {
    width: calc(100vw - 36px);
  }

  body[data-active-view="team"] .team-pro-shell {
    grid-template-columns: 292px minmax(0, 1fr);
  }

  body[data-active-view="team"] .team-pro-grid {
    grid-template-columns: minmax(700px, 1.22fr) minmax(300px, 0.56fr) minmax(420px, 0.82fr);
  }
}

@media (max-width: 1320px) {
  body[data-active-view="team"] .team-pro-shell {
    height: auto;
    min-height: 0;
  }

  body[data-active-view="team"] .team-pro-topbar,
  body[data-active-view="team"] .team-pro-toolbar,
  body[data-active-view="team"] .team-pro-grid {
    grid-template-columns: 1fr;
  }

  body[data-active-view="team"] .team-pro-card .team-command-actions,
  body[data-active-view="team"] .team-pro-card .team-members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-active-view="team"] .team-target-panel {
    grid-template-columns: 1fr !important;
  }
}

/* Full-window layouts for all tabs 20260713-93 */
body[data-active-view="writer"],
body[data-active-view="keywords"],
body[data-active-view="neighbor"],
body[data-active-view="mycomments"] {
  overflow-x: hidden;
}

body[data-active-view="writer"] .page,
body[data-active-view="keywords"] .page,
body[data-active-view="neighbor"] .page,
body[data-active-view="mycomments"] .page {
  width: calc(100vw - 28px);
  max-width: none;
  margin: 0 auto;
  padding-top: 6px;
  padding-bottom: 8px;
}

body[data-active-view="writer"] .app-tabs,
body[data-active-view="keywords"] .app-tabs,
body[data-active-view="neighbor"] .app-tabs,
body[data-active-view="mycomments"] .app-tabs {
  width: min(980px, calc(100vw - 48px));
  margin-right: auto;
  margin-bottom: 10px;
  margin-left: auto;
}

body[data-active-view="writer"] .create-card,
body[data-active-view="writer"] .result-card,
body[data-active-view="keywords"] .keyword-card,
body[data-active-view="neighbor"] .neighbor-card,
body[data-active-view="mycomments"] .neighbor-card {
  border-radius: 20px;
}

body[data-active-view="writer"] .create-card {
  display: inline-block;
  width: calc(46% - 8px);
  min-height: calc(100vh - 96px);
  padding: 18px;
  vertical-align: top;
}

body[data-active-view="writer"] .result-card {
  display: inline-block;
  width: calc(54% - 10px);
  min-height: calc(100vh - 96px);
  margin-top: 0;
  margin-left: 12px;
  padding: 18px;
  vertical-align: top;
}

body[data-active-view="writer"] .create-card .card-header,
body[data-active-view="writer"] .result-head {
  padding-bottom: 12px;
}

body[data-active-view="writer"] .create-card form {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 12px;
  align-items: start;
}

body[data-active-view="writer"] .create-card form > .field:first-child,
body[data-active-view="writer"] .generate-box,
body[data-active-view="writer"] .prompt-options,
body[data-active-view="writer"] .advanced-row,
body[data-active-view="writer"] .image-uploader {
  grid-column: 1 / -1;
}

body[data-active-view="writer"] .prompt-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: 12px;
}

body[data-active-view="writer"] .prompt-save-row,
body[data-active-view="writer"] .advanced-row,
body[data-active-view="writer"] .image-uploader {
  align-items: stretch;
}

body[data-active-view="writer"] .result-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

body[data-active-view="writer"] .tool-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-active-view="writer"] .tool-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 8px;
}

body[data-active-view="keywords"] .keyword-card,
body[data-active-view="neighbor"] .neighbor-card,
body[data-active-view="mycomments"] .neighbor-card {
  width: 100%;
  min-height: calc(100vh - 96px);
  margin: 0 auto;
}

body[data-active-view="keywords"] .keyword-card {
  padding-bottom: 16px;
}

body[data-active-view="keywords"] .keyword-command-panel {
  grid-template-columns: minmax(520px, 1fr) 210px;
  padding: 18px 20px;
}

body[data-active-view="keywords"] .keyword-actions {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

body[data-active-view="keywords"] .keyword-summary {
  display: grid;
  grid-template-columns: minmax(420px, 0.8fr) minmax(520px, 1.2fr);
  gap: 14px;
  margin: 14px 20px 0;
}

body[data-active-view="keywords"] .keyword-spotlight,
body[data-active-view="keywords"] .samuel-extract-summary,
body[data-active-view="keywords"] .keyword-table-wrap {
  margin-top: 0;
}

body[data-active-view="keywords"] .keyword-table-wrap {
  margin-right: 20px;
  margin-left: 20px;
}

body[data-active-view="neighbor"] .neighbor-grid {
  grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1.25fr) minmax(190px, 0.55fr);
  gap: 14px;
  padding: 20px 22px 12px;
}

body[data-active-view="mycomments"] .neighbor-grid {
  grid-template-columns: minmax(420px, 1fr) minmax(220px, 0.35fr);
  gap: 14px;
  padding: 20px 22px 12px;
}

body[data-active-view="neighbor"] .neighbor-wide textarea {
  min-height: 118px;
}

body[data-active-view="mycomments"] .neighbor-wide textarea {
  min-height: 118px;
}

body[data-active-view="neighbor"] .neighbor-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  justify-content: stretch;
  gap: 10px;
}

body[data-active-view="mycomments"] .neighbor-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  justify-content: stretch;
  gap: 10px;
}

body[data-active-view="neighbor"] .neighbor-actions button {
  min-height: 46px;
}

body[data-active-view="mycomments"] .neighbor-actions button {
  min-height: 46px;
}

body[data-active-view="neighbor"] .neighbor-crm-panel {
  margin-top: 2px;
}

body[data-active-view="neighbor"] .neighbor-candidate-list {
  max-height: 210px;
}

body[data-active-view="neighbor"] .neighbor-output {
  min-height: calc(100vh - 650px);
}

body[data-active-view="mycomments"] .neighbor-output {
  min-height: calc(100vh - 510px);
}

@media (min-width: 1680px) {
  body[data-active-view="writer"] .page,
  body[data-active-view="keywords"] .page,
  body[data-active-view="neighbor"] .page,
  body[data-active-view="mycomments"] .page {
    width: calc(100vw - 36px);
  }
}

@media (max-width: 1320px) {
  body[data-active-view="writer"] .create-card,
  body[data-active-view="writer"] .result-card {
    display: block;
    width: 100%;
    min-height: 0;
    margin-left: 0;
  }

  body[data-active-view="writer"] .result-card {
    margin-top: 12px;
  }

  body[data-active-view="keywords"] .keyword-command-panel,
  body[data-active-view="keywords"] .keyword-summary,
  body[data-active-view="neighbor"] .neighbor-grid,
  body[data-active-view="mycomments"] .neighbor-grid {
    grid-template-columns: 1fr;
  }

  body[data-active-view="keywords"] .keyword-actions,
  body[data-active-view="writer"] .tool-actions,
  body[data-active-view="neighbor"] .neighbor-actions,
  body[data-active-view="mycomments"] .neighbor-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body[data-active-view="writer"] .create-card form,
  body[data-active-view="writer"] .prompt-options,
  body[data-active-view="writer"] .tool-board,
  body[data-active-view="writer"] .tool-actions,
  body[data-active-view="keywords"] .keyword-actions,
  body[data-active-view="neighbor"] .neighbor-actions,
  body[data-active-view="mycomments"] .neighbor-actions {
    grid-template-columns: 1fr;
  }
}

/* Unified premium dark theme and control sizing 20260713-94 */
body[data-active-view="writer"] .create-card,
body[data-active-view="writer"] .result-card,
body[data-active-view="keywords"] .keyword-card,
body[data-active-view="neighbor"] .neighbor-card,
body[data-active-view="mycomments"] .neighbor-card {
  border: 1px solid rgba(134, 147, 181, 0.26);
  color: #eef4ff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(180deg, #111722 0%, #151b28 100%);
  box-shadow:
    0 30px 80px rgba(4, 9, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-active-view="writer"] .create-card::before,
body[data-active-view="writer"] .result-card::before,
body[data-active-view="keywords"] .keyword-card::before,
body[data-active-view="neighbor"] .neighbor-card::before,
body[data-active-view="mycomments"] .neighbor-card::before {
  display: none;
}

body[data-active-view="writer"] .card-header,
body[data-active-view="writer"] .result-head,
body[data-active-view="keywords"] .neighbor-head,
body[data-active-view="neighbor"] .neighbor-head,
body[data-active-view="mycomments"] .neighbor-head {
  border-color: rgba(120, 132, 164, 0.18);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(24, 29, 43, 0.98) 0%, rgba(16, 20, 31, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-active-view="writer"] .card-header h1,
body[data-active-view="writer"] .result-head h2,
body[data-active-view="keywords"] .neighbor-head h2,
body[data-active-view="neighbor"] .neighbor-head h2,
body[data-active-view="mycomments"] .neighbor-head h2 {
  color: #ffffff;
  text-shadow: none;
}

body[data-active-view="writer"] .eyebrow,
body[data-active-view="keywords"] .eyebrow,
body[data-active-view="neighbor"] .eyebrow,
body[data-active-view="mycomments"] .eyebrow {
  color: #a8f0c4;
}

body[data-active-view="writer"] .field,
body[data-active-view="writer"] .prompt-options,
body[data-active-view="writer"] .generate-box,
body[data-active-view="writer"] .publish-check,
body[data-active-view="writer"] .image-uploader,
body[data-active-view="writer"] .result-workspace,
body[data-active-view="writer"] .tool-board,
body[data-active-view="keywords"] .keyword-command-panel,
body[data-active-view="keywords"] .keyword-metrics span,
body[data-active-view="keywords"] .keyword-table-wrap,
body[data-active-view="neighbor"] .neighbor-grid label,
body[data-active-view="neighbor"] .neighbor-crm-panel,
body[data-active-view="neighbor"] .neighbor-candidate-row,
body[data-active-view="neighbor"] .neighbor-output,
body[data-active-view="neighbor"] .neighbor-log,
body[data-active-view="mycomments"] .neighbor-grid label,
body[data-active-view="mycomments"] .my-comment-account,
body[data-active-view="mycomments"] .neighbor-output,
body[data-active-view="mycomments"] .neighbor-log {
  border-color: rgba(79, 93, 121, 0.34);
  color: #dce6f8;
  background:
    linear-gradient(180deg, rgba(28, 36, 52, 0.98) 0%, rgba(24, 31, 46, 0.98) 100%);
  box-shadow: none;
}

body[data-active-view="writer"] .field span,
body[data-active-view="writer"] .prompt-options span,
body[data-active-view="writer"] .image-uploader span,
body[data-active-view="writer"] .metric-row span,
body[data-active-view="keywords"] .keyword-command-panel span,
body[data-active-view="keywords"] .keyword-metrics small,
body[data-active-view="neighbor"] .neighbor-grid span,
body[data-active-view="neighbor"] .neighbor-crm-head h3,
body[data-active-view="neighbor"] .neighbor-candidate-row strong,
body[data-active-view="mycomments"] .neighbor-grid span {
  color: #dce6f8;
}

body[data-active-view="mycomments"] .my-comment-account {
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) minmax(210px, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 14px;
  border: 1px solid rgba(79, 93, 121, 0.34);
  border-radius: 10px;
}

body[data-active-view="mycomments"] .my-comment-account > span,
body[data-active-view="mycomments"] .my-comment-account > small {
  grid-column: 1 / -1;
}

body[data-active-view="mycomments"] .my-comment-account strong {
  color: #b9c7df;
  font-size: 13px;
}

body[data-active-view="mycomments"] .my-comment-account strong.saved {
  color: #a8f0c4;
}

body[data-active-view="mycomments"] .my-comment-account small {
  color: #94a4c0;
}

body[data-active-view="mycomments"] .my-comment-original {
  margin: 8px 0 14px;
  padding: 12px 14px;
  border-left: 3px solid #8fe2b1;
  border-radius: 6px;
  color: #dce6f8;
  background: rgba(9, 13, 23, 0.58);
  white-space: pre-wrap;
}

body[data-active-view="writer"] small,
body[data-active-view="writer"] .publish-check small,
body[data-active-view="writer"] .image-uploader small,
body[data-active-view="keywords"] .keyword-metrics strong,
body[data-active-view="neighbor"] .neighbor-log,
body[data-active-view="neighbor"] .neighbor-message p,
body[data-active-view="neighbor"] .neighbor-candidate-row p,
body[data-active-view="neighbor"] .neighbor-candidate-row small,
body[data-active-view="mycomments"] .neighbor-log,
body[data-active-view="mycomments"] .neighbor-message p {
  color: #aeb9cf;
}

body[data-active-view="neighbor"] .neighbor-crm-stats span {
  border-color: rgba(96, 112, 144, 0.42);
  color: #dce6f8;
  background: rgba(9, 13, 23, 0.72);
}

body[data-active-view="neighbor"] .neighbor-status {
  color: #0b1a2b;
  background: linear-gradient(135deg, #a8f0c4, #f4e6a2);
}

body[data-active-view="neighbor"] .neighbor-status:has(+ .neighbor-row-actions) {
  box-shadow: 0 0 18px rgba(168, 240, 196, 0.12);
}

body[data-active-view="writer"] input,
body[data-active-view="writer"] select,
body[data-active-view="writer"] textarea,
body[data-active-view="keywords"] input,
body[data-active-view="keywords"] select,
body[data-active-view="neighbor"] input,
body[data-active-view="neighbor"] select,
body[data-active-view="neighbor"] textarea,
body[data-active-view="mycomments"] input,
body[data-active-view="mycomments"] select,
body[data-active-view="mycomments"] textarea {
  border-color: rgba(103, 119, 150, 0.42);
  color: #f5f8ff;
  background: rgba(9, 13, 23, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-active-view="writer"] input::placeholder,
body[data-active-view="writer"] textarea::placeholder,
body[data-active-view="keywords"] input::placeholder,
body[data-active-view="neighbor"] input::placeholder,
body[data-active-view="neighbor"] textarea::placeholder,
body[data-active-view="mycomments"] input::placeholder,
body[data-active-view="mycomments"] textarea::placeholder {
  color: rgba(220, 230, 248, 0.54);
}

body[data-active-view="writer"] .prompt-options {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
}

body[data-active-view="writer"] .prompt-options textarea {
  min-height: 86px;
  max-height: 108px;
}

body[data-active-view="writer"] .prompt-save-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 128px 88px 154px;
  gap: 8px;
  align-items: stretch;
}

body[data-active-view="writer"] .prompt-save-row select,
body[data-active-view="writer"] .prompt-save-row button,
body[data-active-view="writer"] .compact-length,
body[data-active-view="writer"] .compact-length select {
  height: 44px;
  min-height: 44px;
}

body[data-active-view="writer"] .compact-length {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(103, 119, 150, 0.42);
  border-radius: 10px;
  background: rgba(9, 13, 23, 0.74);
}

body[data-active-view="writer"] .compact-length span {
  color: #dce6f8;
  font-size: 12px;
}

body[data-active-view="writer"] .compact-length select {
  border: 0;
  padding: 0;
  background: transparent;
}

body[data-active-view="writer"] .generate-box {
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: stretch;
  padding: 10px;
}

body[data-active-view="writer"] .mini-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body[data-active-view="writer"] .generate-btn,
body[data-active-view="writer"] .secondary-btn,
body[data-active-view="writer"] .ghost-btn,
body[data-active-view="writer"] .icon-btn,
body[data-active-view="writer"] .danger-btn,
body[data-active-view="keywords"] .primary-btn,
body[data-active-view="keywords"] .secondary-btn,
body[data-active-view="keywords"] .ghost-btn,
body[data-active-view="neighbor"] .primary-btn,
body[data-active-view="neighbor"] .secondary-btn,
body[data-active-view="neighbor"] .ghost-btn,
body[data-active-view="mycomments"] .primary-btn,
body[data-active-view="mycomments"] .secondary-btn,
body[data-active-view="mycomments"] .ghost-btn {
  min-height: 44px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}

body[data-active-view="writer"] .generate-btn,
body[data-active-view="writer"] .primary-btn,
body[data-active-view="keywords"] .primary-btn,
body[data-active-view="neighbor"] .primary-btn,
body[data-active-view="mycomments"] .primary-btn {
  border-color: rgba(179, 255, 206, 0.62);
  color: #06150d;
  background:
    linear-gradient(135deg, #a8f0c4 0%, #7ddfa4 52%, #e0d285 100%);
  box-shadow: 0 18px 34px rgba(92, 217, 145, 0.24);
}

body[data-active-view="writer"] .secondary-btn,
body[data-active-view="writer"] .ghost-btn,
body[data-active-view="writer"] .icon-btn,
body[data-active-view="keywords"] .secondary-btn,
body[data-active-view="keywords"] .ghost-btn,
body[data-active-view="neighbor"] .secondary-btn,
body[data-active-view="neighbor"] .ghost-btn,
body[data-active-view="mycomments"] .secondary-btn,
body[data-active-view="mycomments"] .ghost-btn {
  border-color: rgba(147, 163, 198, 0.24);
  color: #eef4ff;
  background:
    linear-gradient(180deg, rgba(58, 65, 91, 0.96) 0%, rgba(42, 48, 70, 0.96) 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

body[data-active-view="writer"] .danger-btn {
  border-color: rgba(255, 136, 148, 0.32);
  color: #ffe6e9;
  background: linear-gradient(180deg, rgba(111, 36, 52, 0.96) 0%, rgba(73, 27, 42, 0.96) 100%);
}

body[data-active-view="writer"] .tool-actions button,
body[data-active-view="keywords"] .keyword-actions button,
body[data-active-view="neighbor"] .neighbor-actions button,
body[data-active-view="mycomments"] .neighbor-actions button {
  width: 100%;
  white-space: nowrap;
}

body[data-active-view="writer"] .chip {
  border-color: rgba(103, 119, 150, 0.42);
  color: #dce6f8;
  background: rgba(9, 13, 23, 0.58);
}

body[data-active-view="writer"] .chip.active,
body[data-active-view="writer"] .chip.custom {
  border-color: rgba(168, 240, 196, 0.48);
  color: #06150d;
  background: linear-gradient(135deg, #a8f0c4 0%, #7ddfa4 100%);
}

@media (max-width: 1320px) {
  body[data-active-view="writer"] .prompt-save-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-active-view="writer"] .prompt-save-row,
  body[data-active-view="writer"] .generate-box {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .auth-visual {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .auth-panel {
    padding: 22px 38px;
  }

  .auth-copy h1 {
    font-size: clamp(38px, 3.4vw, 56px);
  }

  .auth-form-wrap h2 {
    font-size: 27px;
  }

  .auth-description {
    margin-bottom: 18px;
  }

  .auth-tabs {
    margin-bottom: 16px;
  }

  .auth-form {
    gap: 10px;
  }

  .auth-form label {
    gap: 5px;
  }

  .auth-form input {
    min-height: 44px;
  }

  .auth-submit {
    min-height: 46px;
  }

  .auth-status {
    margin-top: 10px;
  }

  .auth-security {
    display: none;
  }
}

/* Keyword result readability and ranking trust 20260714-98 */
body[data-active-view="keywords"] .keyword-summary,
body[data-active-view="keywords"] .keyword-table,
body[data-active-view="keywords"] .keyword-table th,
body[data-active-view="keywords"] .keyword-table td,
body[data-active-view="keywords"] .keyword-cell,
body[data-active-view="keywords"] .keyword-metrics strong,
body[data-active-view="keywords"] .keyword-metrics small,
body[data-active-view="keywords"] .keywordAnalyzeLog {
  color: #f8fbff;
}

body[data-active-view="keywords"] .keyword-table-wrap {
  border-color: rgba(79, 93, 121, 0.44);
  background:
    linear-gradient(180deg, rgba(18, 24, 37, 0.98) 0%, rgba(13, 18, 29, 0.98) 100%);
}

body[data-active-view="keywords"] .keyword-table {
  min-width: 920px;
}

body[data-active-view="keywords"] .keyword-table th {
  color: #cfd9ea;
  background: rgba(9, 13, 23, 0.72);
}

body[data-active-view="keywords"] .keyword-table td {
  color: #f8fbff;
  border-bottom-color: rgba(103, 119, 150, 0.24);
}

body[data-active-view="keywords"] .keyword-table tbody tr {
  background: rgba(18, 24, 37, 0.54);
}

body[data-active-view="keywords"] .keyword-table tbody tr:hover {
  background: rgba(168, 240, 196, 0.10);
}

body[data-active-view="keywords"] .keyword-cell {
  color: #ffffff;
  font-weight: 950;
}

body[data-active-view="keywords"] .keyword-metrics span {
  background:
    linear-gradient(180deg, rgba(28, 36, 52, 0.98) 0%, rgba(24, 31, 46, 0.98) 100%);
}

body[data-active-view="keywords"] .keyword-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body[data-active-view="keywords"] .keyword-metrics strong {
  color: #ffffff;
}

body[data-active-view="keywords"] .keyword-metrics small,
body[data-active-view="keywords"] #keywordAnalyzeLog {
  color: #c7d2e5;
}

body[data-active-view="keywords"] .keyword-warning {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 210, 93, 0.36);
  border-radius: 12px;
  color: #fff2bf;
  background: rgba(115, 82, 24, 0.24);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
}

@media (max-width: 1320px) {
  body[data-active-view="keywords"] .keyword-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Team request vertical alignment and writer result polish 20260714-100 */
body[data-active-view="team"] .team-target-panel {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto auto auto !important;
  align-content: start !important;
}

body[data-active-view="team"] .team-target-panel .team-keyword-field,
body[data-active-view="team"] .team-target-panel .team-request-field,
body[data-active-view="team"] .team-target-panel .team-request-tools,
body[data-active-view="team"] .team-target-panel .team-auto-request-note {
  grid-column: 1 / -1 !important;
}

body[data-active-view="team"] .team-target-panel .team-keyword-field input {
  height: 44px !important;
}

body[data-active-view="team"] .team-target-panel .team-request-field textarea {
  width: 100% !important;
  min-height: 112px !important;
  max-height: 150px !important;
}

body[data-active-view="team"] .team-style-panel .team-length-card {
  padding: 14px !important;
  border: 1px solid rgba(103, 119, 150, 0.30) !important;
  border-radius: 13px !important;
  background: rgba(9, 13, 23, 0.30) !important;
  box-shadow: none !important;
}

body[data-active-view="team"] .team-style-panel .team-length-card select {
  border-color: rgba(103, 119, 150, 0.42) !important;
  color: #f5f8ff !important;
  background: rgba(9, 13, 23, 0.74) !important;
}

body[data-active-view="writer"] .result-card .result-publish-row,
body[data-active-view="writer"] .result-card .tool-actions,
body[data-active-view="writer"] .result-card .tag-list,
body[data-active-view="writer"] .result-card .result-list,
body[data-active-view="writer"] .result-card .run-log {
  border-color: rgba(79, 93, 121, 0.34);
  color: #dce6f8;
  background:
    linear-gradient(180deg, rgba(28, 36, 52, 0.98) 0%, rgba(24, 31, 46, 0.98) 100%);
  box-shadow: none;
}

body[data-active-view="writer"] .result-card .result-publish-row {
  padding: 10px;
  border: 1px solid rgba(79, 93, 121, 0.34);
  border-radius: 13px;
}

body[data-active-view="writer"] .result-card .draft-view-btn,
body[data-active-view="writer"] .result-card .mini-tool,
body[data-active-view="writer"] .result-card .tool-actions .secondary-btn,
body[data-active-view="writer"] .result-card .tool-actions .danger-btn {
  border: 1px solid rgba(147, 163, 198, 0.24);
  color: #eef4ff;
  background:
    linear-gradient(180deg, rgba(58, 65, 91, 0.96) 0%, rgba(42, 48, 70, 0.96) 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

body[data-active-view="writer"] .result-card .draft-view-btn,
body[data-active-view="writer"] .result-card .tool-actions .secondary-btn,
body[data-active-view="writer"] .result-card .tool-actions .danger-btn {
  min-height: 44px;
  border-radius: 10px;
}

body[data-active-view="writer"] .result-card .mini-tool {
  min-height: 112px;
  border-radius: 12px;
}

body[data-active-view="writer"] .result-card .mini-tool span {
  border-color: rgba(168, 240, 196, 0.42);
  color: #06150d;
  background: linear-gradient(135deg, #a8f0c4 0%, #7ddfa4 100%);
}

body[data-active-view="writer"] .result-card .mini-tool strong {
  color: #ffffff;
}

body[data-active-view="writer"] .result-card .mini-tool small,
body[data-active-view="writer"] .result-card .run-log {
  color: #c7d2e5;
}

body[data-active-view="writer"] .result-card .tool-actions .danger-btn {
  border-color: rgba(255, 136, 148, 0.32);
  color: #ffe6e9;
  background: linear-gradient(180deg, rgba(111, 36, 52, 0.96) 0%, rgba(73, 27, 42, 0.96) 100%);
}

/* Premium blue typography 20260714-102 */
:root {
  --premium-font: "Pretendard", "Inter", "Segoe UI Variable", "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  --premium-blue-text: #a9c8ff;
  --premium-blue-strong: #c4dcff;
  --premium-blue-soft: #86a8dc;
  --premium-blue-muted: #6f8fc4;
  --premium-blue-accent: #75a8ff;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--premium-font) !important;
  letter-spacing: 0;
}

body[data-active-view] {
  color: var(--premium-blue-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body[data-active-view] h1,
body[data-active-view] h2,
body[data-active-view] h3,
body[data-active-view] h4,
body[data-active-view] strong,
body[data-active-view] label span,
body[data-active-view] th,
body[data-active-view] .card-header h1,
body[data-active-view] .result-head h2,
body[data-active-view] .team-pro-brand strong,
body[data-active-view] .team-pro-topbar h2,
body[data-active-view] .team-pro-panel > strong,
body[data-active-view] .team-pro-card .team-member strong,
body[data-active-view] .team-pro-card .team-output .empty-state strong,
body[data-active-view] .team-pro-card .team-live-log strong,
body[data-active-view] .team-pro-card .team-stage strong,
body[data-active-view] .team-pro-card .team-final strong,
body[data-active-view] .result-card .mini-tool strong,
body[data-active-view] .keyword-cell,
body[data-active-view] .keyword-metrics strong {
  color: var(--premium-blue-strong) !important;
  text-shadow:
    0 0 10px rgba(117, 168, 255, 0.24),
    0 0 22px rgba(117, 168, 255, 0.10);
}

body[data-active-view] p,
body[data-active-view] li,
body[data-active-view] td,
body[data-active-view] small,
body[data-active-view] .team-pro-brand span,
body[data-active-view] .team-pro-card .team-member p,
body[data-active-view] .team-pro-card .team-brief small,
body[data-active-view] .team-pro-card .team-auto-request-note,
body[data-active-view] .team-pro-card .team-output .empty-state p,
body[data-active-view] .team-pro-card .team-live-log p,
body[data-active-view] .team-pro-card .team-stage p,
body[data-active-view] .team-pro-card .team-final p,
body[data-active-view] .neighbor-log,
body[data-active-view] .run-log,
body[data-active-view] .keyword-metrics small,
body[data-active-view] #keywordAnalyzeLog {
  color: var(--premium-blue-soft) !important;
  text-shadow: 0 0 10px rgba(117, 168, 255, 0.08);
}

body[data-active-view] .eyebrow,
body[data-active-view] .team-pro-topbar .eyebrow,
body[data-active-view] .spotlight-label,
body[data-active-view] .section-label {
  color: var(--premium-blue-accent) !important;
  text-shadow: 0 0 12px rgba(117, 168, 255, 0.28);
}

body[data-active-view] input,
body[data-active-view] select,
body[data-active-view] textarea,
body[data-active-view] .team-pro-card .team-brief input,
body[data-active-view] .team-pro-card .team-brief textarea,
body[data-active-view] .team-pro-card .team-brief select,
body[data-active-view] .team-pro-card .team-length-card select,
body[data-active-view] .team-pro-card .team-request-tools select {
  color: var(--premium-blue-strong) !important;
  caret-color: var(--premium-blue-accent);
}

body[data-active-view] input::placeholder,
body[data-active-view] textarea::placeholder {
  color: rgba(134, 168, 220, 0.62) !important;
}

body[data-active-view] .app-tab,
body[data-active-view] .secondary-btn,
body[data-active-view] .ghost-btn,
body[data-active-view] .icon-btn,
body[data-active-view] .draft-view-btn,
body[data-active-view] .team-pro-card .team-command-actions button,
body[data-active-view] .team-pro-card .team-request-tools button,
body[data-active-view] .keyword-actions button,
body[data-active-view] .neighbor-actions button,
body[data-active-view] .result-card .tool-actions button {
  color: #bcd6ff !important;
}

body[data-active-view] .primary-btn,
body[data-active-view] .generate-btn,
body[data-active-view] .chip.active,
body[data-active-view] .chip.custom,
body[data-active-view] .result-card .mini-tool span,
body[data-active-view="team"] .team-pro-card .team-command-actions .primary-btn {
  color: #07140e !important;
  font-weight: 900;
}

body[data-active-view] .danger-btn,
body[data-active-view="writer"] .danger-btn,
body[data-active-view="writer"] .result-card .tool-actions .danger-btn {
  color: #ffdfe5 !important;
}

/* Readability tuning for mixed light/dark panels 20260714-103 */
body[data-active-view="keywords"] .keyword-command-panel,
body[data-active-view="keywords"] .keyword-command-panel label,
body[data-active-view="keywords"] .keyword-command-panel span,
body[data-active-view="keywords"] .keyword-command-panel small,
body[data-active-view="keywords"] .keyword-metrics span,
body[data-active-view="keywords"] .keyword-table,
body[data-active-view="keywords"] .keyword-table th,
body[data-active-view="keywords"] .keyword-table td,
body[data-active-view="keywords"] .keyword-cell {
  color: #1f3358 !important;
  text-shadow: none !important;
}

body[data-active-view="keywords"] .keyword-command-panel input,
body[data-active-view="keywords"] .keyword-command-panel select {
  color: #16294d !important;
  text-shadow: none !important;
}

body[data-active-view="keywords"] .keyword-command-panel input::placeholder {
  color: rgba(45, 62, 98, 0.58) !important;
}

body[data-active-view="keywords"] .keyword-metrics strong,
body[data-active-view="keywords"] .keyword-cell {
  color: #173f78 !important;
  text-shadow: 0 0 8px rgba(47, 113, 204, 0.08) !important;
}

body[data-active-view="keywords"] .keyword-metrics small,
body[data-active-view="keywords"] .keyword-table th {
  color: #526987 !important;
}

body[data-active-view="keywords"] .keyword-spotlight strong,
body[data-active-view="keywords"] .samuel-brief strong {
  color: #c7ddff !important;
  text-shadow: 0 0 10px rgba(117, 168, 255, 0.18) !important;
}

body[data-active-view="keywords"] .keyword-spotlight p,
body[data-active-view="keywords"] .samuel-brief p,
body[data-active-view="keywords"] .spotlight-score small {
  color: #9fbbe8 !important;
  text-shadow: none !important;
}

body[data-active-view="keywords"] .samuel-picks span {
  color: #d5e5ff !important;
  text-shadow: none !important;
}

body[data-active-view="keywords"] .keyword-use-btn,
body[data-active-view="keywords"] .keyword-actions .secondary-btn,
body[data-active-view="keywords"] .keyword-actions .ghost-btn {
  color: #d7e7ff !important;
  text-shadow: none !important;
}

body[data-active-view="writer"] .generate-box .generate-btn {
  color: #16335a !important;
  text-shadow: none !important;
  letter-spacing: 0;
}

body[data-active-view="writer"] .generate-box .generate-btn:hover {
  color: #102948 !important;
  text-shadow: none !important;
}

/* Final draft modal premium dark sync and green-button text tuning 20260714-104 */
.draft-modal {
  background:
    radial-gradient(circle at 50% 22%, rgba(68, 115, 190, 0.18), transparent 34%),
    rgba(6, 10, 20, 0.74) !important;
  backdrop-filter: blur(12px);
}

.draft-dialog {
  border: 1px solid rgba(92, 116, 160, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(21, 28, 43, 0.99) 0%, rgba(14, 19, 31, 0.99) 100%) !important;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: #a9c8ff !important;
}

.draft-head {
  border-bottom-color: rgba(92, 116, 160, 0.26) !important;
  background:
    linear-gradient(135deg, rgba(21, 35, 66, 0.92) 0%, rgba(29, 43, 72, 0.78) 58%, rgba(47, 61, 93, 0.70) 100%) !important;
}

.draft-head h2,
.draft-head .eyebrow {
  color: #c7ddff !important;
  text-shadow: 0 0 12px rgba(117, 168, 255, 0.18) !important;
}

.draft-head .eyebrow {
  color: #75a8ff !important;
}

.draft-dialog .icon-close {
  border-color: rgba(147, 163, 198, 0.28) !important;
  color: #c7ddff !important;
  background: linear-gradient(180deg, rgba(58, 65, 91, 0.96) 0%, rgba(42, 48, 70, 0.96) 100%) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

.full-draft {
  margin: 14px 18px 0;
  border: 1px solid rgba(79, 93, 121, 0.34);
  border-radius: 14px;
  color: #a9c8ff !important;
  background:
    linear-gradient(180deg, rgba(18, 24, 37, 0.98) 0%, rgba(13, 18, 29, 0.98) 100%) !important;
}

.full-draft h3 {
  border-bottom-color: rgba(92, 116, 160, 0.28) !important;
  color: #c7ddff !important;
  text-shadow: 0 0 10px rgba(117, 168, 255, 0.14) !important;
}

.full-draft p {
  color: #a9c8ff !important;
}

.draft-meta-section,
.draft-toolbox-head,
.draft-tool-block,
.publish-ready {
  border-color: rgba(79, 93, 121, 0.34) !important;
  color: #a9c8ff !important;
  background:
    linear-gradient(180deg, rgba(28, 36, 52, 0.98) 0%, rgba(24, 31, 46, 0.98) 100%) !important;
  box-shadow: none !important;
}

.draft-meta-section strong,
.draft-toolbox-head h3,
.draft-tool-block > strong {
  color: #c7ddff !important;
  text-shadow: 0 0 10px rgba(117, 168, 255, 0.12) !important;
}

.draft-meta-section p,
.draft-meta-section ul,
.draft-toolbox-head p,
.modal-status {
  color: #86a8dc !important;
}

.draft-meta-editor,
.draft-dialog .modal-title-option {
  border-color: rgba(103, 119, 150, 0.42) !important;
  color: #c7ddff !important;
  background: rgba(9, 13, 23, 0.74) !important;
  text-shadow: none !important;
}

.draft-dialog .modal-title-option:hover,
.draft-dialog .modal-title-option.active {
  border-color: rgba(117, 168, 255, 0.58) !important;
  color: #edf5ff !important;
  background: linear-gradient(180deg, rgba(41, 62, 103, 0.98) 0%, rgba(31, 46, 78, 0.98) 100%) !important;
}

.draft-dialog .tag-chip,
.draft-dialog .modal-tag-chip {
  border-color: rgba(117, 168, 255, 0.36) !important;
  color: #c7ddff !important;
  background: rgba(32, 47, 78, 0.82) !important;
  text-shadow: none !important;
}

.draft-actions {
  border-top-color: rgba(92, 116, 160, 0.26) !important;
  background: rgba(12, 17, 29, 0.72) !important;
}

.draft-dialog .draft-actions .primary-btn,
.draft-dialog #copyFullDraftBtn,
.draft-dialog #modalPublishBtn {
  border-color: rgba(117, 168, 255, 0.46) !important;
  color: #e1edff !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 22%),
    linear-gradient(135deg, #1a4d8c 0%, #2e6cb8 48%, #75a8ff 100%) !important;
  box-shadow:
    0 16px 34px rgba(37, 95, 170, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  text-shadow: 0 0 10px rgba(117, 168, 255, 0.18) !important;
}

.draft-dialog .draft-actions .primary-btn:hover,
.draft-dialog #copyFullDraftBtn:hover,
.draft-dialog #modalPublishBtn:hover {
  color: #f2f7ff !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 24%),
    linear-gradient(135deg, #143f77 0%, #245fa8 48%, #8bb8ff 100%) !important;
}

body[data-active-view] .primary-btn,
body[data-active-view] .generate-btn,
body[data-active-view] .chip.active,
body[data-active-view] .chip.custom,
body[data-active-view] .result-card .mini-tool span,
body[data-active-view="team"] .team-pro-card .team-command-actions .primary-btn,
.team-pro-card .team-command-actions .primary-btn {
  color: #173f78 !important;
  text-shadow: none !important;
}

/* Remaining premium button and keyword table fixes 20260714-105 */
body[data-active-view="keywords"] #runKeywordAnalyzeBtn,
body[data-active-view="neighbor"] #makeCommentDraftsBtn,
body[data-active-view="team"] #runTeamBtn {
  border-color: rgba(117, 168, 255, 0.48) !important;
  color: #e7f0ff !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, transparent 22%),
    linear-gradient(135deg, #194a88 0%, #2f6fba 52%, #79aefe 100%) !important;
  box-shadow:
    0 16px 34px rgba(37, 95, 170, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  text-shadow: 0 0 10px rgba(117, 168, 255, 0.18) !important;
}

body[data-active-view="keywords"] #runKeywordAnalyzeBtn:hover,
body[data-active-view="neighbor"] #makeCommentDraftsBtn:hover,
body[data-active-view="team"] #runTeamBtn:hover {
  color: #f4f8ff !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 24%),
    linear-gradient(135deg, #123c73 0%, #2662ac 52%, #8cbaff 100%) !important;
}

body[data-active-view="keywords"] .keyword-table,
body[data-active-view="keywords"] .keyword-table td,
body[data-active-view="keywords"] .keyword-table tbody td,
body[data-active-view="keywords"] .keyword-cell {
  color: #f8fbff !important;
  text-shadow: none !important;
}

body[data-active-view="keywords"] .keyword-table th {
  color: #cfd9ea !important;
  text-shadow: none !important;
}

body[data-active-view="keywords"] .keyword-table .grade-pill {
  color: inherit;
}

.draft-dialog #modalFormatBtn,
.draft-dialog #modalAppendTagsBtn,
.draft-dialog #downloadFullDraftBtn {
  border-color: rgba(117, 168, 255, 0.46) !important;
  color: #e1edff !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 22%),
    linear-gradient(135deg, #1a4d8c 0%, #2e6cb8 48%, #75a8ff 100%) !important;
  box-shadow:
    0 14px 28px rgba(37, 95, 170, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  text-shadow: 0 0 10px rgba(117, 168, 255, 0.18) !important;
}

.draft-dialog #modalFormatBtn:hover,
.draft-dialog #modalAppendTagsBtn:hover,
.draft-dialog #downloadFullDraftBtn:hover {
  color: #f2f7ff !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 24%),
    linear-gradient(135deg, #143f77 0%, #245fa8 48%, #8bb8ff 100%) !important;
}

/* Sidebar utilities and post-apply cleanup 20260715-119 */
body[data-active-view="team"] .team-card.team-result-applied .team-target-panel .team-request-tools,
body[data-active-view="team"] .team-pro-card.team-result-applied .team-target-panel .team-request-tools {
  display: none !important;
}

body[data-active-view="team"] .team-card.team-result-applied .team-target-panel .team-auto-request-note,
body[data-active-view="team"] .team-pro-card.team-result-applied .team-target-panel .team-auto-request-note {
  opacity: 0.72;
}

/* Hide manual request action buttons from the premium team cockpit. */
body[data-active-view="team"] #saveTeamRequestBtn,
body[data-active-view="team"] #deleteTeamRequestBtn {
  display: none !important;
}

body[data-active-view="team"] .team-target-panel .team-request-tools {
  grid-template-columns: minmax(0, 1fr) !important;
}

.environment-modal .credential-dialog,
.manual-modal .credential-dialog {
  width: min(560px, calc(100vw - 28px));
}

.environment-modal .credential-form button {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
}

.environment-modal .environment-backup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.environment-modal .environment-backup-actions button {
  min-height: 42px;
}

.environment-modal .environment-backup-note {
  margin: 8px 0 0;
  color: #94a8c9;
  font-size: 11px;
  line-height: 1.55;
}

/* Naver automation live progress 20260715-121 */
body[data-active-view="writer"] .naver-progress-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(91, 110, 148, 0.38);
  border-radius: 14px;
  color: #c7d9ff;
  background:
    linear-gradient(180deg, rgba(26, 35, 54, 0.96) 0%, rgba(17, 24, 38, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-active-view="writer"] .naver-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

body[data-active-view="writer"] .naver-progress-head strong {
  display: block;
  color: #e9f2ff;
  font-size: 13px;
  letter-spacing: 0;
}

body[data-active-view="writer"] .naver-progress-head span,
body[data-active-view="writer"] .naver-progress-head small {
  color: #8fb5ff;
  font-size: 12px;
}

body[data-active-view="writer"] .naver-progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

body[data-active-view="writer"] .naver-progress-steps span {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111, 130, 167, 0.30);
  border-radius: 999px;
  color: #8ea3c5;
  background: rgba(8, 13, 24, 0.52);
  font-size: 12px;
  font-weight: 800;
}

body[data-active-view="writer"] .naver-progress-steps span.done {
  color: #12311f;
  border-color: rgba(152, 235, 182, 0.44);
  background: linear-gradient(135deg, #9be8b8 0%, #d7de88 100%);
}

body[data-active-view="writer"] .naver-progress-steps span.active {
  color: #f4f8ff;
  border-color: rgba(116, 168, 255, 0.58);
  background: linear-gradient(135deg, #1b4e8f 0%, #3d78d8 100%);
  box-shadow: 0 0 18px rgba(94, 143, 237, 0.20);
}

body[data-active-view="writer"] .naver-progress-steps span.error {
  color: #ffe9ec;
  border-color: rgba(255, 132, 150, 0.52);
  background: linear-gradient(135deg, #7c263c 0%, #b5475c 100%);
}

body[data-active-view="writer"] .naver-progress-log {
  max-height: 132px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid rgba(76, 92, 125, 0.32);
  border-radius: 12px;
  color: #dce8ff;
  background: rgba(6, 10, 19, 0.44);
  font-size: 12px;
  line-height: 1.7;
}

body[data-active-view="writer"] .naver-progress-log p {
  margin: 0 0 4px;
  color: #dce8ff;
}

body[data-active-view="writer"] .naver-progress-log p[data-level="success"] {
  color: #bff5cf;
}

body[data-active-view="writer"] .naver-progress-log p[data-level="warning"] {
  color: #ffe4a8;
}

body[data-active-view="writer"] .naver-progress-log p[data-level="error"] {
  color: #ffc2cc;
}

body[data-active-view="team"] .team-naver-progress {
  margin-top: 12px;
  min-height: 156px;
  padding: 14px;
  border-color: rgba(117, 168, 255, 0.26);
  background:
    radial-gradient(circle at 14% 0%, rgba(117, 168, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(20, 29, 48, 0.94) 0%, rgba(12, 18, 31, 0.96) 100%);
}

body[data-active-view="team"] .team-naver-progress .naver-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

body[data-active-view="team"] .team-naver-progress .naver-progress-head strong {
  display: block;
  color: #e9f2ff;
  font-size: 13px;
}

body[data-active-view="team"] .team-naver-progress .naver-progress-head span,
body[data-active-view="team"] .team-naver-progress .naver-progress-head small {
  color: #8fb5ff;
  font-size: 12px;
}

body[data-active-view="team"] .team-naver-progress .naver-progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 10px;
}

body[data-active-view="team"] .team-naver-progress .naver-progress-steps span {
  position: relative;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111, 130, 167, 0.34);
  border-radius: 999px;
  color: #8ea3c5;
  background: rgba(8, 13, 24, 0.52);
  font-size: 12px;
  font-weight: 800;
}

body[data-active-view="team"] .team-naver-progress .naver-progress-steps span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(143, 181, 255, 0.82);
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(117, 168, 255, 0.34);
}

body[data-active-view="team"] .team-naver-progress .naver-progress-steps span.done {
  color: #12311f;
  border-color: rgba(152, 235, 182, 0.48);
  background: linear-gradient(135deg, #9be8b8 0%, #d7de88 100%);
}

body[data-active-view="team"] .team-naver-progress .naver-progress-steps span.done::after {
  color: rgba(155, 232, 184, 0.90);
}

body[data-active-view="team"] .team-naver-progress .naver-progress-steps span.active {
  color: #f4f8ff;
  border-color: rgba(116, 168, 255, 0.66);
  background: linear-gradient(135deg, #1b4e8f 0%, #3d78d8 100%);
  box-shadow: 0 0 18px rgba(94, 143, 237, 0.24);
}

body[data-active-view="team"] .team-naver-progress .naver-progress-steps span.error {
  color: #ffe9ec;
  border-color: rgba(255, 132, 150, 0.56);
  background: linear-gradient(135deg, #7c263c 0%, #b5475c 100%);
}

body[data-active-view="team"] .team-naver-progress .naver-progress-log {
  max-height: 128px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid rgba(76, 92, 125, 0.32);
  border-radius: 12px;
  color: #dce8ff;
  background: rgba(6, 10, 19, 0.44);
  font-size: 12px;
  line-height: 1.7;
}

body[data-active-view="team"] .team-naver-progress .naver-progress-log p {
  margin: 0 0 4px;
  color: #dce8ff;
}

body[data-active-view="team"] .team-naver-progress .naver-progress-log p[data-level="success"] {
  color: #bff5cf;
}

body[data-active-view="team"] .team-naver-progress .naver-progress-log p[data-level="warning"] {
  color: #ffe4a8;
}

body[data-active-view="team"] .team-naver-progress .naver-progress-log p[data-level="error"] {
  color: #ffc2cc;
}

@media (max-width: 900px) {
  body[data-active-view="writer"] .naver-progress-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Premium writing quality controls 20260715-125 */
body[data-active-view="writer"] .writing-context-panel {
  padding: 14px;
  border: 1px solid rgba(91, 110, 148, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 35, 54, 0.94) 0%, rgba(17, 24, 38, 0.96) 100%);
}

body[data-active-view="writer"] .context-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

body[data-active-view="writer"] .context-head strong {
  color: #e9f2ff;
  font-size: 13px;
}

body[data-active-view="writer"] .context-head small {
  color: #8eaad7;
  font-size: 11px;
}

body[data-active-view="writer"] .context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-active-view="writer"] .context-grid label {
  display: grid;
  gap: 6px;
}

body[data-active-view="writer"] .context-grid .context-wide {
  grid-column: 1 / -1;
}

body[data-active-view="writer"] .context-grid span {
  color: #c7d9ff;
  font-size: 12px;
  font-weight: 800;
}

body[data-active-view="writer"] .context-grid input,
body[data-active-view="writer"] .context-grid textarea {
  width: 100%;
  border: 1px solid rgba(110, 130, 166, 0.34);
  border-radius: 10px;
  color: #eef4ff;
  background: rgba(6, 10, 19, 0.58);
  font: inherit;
  font-size: 13px;
  padding: 11px 12px;
}

.draft-dialog .rewrite-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.draft-dialog .rewrite-actions button {
  min-height: 40px;
  border-color: rgba(117, 168, 255, 0.42) !important;
  color: #e1edff !important;
  background: linear-gradient(135deg, #1a4d8c 0%, #2e6cb8 100%) !important;
}

@media (max-width: 900px) {
  body[data-active-view="writer"] .context-grid,
  .draft-dialog .rewrite-actions {
    grid-template-columns: 1fr;
  }
}

/* View isolation guard 20260715-126 */
body .layout-hidden,
body[data-active-view] .layout-hidden,
body[data-active-view="team"] .layout-hidden,
body[data-active-view="threads"] .layout-hidden,
body[data-active-view="keywords"] .layout-hidden,
body[data-active-view="writer"] .layout-hidden,
body[data-active-view="neighbor"] .layout-hidden,
body[data-active-view="mycomments"] .layout-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:not([data-ui-ready="true"]) .create-card,
body:not([data-ui-ready="true"]) .result-card,
body:not([data-ui-ready="true"]) .neighbor-card,
body:not([data-ui-ready="true"]) .keyword-card,
body:not([data-ui-ready="true"]) .threads-card,
body:not([data-ui-ready="true"]) .team-card {
  visibility: hidden;
}

body:not([data-ui-ready="true"]) {
  background:
    radial-gradient(circle at 18% 12%, rgba(45, 87, 145, 0.18), transparent 28%),
    linear-gradient(135deg, #080d1c 0%, #10192c 52%, #152037 100%) !important;
}

body:not([data-ui-ready="true"])::before,
body:not([data-ui-ready="true"])::after {
  opacity: 0 !important;
  visibility: hidden !important;
}

body:not([data-ui-ready="true"]) .app-tabs {
  visibility: hidden;
}

.manual-content {
  display: grid;
  gap: 12px;
  padding: 18px 24px 24px;
}

.manual-content section {
  padding: 14px;
  border: 1px solid rgba(79, 93, 121, 0.34);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(28, 36, 52, 0.98) 0%, rgba(24, 31, 46, 0.98) 100%);
}

.manual-content strong {
  display: block;
  margin-bottom: 6px;
  color: #c7ddff !important;
  font-size: 13px;
  font-weight: 950;
}

.manual-content p {
  margin: 0;
  color: #86a8dc !important;
  font-size: 13px;
  line-height: 1.6;
}

body[data-active-view="team"] .team-pro-sidebar .team-side-button {
  min-height: 38px;
}

/* Threads autoposter cockpit 20260715-107 */
body[data-active-view="threads"] {
  background:
    radial-gradient(circle at 87% 22%, rgba(118, 93, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #101726 0%, #13213a 48%, #101827 100%) !important;
}

body[data-active-view="threads"] .page {
  width: min(1800px, calc(100% - 28px)) !important;
}

.threads-card {
  padding: 22px;
  border: 1px solid rgba(92, 116, 160, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(21, 28, 43, 0.99) 0%, rgba(14, 19, 31, 0.99) 100%);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
}

.threads-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 28px 34px;
  border: 1px solid rgba(117, 168, 255, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #2454d6 0%, #5b40d8 72%, #6d3cc6 100%);
  color: #f4f8ff;
}

.threads-hero h2 {
  margin: 0 0 8px;
  color: #f6f9ff;
  font-size: 34px;
  font-weight: 900;
}

.threads-hero p {
  margin: 0;
  color: rgba(244, 248, 255, 0.84);
  font-size: 15px;
}

.threads-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.threads-hours button {
  min-width: 62px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 850;
}

.threads-hours button.active {
  color: #183763;
  background: #f4f8ff;
}

.threads-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.threads-metrics section,
.threads-panel {
  border: 1px solid rgba(79, 93, 121, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 36, 52, 0.98) 0%, rgba(24, 31, 46, 0.98) 100%);
}

.threads-metrics section {
  padding: 18px 22px;
}

.threads-metrics strong {
  display: block;
  color: #79aefe;
  font-size: 22px;
}

.threads-metrics span,
.threads-note,
.threads-check,
.threads-account-row em,
.threads-queue p {
  color: #86a8dc;
  font-size: 13px;
}

.threads-board {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(460px, 1.08fr) minmax(260px, 0.55fr) minmax(300px, 0.7fr);
  gap: 14px;
  margin-top: 18px;
}

.threads-panel {
  padding: 18px;
}

.threads-panel > strong {
  display: block;
  margin-bottom: 14px;
  color: #c7ddff;
  font-size: 15px;
}

.threads-composer,
.threads-idea-panel {
  display: grid;
  gap: 14px;
}

.threads-composer label,
.threads-idea-panel label {
  display: grid;
  gap: 8px;
}

.threads-composer span,
.threads-mode-row span,
.threads-idea-panel span {
  color: #c7ddff;
  font-size: 13px;
  font-weight: 850;
}

.threads-composer textarea,
.threads-idea-panel textarea,
.threads-idea-panel input,
.threads-idea-panel select,
#threadsIdeaSelect {
  width: 100%;
  border: 1px solid rgba(103, 119, 150, 0.42);
  border-radius: 12px;
  padding: 13px 14px;
  color: #c7ddff;
  background: rgba(9, 13, 23, 0.74);
  outline: none;
}

.threads-composer textarea,
.threads-idea-panel textarea {
  min-height: 142px;
  resize: vertical;
}

.threads-idea-panel textarea {
  min-height: 112px;
}

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

.threads-actions,
.threads-mode-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.threads-mode-row {
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 12px;
}

.threads-actions button,
.threads-mode-row button {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 900;
}

.threads-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}

.threads-account-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(9, 13, 23, 0.40);
}

.threads-account-row .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #51de77;
  box-shadow: 0 0 18px rgba(81, 222, 119, 0.35);
}

.threads-account-row b {
  color: #c7ddff;
}

.threads-queue {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.threads-queue-item {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid rgba(117, 168, 255, 0.22);
  border-radius: 12px;
  padding: 11px 12px;
  color: #c7ddff;
  background: rgba(32, 47, 78, 0.58);
  text-align: left;
}

.threads-queue-item strong {
  color: #79aefe;
  font-size: 12px;
}

.threads-queue-item span {
  color: #a9c8ff;
  font-size: 12px;
}

body[data-active-view="threads"] .primary-btn {
  border-color: rgba(117, 168, 255, 0.48) !important;
  color: #e7f0ff !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, transparent 22%),
    linear-gradient(135deg, #194a88 0%, #2f6fba 52%, #79aefe 100%) !important;
  text-shadow: 0 0 10px rgba(117, 168, 255, 0.18) !important;
}

body[data-active-view="threads"] .secondary-btn {
  border-color: rgba(147, 163, 198, 0.24) !important;
  color: #d7e7ff !important;
  background: linear-gradient(180deg, rgba(58, 65, 91, 0.96) 0%, rgba(42, 48, 70, 0.96) 100%) !important;
}

@media (max-width: 1180px) {
  .threads-board,
  .threads-metrics {
    grid-template-columns: 1fr;
  }

  .threads-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .threads-idea-grid,
  .threads-idea-actions {
    grid-template-columns: 1fr;
  }
}

/* Threads one-screen compact layout 20260715-109 */
body[data-active-view="threads"] .page {
  width: min(1840px, calc(100% - 18px)) !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

body[data-active-view="threads"] .app-tabs {
  margin-bottom: 10px !important;
}

body[data-active-view="threads"] .threads-card {
  min-height: calc(100vh - 86px);
  padding: 14px;
  border-radius: 16px;
}

body[data-active-view="threads"] .threads-hero {
  grid-template-columns: minmax(360px, 0.9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: 18px;
}

body[data-active-view="threads"] .threads-hero h2 {
  margin-bottom: 4px;
  font-size: 27px;
  line-height: 1.18;
}

body[data-active-view="threads"] .threads-hero p {
  font-size: 13px;
  line-height: 1.45;
}

body[data-active-view="threads"] .threads-hours {
  justify-content: flex-end;
  gap: 7px;
}

body[data-active-view="threads"] .threads-hours button {
  min-width: 50px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

body[data-active-view="threads"] .threads-metrics {
  gap: 10px;
  margin-top: 10px;
}

body[data-active-view="threads"] .threads-metrics section {
  min-height: 58px;
  padding: 11px 16px;
}

body[data-active-view="threads"] .threads-metrics strong {
  font-size: 18px;
}

body[data-active-view="threads"] .threads-board {
  grid-template-columns: minmax(280px, 0.78fr) minmax(440px, 1.1fr) minmax(240px, 0.52fr) minmax(280px, 0.66fr);
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}

body[data-active-view="threads"] .threads-panel {
  padding: 13px;
  border-radius: 12px;
}

body[data-active-view="threads"] .threads-panel > strong {
  margin-bottom: 9px;
  font-size: 14px;
}

body[data-active-view="threads"] .threads-composer,
body[data-active-view="threads"] .threads-idea-panel {
  gap: 9px;
}

body[data-active-view="threads"] .threads-composer label,
body[data-active-view="threads"] .threads-idea-panel label {
  gap: 5px;
}

body[data-active-view="threads"] .threads-composer span,
body[data-active-view="threads"] .threads-mode-row span,
body[data-active-view="threads"] .threads-idea-panel span {
  font-size: 12px;
}

body[data-active-view="threads"] .threads-composer textarea,
body[data-active-view="threads"] .threads-idea-panel textarea {
  min-height: 94px;
  max-height: 118px;
  padding: 10px 11px;
  font-size: 12px;
  line-height: 1.55;
}

body[data-active-view="threads"] .threads-idea-panel textarea {
  min-height: 82px;
}

body[data-active-view="threads"] .threads-idea-panel input,
body[data-active-view="threads"] .threads-idea-panel select,
body[data-active-view="threads"] #threadsIdeaSelect {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
}

body[data-active-view="threads"] .threads-idea-grid,
body[data-active-view="threads"] .threads-idea-actions,
body[data-active-view="threads"] .threads-actions,
body[data-active-view="threads"] .threads-mode-row {
  gap: 7px;
}

body[data-active-view="threads"] .threads-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-active-view="threads"] .threads-actions button,
body[data-active-view="threads"] .threads-mode-row button {
  min-height: 38px;
  font-size: 12px;
}

body[data-active-view="threads"] .threads-mode-row {
  grid-template-columns: 44px minmax(0, 1fr);
  margin-bottom: 8px;
}

body[data-active-view="threads"] .threads-login-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(105, 129, 177, 0.32);
  border-radius: 12px;
  background: rgba(8, 15, 31, 0.34);
}

body[data-active-view="threads"] .threads-login-box label {
  display: grid;
  gap: 5px;
}

body[data-active-view="threads"] .threads-login-box input {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(108, 130, 178, 0.45);
  background: rgba(6, 12, 25, 0.82);
  color: #dbe9ff;
}

body[data-active-view="threads"] .threads-login-actions {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 7px;
}

body[data-active-view="threads"] .threads-login-actions button {
  min-height: 34px;
  font-size: 12px;
}

body[data-active-view="threads"] #threadsLoginStatus {
  font-style: normal;
  font-size: 12px;
  color: #9db7df;
}

body[data-active-view="threads"] #threadsLoginStatus.saved {
  color: #a8f3ce;
}

.threads-series-dialog {
  max-width: min(1120px, calc(100vw - 56px));
}

.threads-series-view {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 680px);
  overflow: auto;
}

.threads-series-view > h3 {
  margin: 0;
  color: #cfe2ff;
}

.threads-series-view > p {
  margin: 0;
  color: #91a8ce;
}

.threads-series-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-color: rgba(120, 148, 206, 0.35);
  background:
    linear-gradient(145deg, rgba(28, 38, 61, 0.96), rgba(13, 20, 35, 0.98)),
    radial-gradient(circle at top left, rgba(115, 151, 220, 0.2), transparent 36%);
}

.threads-series-item strong {
  color: #bcd8ff;
  letter-spacing: 0.02em;
}

.threads-series-item p {
  margin: 0;
  white-space: pre-wrap;
  color: #d8e8ff;
  line-height: 1.72;
}

.threads-series-item small {
  justify-self: end;
  color: #96aacb;
}

body[data-active-view="threads"] .threads-check {
  margin: 9px 0;
}

body[data-active-view="threads"] .threads-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

body[data-active-view="threads"] .threads-account-row {
  min-height: 38px;
  padding: 8px 10px;
}

body[data-active-view="threads"] .threads-queue {
  max-height: 220px;
  overflow: auto;
  gap: 7px;
  margin-top: 9px;
}

body[data-active-view="threads"] .threads-queue-item {
  padding: 9px 10px;
}

body[data-active-view="threads"] #threadsLog {
  margin-top: 10px;
  padding: 9px 11px;
  font-size: 12px;
}

@media (max-width: 1380px) {
  body[data-active-view="threads"] .threads-hero,
  body[data-active-view="threads"] .threads-board {
    grid-template-columns: 1fr;
  }

  body[data-active-view="threads"] .threads-hours {
    justify-content: flex-start;
  }
}

/* My comment automation readability and aligned controls 20260724-171 */
body[data-active-view="mycomments"] .my-comment-actions {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
}

body[data-active-view="mycomments"] .my-comment-actions .secondary-btn,
body[data-active-view="mycomments"] .my-comment-account .secondary-btn {
  border-color: rgba(135, 166, 222, 0.42) !important;
  color: #f7faff !important;
  background:
    linear-gradient(180deg, rgba(64, 75, 105, 0.98) 0%, rgba(43, 51, 76, 0.98) 100%) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.48) !important;
}

body[data-active-view="mycomments"] .my-comment-actions .secondary-btn:hover,
body[data-active-view="mycomments"] .my-comment-account .secondary-btn:hover {
  border-color: rgba(155, 190, 250, 0.62) !important;
  color: #ffffff !important;
  background:
    linear-gradient(180deg, rgba(75, 91, 128, 0.98) 0%, rgba(51, 62, 92, 0.98) 100%) !important;
}

body[data-active-view="mycomments"] .my-comment-actions .secondary-btn:disabled {
  color: #9ba9c0 !important;
  background: rgba(35, 42, 61, 0.92) !important;
  box-shadow: none !important;
}

body[data-active-view="mycomments"] .neighbor-head .status-pill {
  border-color: rgba(122, 151, 204, 0.36);
  color: #dbe8ff;
  background: rgba(42, 51, 76, 0.94);
  box-shadow: none;
}

@media (max-width: 820px) {
  body[data-active-view="mycomments"] .my-comment-actions {
    grid-template-columns: 1fr !important;
  }
}

body[data-active-view="mycomments"] .my-comment-scan-history {
  margin: 0 22px 18px;
  padding: 14px;
  border: 1px solid rgba(79, 93, 121, 0.34);
  border-radius: 10px;
  color: #dce6f8;
  background:
    linear-gradient(180deg, rgba(28, 36, 52, 0.98) 0%, rgba(24, 31, 46, 0.98) 100%);
}

body[data-active-view="mycomments"] .my-comment-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

body[data-active-view="mycomments"] .my-comment-history-head > div {
  display: grid;
  gap: 3px;
}

body[data-active-view="mycomments"] .my-comment-history-head span {
  color: #f2f7ff;
  font-size: 13px;
  font-weight: 900;
}

body[data-active-view="mycomments"] .my-comment-history-head small,
body[data-active-view="mycomments"] .my-comment-history-empty {
  margin: 0;
  color: #94a4c0;
  font-size: 11px;
}

body[data-active-view="mycomments"] .my-comment-history-head button {
  width: auto;
  min-width: 104px;
  min-height: 36px;
}

body[data-active-view="mycomments"] .my-comment-history-list {
  display: grid;
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
}

body[data-active-view="mycomments"] .my-comment-history-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(97, 115, 150, 0.26);
  border-radius: 8px;
  background: rgba(9, 13, 23, 0.52);
}

body[data-active-view="mycomments"] .my-comment-history-row strong {
  color: #c9dbf8;
  font-size: 11px;
}

body[data-active-view="mycomments"] .my-comment-history-row span {
  color: #aebbd1;
  font-size: 11px;
}

body[data-active-view="mycomments"] .my-comment-history-row.error {
  border-color: rgba(210, 105, 122, 0.34);
}

body[data-active-view="mycomments"] .my-comment-history-row.error span {
  color: #ffc6cf;
}

body[data-active-view="mycomments"] .my-comment-post-title {
  display: block;
  margin-bottom: 5px;
  color: #8fb8f2;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 820px) {
  body[data-active-view="mycomments"] .my-comment-history-head,
  body[data-active-view="mycomments"] .my-comment-history-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}
/* SaaS preview authentication */
body[data-auth-state="pending"] .page,
body[data-auth-state="required"] .page {
  visibility: hidden;
}

body[data-auth-state="pending"],
body[data-auth-state="required"] {
  overflow: hidden;
}

body[data-auth-state="authenticated"] .auth-shell {
  display: none;
}

.auth-shell {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(480px, 1.35fr) minmax(420px, 0.65fr);
  min-height: 100vh;
  color: #dbe9ff;
  background: #080d1c;
  font-family: "Pretendard", "SUIT", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px clamp(48px, 6vw, 112px);
  border-right: 1px solid rgba(120, 157, 215, 0.2);
  background:
    linear-gradient(145deg, rgba(19, 37, 76, 0.97), rgba(7, 13, 29, 0.98) 68%),
    #0c1428;
}

.auth-visual::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -28%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(104, 178, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(60, 118, 215, 0.045),
    0 0 0 140px rgba(60, 118, 215, 0.025);
}

.auth-visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(124, 171, 236, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 171, 236, 0.22) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}

.auth-brand,
.auth-copy,
.auth-feature-row {
  position: relative;
  z-index: 1;
}

.auth-brand,
.auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(128, 188, 255, 0.62);
  border-radius: 8px;
  color: #f2f7ff;
  background: linear-gradient(145deg, #1a76bc, #3156a5 62%, #b23f58);
  box-shadow: 0 12px 34px rgba(22, 78, 160, 0.34);
  font-size: 23px;
  font-weight: 900;
}

.auth-brand span {
  display: block;
  margin-bottom: 3px;
  color: #79bfff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.auth-brand strong,
.auth-mobile-brand strong {
  color: #f3f7ff;
  font-size: 19px;
}

.auth-copy {
  max-width: 720px;
  margin: auto 0;
}

.auth-copy p,
.auth-kicker {
  margin: 0 0 18px;
  color: #78baff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.auth-copy h1 {
  margin: 0;
  color: #f5f8ff;
  font-size: clamp(42px, 4vw, 68px);
  line-height: 1.18;
  letter-spacing: 0;
}

.auth-copy > span {
  display: block;
  max-width: 620px;
  margin-top: 28px;
  color: #9eb4d4;
  font-size: 17px;
  line-height: 1.8;
}

.auth-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-feature-row span {
  padding: 10px 14px;
  border: 1px solid rgba(115, 162, 226, 0.22);
  border-radius: 6px;
  color: #b8cbe7;
  background: rgba(10, 21, 43, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 44px;
  background: #0d1424;
}

.auth-panel-inner {
  width: min(100%, 430px);
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 38px;
}

.auth-loading {
  display: grid;
  justify-items: center;
  gap: 20px;
  color: #b8cae5;
}

.auth-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(106, 166, 236, 0.18);
  border-top-color: #65b7ff;
  border-radius: 50%;
  animation: auth-spin 0.85s linear infinite;
}

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

.auth-form-wrap h2 {
  margin: 0;
  color: #f5f8ff;
  font-size: 31px;
  line-height: 1.3;
}

.auth-description {
  margin: 12px 0 28px;
  color: #899fbe;
  font-size: 14px;
  line-height: 1.65;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid rgba(108, 143, 197, 0.18);
  border-radius: 8px;
  background: #080e1c;
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 5px;
  color: #7f94b2;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.active {
  color: #eaf3ff;
  background: #1b2942;
  box-shadow: inset 0 0 0 1px rgba(111, 168, 236, 0.25);
}

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

.auth-tabs button[hidden] {
  display: none;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form[hidden],
.auth-form-wrap[hidden],
.auth-loading[hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label > span {
  color: #b9cbe5;
  font-size: 12px;
  font-weight: 800;
}

.auth-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid #263754;
  border-radius: 7px;
  outline: 0;
  color: #edf5ff;
  background: #09101e;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-form input:focus {
  border-color: #5caef2;
  box-shadow: 0 0 0 3px rgba(70, 153, 230, 0.14);
}

.auth-form input::placeholder {
  color: #586b88;
}

.auth-submit {
  min-height: 52px;
  margin-top: 5px;
  border: 1px solid rgba(133, 204, 255, 0.38);
  border-radius: 7px;
  color: #071120;
  background: linear-gradient(110deg, #79c9ff, #75e2c0 72%, #d7d783);
  box-shadow: 0 12px 32px rgba(54, 158, 221, 0.2);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-status {
  min-height: 22px;
  margin: 18px 0 0;
  color: #90a7c6;
  font-size: 13px;
  line-height: 1.6;
}

.auth-status[data-level="error"] {
  color: #ff8fa0;
}

.auth-status[data-level="success"] {
  color: #7de4ba;
}

.auth-status[data-level="working"] {
  color: #83c5ff;
}

.auth-security {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(106, 137, 184, 0.14);
  color: #627693;
  font-size: 11px;
  line-height: 1.6;
}

.account-dock {
  position: fixed;
  top: 12px;
  right: 18px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(99, 140, 202, 0.28);
  border-radius: 8px;
  background: rgba(9, 15, 29, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.account-dock[hidden] {
  display: none;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 160px;
  padding: 4px 9px 4px 4px;
  border: 0;
  color: #d7e8ff;
  background: transparent;
  text-align: left;
  font: inherit;
}

.account-cloud-indicator {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #62d8ad;
  box-shadow: 0 0 10px rgba(98, 216, 173, 0.85);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid rgba(118, 187, 244, 0.5);
  border-radius: 6px;
  color: #eff8ff;
  background: linear-gradient(145deg, #256fae, #31487e);
  font-size: 13px;
  font-weight: 900;
}

.account-profile strong,
.account-profile small {
  display: block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile strong {
  font-size: 11px;
}

.account-profile small {
  margin-top: 2px;
  color: #7790b0;
  font-size: 9px;
}

.account-logout {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(103, 139, 190, 0.24);
  border-radius: 5px;
  color: #9bb1cf;
  background: #151f33;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.account-cloud-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  box-sizing: border-box;
  width: min(320px, calc(100vw - 16px));
  padding: 16px;
  border: 1px solid rgba(103, 153, 222, 0.28);
  border-radius: 8px;
  color: #d9e9ff;
  background: #0c1424;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

.account-cloud-panel[hidden] {
  display: none;
}

.account-cloud-head,
.account-cloud-state,
.account-cloud-details > div {
  display: flex;
  align-items: center;
}

.account-cloud-head {
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(103, 142, 197, 0.16);
}

.account-cloud-head span {
  display: block;
  margin-bottom: 3px;
  color: #70bfff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.account-cloud-head strong {
  color: #edf5ff;
  font-size: 14px;
}

.account-cloud-head button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(100, 139, 194, 0.2);
  border-radius: 5px;
  color: #90a9ca;
  background: #141f33;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.account-cloud-state {
  gap: 11px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(96, 145, 211, 0.18);
  border-radius: 7px;
  background: #0a111f;
}

.account-cloud-state > i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #62d8ad;
  box-shadow: 0 0 13px rgba(98, 216, 173, 0.75);
}

.account-cloud-state strong,
.account-cloud-state span {
  display: block;
}

.account-cloud-state strong {
  color: #dcecff;
  font-size: 11px;
}

.account-cloud-state span {
  margin-top: 3px;
  color: #7188a7;
  font-size: 9px;
}

.account-cloud-details {
  display: grid;
  gap: 2px;
  margin: 0;
}

.account-cloud-details > div {
  justify-content: space-between;
  min-height: 31px;
  border-bottom: 1px solid rgba(91, 126, 178, 0.1);
}

.account-cloud-details dt {
  color: #758aa8;
  font-size: 10px;
}

.account-cloud-details dd {
  max-width: 190px;
  margin: 0;
  overflow: hidden;
  color: #bcd0eb;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-cloud-sync {
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  border: 1px solid rgba(116, 183, 246, 0.34);
  border-radius: 6px;
  color: #e8f4ff;
  background: linear-gradient(110deg, #244d81, #2d678e);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.account-cloud-sync:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    padding: 28px;
  }

  .auth-mobile-brand {
    display: flex;
  }
}

@media (min-width: 721px) and (max-width: 1500px) {
  .account-dock {
    top: 68px;
    right: 24px;
  }
}

@media (max-width: 720px) {
  .account-dock {
    top: 8px;
    right: 8px;
  }

  .account-profile {
    min-width: 0;
  }

  .account-profile > span:last-child {
    display: none;
  }

  .auth-panel {
    align-items: start;
    padding-top: 44px;
  }
}

/* Login concept v1: centered private workspace */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 64px minmax(0, 1fr) 42px;
  min-height: 100dvh;
  overflow: hidden;
  color: #eff7f3;
  background-color: #06100d;
  background-image: url("assets/taengpick-login-bg-v1.webp");
  background-position: center;
  background-size: cover;
  font-family: "Pretendard Variable", "Pretendard", "SUIT", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.auth-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 clamp(22px, 3.2vw, 62px);
  border-bottom: 1px solid rgba(134, 188, 162, 0.13);
  background: rgba(5, 14, 10, 0.84);
  backdrop-filter: blur(16px);
}

.auth-topbar .auth-brand {
  gap: 11px;
}

.auth-topbar .auth-brand-mark {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-color: rgba(107, 216, 158, 0.5);
  border-radius: 7px;
  color: #06110d;
  background: #64d49a;
  box-shadow: 0 8px 22px rgba(58, 183, 122, 0.2);
  font-size: 17px;
}

.auth-topbar .auth-brand span {
  margin-bottom: 1px;
  color: #69d59c;
  font-size: 9px;
  letter-spacing: 1.2px;
}

.auth-topbar .auth-brand strong {
  color: #eff7f3;
  font-size: 14px;
}

.auth-connection {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c9ddd3;
}

.auth-connection > i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #64d49a;
  box-shadow: 0 0 12px rgba(100, 212, 154, 0.88);
}

.auth-connection span {
  display: grid;
  gap: 1px;
}

.auth-connection strong {
  font-size: 11px;
}

.auth-connection small {
  color: #647a70;
  font-size: 8px;
  font-weight: 800;
}

.auth-stage {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 0;
  overflow: auto;
  padding: 26px 20px;
  scrollbar-width: thin;
  scrollbar-color: #315346 transparent;
}

.auth-intro {
  width: min(100%, 620px);
  margin-bottom: 22px;
  text-align: center;
}

.auth-intro-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 15px;
  border: 1px solid rgba(121, 225, 172, 0.56);
  border-radius: 8px;
  color: #07120e;
  background: #64d49a;
  box-shadow:
    0 14px 40px rgba(40, 159, 104, 0.22),
    inset 0 0 0 6px rgba(255, 255, 255, 0.08);
  font-size: 29px;
  font-weight: 950;
}

.auth-intro > p {
  margin: 0 0 7px;
  color: #65d29a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.auth-intro h1 {
  margin: 0;
  color: #f4f8f6;
  font-size: clamp(38px, 3.2vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.auth-intro > span {
  display: block;
  margin-top: 13px;
  color: #8fa49a;
  font-size: 13px;
  line-height: 1.7;
}

.auth-feature-row {
  justify-content: center;
  margin-top: 16px;
  gap: 8px;
}

.auth-feature-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(108, 158, 135, 0.2);
  border-radius: 6px;
  color: #9db2a8;
  background: rgba(7, 18, 13, 0.72);
  font-size: 10px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.auth-feature-row b {
  color: #67d49b;
  font-size: 9px;
}

.auth-panel {
  display: block;
  width: min(100%, 438px);
  padding: 0;
  border: 1px solid rgba(121, 172, 149, 0.22);
  border-radius: 8px;
  background: rgba(8, 20, 15, 0.9);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.auth-panel-inner {
  width: auto;
  padding: 24px 26px 22px;
}

.auth-loading {
  min-height: 220px;
  align-content: center;
  color: #a9bdb3;
}

.auth-loading strong {
  font-size: 13px;
}

.auth-spinner {
  width: 30px;
  height: 30px;
  border-color: rgba(100, 212, 154, 0.16);
  border-top-color: #64d49a;
}

.auth-form-heading {
  margin-bottom: 18px;
  text-align: left;
}

.auth-kicker {
  margin: 0 0 7px;
  color: #64d49a;
  font-size: 9px;
  letter-spacing: 1.4px;
}

.auth-form-wrap h2 {
  color: #f1f6f3;
  font-size: 21px;
  line-height: 1.3;
}

.auth-description {
  margin: 7px 0 0;
  color: #7f958a;
  font-size: 12px;
  line-height: 1.55;
}

.auth-tabs {
  gap: 3px;
  margin-bottom: 16px;
  padding: 3px;
  border-color: rgba(109, 158, 135, 0.2);
  border-radius: 7px;
  background: #07110d;
}

.auth-tabs.single {
  display: none;
}

.auth-tabs button {
  min-height: 34px;
  border-radius: 5px;
  color: #71887c;
  font-size: 11px;
}

.auth-tabs button.active {
  color: #dff3e9;
  background: #172a21;
  box-shadow: inset 0 0 0 1px rgba(102, 205, 151, 0.24);
}

.auth-form {
  gap: 13px;
}

.auth-form label {
  gap: 6px;
}

.auth-form label > span {
  color: #a8bbb1;
  font-size: 10px;
}

.auth-form input {
  min-height: 46px;
  padding: 0 14px;
  border-color: #263b32;
  border-radius: 7px;
  color: #edf6f1;
  background: #07110d;
  font-size: 13px;
}

.auth-form input:hover {
  border-color: #365848;
}

.auth-form input:focus {
  border-color: #64d49a;
  box-shadow: 0 0 0 3px rgba(100, 212, 154, 0.12);
}

.auth-form input::placeholder {
  color: #52675d;
}

.auth-submit {
  min-height: 47px;
  margin-top: 4px;
  border-color: #77dfa8;
  border-radius: 7px;
  color: #06110d;
  background: #64d49a;
  box-shadow: 0 12px 30px rgba(42, 175, 110, 0.2);
  font-size: 12px;
}

.auth-submit:hover:not(:disabled) {
  background: #76dfa9;
  box-shadow: 0 15px 34px rgba(42, 175, 110, 0.27);
  transform: translateY(-1px);
}

.auth-status {
  min-height: 18px;
  margin-top: 12px;
  color: #82988d;
  font-size: 11px;
}

.auth-status[data-level="working"] {
  color: #86c7d2;
}

.auth-status[data-level="success"] {
  color: #77dbaa;
}

.auth-status[data-level="error"] {
  color: #e68d9b;
}

.auth-security {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding-top: 13px;
  border-top-color: rgba(112, 156, 136, 0.14);
  color: #60766b;
  font-size: 9px;
}

.auth-security > i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #64d49a;
}

.auth-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 3.2vw, 62px);
  border-top: 1px solid rgba(134, 188, 162, 0.09);
  color: #50665b;
  background: rgba(5, 14, 10, 0.72);
  font-size: 8px;
  font-weight: 800;
}

@media (max-height: 760px) and (min-width: 721px) {
  .auth-stage {
    align-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .auth-intro {
    margin-bottom: 10px;
  }

  .auth-intro-mark {
    width: 42px;
    height: 42px;
    margin-bottom: 7px;
    font-size: 20px;
  }

  .auth-intro > p {
    margin-bottom: 4px;
  }

  .auth-intro h1 {
    font-size: 30px;
  }

  .auth-intro > span {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.4;
  }

  .auth-feature-row {
    display: none;
  }

  .auth-panel-inner {
    padding: 16px 22px 14px;
  }

  .auth-form-heading {
    margin-bottom: 12px;
  }

  .auth-form-wrap h2 {
    font-size: 19px;
  }

  .auth-description {
    margin-top: 4px;
  }

  .auth-form {
    gap: 9px;
  }

  .auth-form input {
    min-height: 42px;
  }

  .auth-submit {
    min-height: 43px;
    margin-top: 2px;
  }

  .auth-status {
    margin-top: 7px;
  }

  .auth-security {
    margin-top: 3px;
    padding-top: 8px;
  }
}

@media (max-width: 720px) {
  .auth-shell {
    grid-template-rows: 58px minmax(0, 1fr) 36px;
  }

  .auth-topbar {
    padding: 0 16px;
  }

  .auth-connection small {
    display: none;
  }

  .auth-stage {
    align-content: start;
    padding: 28px 16px 22px;
  }

  .auth-intro {
    margin-bottom: 18px;
  }

  .auth-intro-mark {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .auth-intro h1 {
    font-size: 34px;
  }

  .auth-intro > span {
    font-size: 11px;
  }

  .auth-intro > span br {
    display: none;
  }

  .auth-feature-row span {
    padding: 6px 8px;
  }

  .auth-panel {
    align-items: initial;
    padding: 0;
  }

  .auth-panel-inner {
    padding: 22px 19px 19px;
  }

  .auth-footer {
    justify-content: center;
    padding: 0 12px;
  }

  .auth-footer span:last-child {
    display: none;
  }
}
