:root {
  --bg: #07111f;
  --sidebar: #091525;
  --panel: #101e31;
  --panel-2: #13243a;
  --border: #263b55;
  --border-soft: #1b3048;
  --text: #f4f7fb;
  --muted: #8ea6c1;
  --muted-2: #66819f;
  --accent: #397cf6;
  --accent-hover: #4a89fa;
  --accent-soft: rgba(57,124,246,.12);
  --success: #29d17d;
  --danger: #ef6464;
  --sidebar-width: 248px;
  --radius: 14px;
  --shadow: 0 14px 35px rgba(0,0,0,.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--border-soft);
}

.brand {
  min-height: 82px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-close {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 27px;
}

.nav {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  width: 100%;
  height: 44px;
  margin: 2px 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: .16s ease;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255,255,255,.035);
}

.nav-item.active {
  color: #fff;
  background: var(--accent-soft);
}

.nav-item.active .nav-icon {
  color: #6da1ff;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item[data-page="telegram"] svg {
  fill: currentColor;
  stroke: none;
}

.letter-icon {
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.nav-group-label {
  padding: 19px 12px 7px;
  color: #506b89;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.sidebar-user {
  min-height: 72px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-soft);
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 50%;
  background: #18304c;
  color: #bcd2eb;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-user-info {
  min-width: 0;
  flex: 1;
}

.sidebar-user-info strong,
.sidebar-user-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-info strong {
  font-size: 12px;
}

.sidebar-user-info span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.dots {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  min-height: 82px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(7,17,31,.94);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}

.topbar-title {
  flex: 1;
}

.topbar h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
}

.topbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-picker {
  position: relative;
}

.picker-label {
  display: none;
}

.project-button {
  min-width: 145px;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
}

.project-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.chevron {
  margin-left: auto;
  color: var(--muted);
}

.project-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 170px;
  padding: 6px;
  display: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #102036;
  box-shadow: var(--shadow);
}

.project-menu.open {
  display: block;
}

.project-menu button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.project-menu button:hover {
  background: rgba(255,255,255,.05);
}

.system-status {
  height: 40px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(41,209,125,.25);
  border-radius: 9px;
  background: rgba(41,209,125,.06);
  color: #78e7ae;
  font-size: 11px;
  font-weight: 600;
}

.system-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.mobile-menu {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.mobile-menu span {
  display: block;
  height: 1px;
  margin: 4px 0;
  background: #b8c9dc;
}

.content {
  padding: 26px 28px 60px;
  max-width: 1600px;
  margin: 0 auto;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

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

.metric-card,
.panel,
.project-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.metric-card {
  min-height: 142px;
  padding: 19px;
}

.metric-label {
  display: block;
  color: #9ab3ce;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.metric-card strong {
  display: block;
  margin: 13px 0 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: 650;
}

.metric-card small {
  color: var(--muted);
  font-size: 11px;
}

.two-column {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
  gap: 14px;
}

.panel {
  padding: 18px;
}

.panel-head,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2,
.section-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.panel-head p,
.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.section-heading {
  margin-bottom: 18px;
}

.empty-state {
  min-height: 215px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.empty-icon svg {
  width: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
}

.empty-state strong {
  color: #b9c9db;
  font-size: 12px;
}

.empty-state span {
  margin-top: 5px;
  font-size: 11px;
}

.integration-list {
  display: grid;
}

.integration-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--border-soft);
}

.integration-row:first-child {
  border-top: 0;
}

.integration-row strong,
.integration-row span {
  display: block;
}

.integration-row strong {
  font-size: 12px;
}

.integration-row div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.integration-row.large {
  min-height: 95px;
}

.status {
  display: inline-flex !important;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px !important;
  font-weight: 700;
  white-space: nowrap;
}

.status.neutral {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  color: #91a7bf;
}

.status.success {
  border: 1px solid rgba(41,209,125,.2);
  background: rgba(41,209,125,.07);
  color: #72dda7;
}

.metric-grid.compact {
  margin-bottom: 14px;
}

.table-toolbar {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.segmented {
  display: flex;
  gap: 5px;
}

.segmented button,
.secondary-button,
.primary-button,
.input-action button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.segmented button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
}

.primary-button:hover {
  background: var(--accent-hover);
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: #c3d1e0;
}

.search {
  width: min(360px, 100%);
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0a1727;
}

.search svg {
  width: 15px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 11px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  color: #8fa9c4;
  font-size: 9px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}

td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border-soft);
  color: #c0cfdf;
  font-size: 11px;
}

.table-empty td {
  height: 150px;
  color: var(--muted);
  text-align: center;
}

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

.form-panel.narrow {
  max-width: 720px;
}

.form-group {
  margin-top: 16px;
}

.form-group:first-of-type {
  margin-top: 0;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: #a9bdd3;
  font-size: 11px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: #0a1727;
  color: var(--text);
  font-size: 12px;
}

.form-group input:focus {
  border-color: #477fc8;
  box-shadow: 0 0 0 3px rgba(57,124,246,.08);
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 9px;
}

.input-action {
  display: flex;
  gap: 8px;
}

.input-action button {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: #c3d1e0;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.form-actions.split {
  justify-content: space-between;
}

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

.project-card {
  padding: 18px;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #18304c;
  color: #bcd2eb;
  font-weight: 700;
}

.project-card h3 {
  margin: 16px 0 5px;
  font-size: 15px;
}

.project-card p {
  min-height: 18px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.mobile-overlay {
  display: none;
}

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  :root {
    --sidebar-width: 286px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .sidebar {
    width: min(86vw, var(--sidebar-width));
    transform: translateX(-105%);
    box-shadow: 20px 0 50px rgba(0,0,0,.32);
    transition: transform .2s ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .mobile-overlay {
    position: fixed;
    z-index: 40;
    inset: 0;
    background: rgba(0,0,0,.55);
  }

  body.menu-open .mobile-overlay {
    display: block;
  }

  .main {
    margin-left: 0;
  }

  .topbar {
    min-height: 68px;
    padding: 10px 14px;
    gap: 11px;
  }

  .mobile-menu {
    display: block;
    flex: 0 0 38px;
  }

  .topbar-title p {
    display: none;
  }

  .topbar h1 {
    font-size: 16px;
  }

  .system-status {
    display: none;
  }

  .project-button {
    min-width: 104px;
    max-width: 128px;
    height: 38px;
  }

  .content {
    padding: 16px 14px 40px;
  }

  .metric-grid,
  .settings-grid,
  .project-cards {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 116px;
  }

  .metric-card strong {
    font-size: 27px;
  }

  .two-column {
    margin-top: 12px;
  }

  .panel {
    padding: 15px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .table-toolbar {
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .input-action {
    flex-direction: column;
  }

  .input-action button {
    min-height: 40px;
  }

  .form-actions,
  .form-actions.split {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .form-actions button {
    width: 100%;
    min-height: 42px;
  }

  .panel-head {
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .topbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .project-button {
    min-width: 94px;
  }
}

/* ============================================================
   ADM-14A — MODAL NOVO PROJETO
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 9, 18, .72);
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 520px);
  background: var(--panel);
  border: 1px solid #263b55;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-head h2 {
  margin: 4px 0 6px;
}

.modal-head p {
  margin: 0;
  color: #8fa3bb;
  line-height: 1.5;
}

.modal-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #263b55;
  border-radius: 9px;
  background: transparent;
  color: #b8c6d8;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--panel-2);
}

.modal-card .form-group {
  margin-bottom: 18px;
}

.modal-card .form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.modal-card .form-group input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #263b55;
  border-radius: 9px;
  outline: none;
  background: #0b1727;
  color: #edf4ff;
  font: inherit;
}

.modal-card .form-group input:focus {
  border-color: #4c6f98;
}

.modal-card .form-group small {
  display: block;
  margin-top: 7px;
  color: #7f93ab;
  line-height: 1.4;
}

.form-feedback {
  margin: 10px 0 18px;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid #263b55;
  background: #0b1727;
  color: #b8c6d8;
}

.form-feedback[data-status="success"] {
  border-color: #315f48;
  color: #8ee0b1;
}

.form-feedback[data-status="error"] {
  border-color: #633a3a;
  color: #ff9c9c;
}

@media (max-width: 600px) {

  .modal-backdrop {
    align-items: flex-end;
    padding: 12px;
  }

  .modal-card {
    border-radius: 16px 16px 12px 12px;
    padding: 20px;
  }

  .modal-card .form-actions {
    flex-direction: column-reverse;
  }

  .modal-card .form-actions button {
    width: 100%;
    min-height: 46px;
  }
}


/* D6N-E — administradores */
.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border, #24364d);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
}

.admin-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-row small,
.empty-state {
  color: #8fa5bd;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .admin-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions button {
    flex: 1;
  }
}

/* D6R-G2 */
.overview-heading {
  align-items: flex-end;
  gap: 18px;
}

.period-filter {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
}

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

.activity-main,
.activity-side {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.activity-main span,
.activity-side small,
.table-sub {
  opacity: .68;
  font-size: 12px;
}

.activity-side {
  text-align: right;
  align-items: flex-end;
}

.compact-empty {
  min-height: 180px;
}

.masked-click {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.table-sub {
  display: block;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .overview-heading {
    align-items: stretch;
  }

  .period-filter {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .period-filter button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .activity-row {
    align-items: flex-start;
  }
}

/* D6R-K2 KWAI HISTORY */

.overview-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--border, #26364d);
  border-radius: 8px;
  background: rgba(255,255,255,.015);
}

.overview-date-filter span {
  font-size: 11px;
  opacity: .65;
}

.overview-date-filter input {
  width: 122px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
}

.kwai-history-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border, #223249);
  border-radius: 12px;
  background: rgba(255,255,255,.012);
}

.kwai-history-head {
  margin-bottom: 13px;
}

.kwai-history-head h3 {
  margin: 0;
  font-size: 13px;
}

.kwai-history-head p {
  margin: 4px 0 0;
  font-size: 11px;
  opacity: .58;
}

.kwai-history-scroll {
  width: 100%;
  overflow-x: auto;
}

.kwai-history-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.kwai-history-table th,
.kwai-history-table td {
  padding: 10px 9px;
  text-align: left;
  border-bottom: 1px solid var(--border, #223249);
}

.kwai-history-table th {
  font-size: 10px;
  font-weight: 700;
  opacity: .55;
}

.kwai-history-table td {
  font-size: 12px;
}

.kwai-history-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 760px) {
  #overviewPeriod {
    flex-wrap: wrap;
  }

  .overview-date-filter {
    width: 100%;
    justify-content: space-between;
  }

  .overview-date-filter input {
    flex: 1;
    width: auto;
  }

  .kwai-history-panel {
    padding: 12px;
  }
}

/* D6R-N15D
   O painel D6RI continua existindo para alimentar o histórico,
   mas sua interface auxiliar/crua fica oculta.
   O histórico permanece visível.
*/
#d6ri-kwai-panel > .d6ri-head,
#d6ri-kwai-panel > .d6ri-toolbar,
#d6ri-kwai-panel > .d6ri-cards {
  display: none !important;
}

#d6ri-kwai-panel {
  margin-top: 0 !important;
}

#d6ri-kwai-panel .d6ri-history {
  display: block !important;
}

/* D6R-S10B-KWAI-CSS */

.kwai-s10-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
}

.kwai-s10-left,
.kwai-s10-right {
  min-width: 0;
}

.kwai-s10-left > .panel,
.kwai-s10-right > .kwai-s10-test-card {
  width: 100%;
  box-sizing: border-box;
}

.kwai-s10-test-card {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border, #20364d);
  border-radius: 12px;
  background: var(--panel, #102238);
  box-sizing: border-box;
}

.kwai-s10-head {
  margin-bottom: 18px;
}

.kwai-s10-head h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.kwai-s10-head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted, #8da4bb);
}

.kwai-s10-field {
  margin-bottom: 14px;
}

.kwai-s10-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
}

.kwai-s10-field input,
.kwai-s10-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: inherit;
  background: #0b1c2f;
  border: 1px solid #29425c;
  border-radius: 7px;
  box-sizing: border-box;
  outline: none;
}

.kwai-s10-field input:focus,
.kwai-s10-field select:focus {
  border-color: #3b82f6;
}

.kwai-s10-feedback {
  min-height: 18px;
  margin-top: 12px;
  font-size: 12px;
  color: #9eb0c2;
}

.kwai-s10-feedback.success {
  color: #52d39a;
}

.kwai-s10-feedback.error {
  color: #ff7b7b;
}

@media (max-width: 900px) {
  .kwai-s10-grid {
    grid-template-columns: 1fr;
  }
}

/* S10C — ajuste exclusivo de proporção do card de teste Kwai */
@media (min-width: 901px) {
  #page-kwai .kwai-s10-grid {
    align-items: stretch;
  }

  #page-kwai .kwai-s10-left,
  #page-kwai .kwai-s10-right {
    display: flex;
  }

  #page-kwai .kwai-s10-left > .panel,
  #page-kwai .kwai-s10-right > .kwai-s10-test-card {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  #page-kwai .kwai-s10-test-card {
    padding: 18px;
  }

  #page-kwai .kwai-s10-head {
    margin-bottom: 14px;
  }

  #page-kwai .kwai-s10-field {
    margin-bottom: 11px;
  }

  #page-kwai .kwai-s10-field input,
  #page-kwai .kwai-s10-field select {
    min-height: 38px;
  }

  #page-kwai .kwai-s10-feedback:empty {
    display: none;
  }
}

