/* Mirrors frontend/src/monitor-quick-submit.css (+ lobby panel chrome). */

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: #132c46;
  background: #f4f7f9;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.tip-page { min-height: 100vh; }
.tip-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px max(18px, calc((100vw - 720px) / 2));
  border-bottom: 1px solid #dce5eb;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}
.tip-brand {
  color: #102a43;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.04em;
}
.tip-header > span:last-child {
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
}

.tip-shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.tip-panel {
  padding: 20px;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  background: white;
}

.quick-submit-inline { display: grid; gap: 0; padding-top: 2px; }
.quick-submit-inline-heading { margin-bottom: 2px; }
.tip-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.tip-live-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 10px;
  border: 1px solid #cce6e3;
  border-radius: 8px;
  color: #0f766e;
  background: #eff9f7;
}
.tip-live-stat i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.tip-live-stat strong {
  display: block;
  color: #173751;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.04em;
}
.tip-live-stat small {
  display: block;
  margin-top: 3px;
  color: #597e7b;
  font-size: 9px;
  white-space: nowrap;
}
.quick-submit-inline-heading p {
  margin: 0 0 5px;
  color: #0f766e;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
}
.quick-submit-inline-heading h1 {
  margin: 0;
  color: #193b58;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.quick-submit-inline-heading span {
  display: block;
  margin-top: 5px;
  color: #718492;
  font-size: 10px;
  line-height: 1.5;
}

.quick-submit-field,
.quick-submit-meta label { display: grid; gap: 5px; margin-top: 14px; }
.quick-submit-field > span,
.quick-submit-meta label > span {
  color: #6f8391;
  font-size: 10px;
  font-weight: 750;
}
.quick-submit-field textarea,
.quick-submit-field input,
.quick-submit-meta select {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d4dfe6;
  border-radius: 9px;
  color: #24415b;
  background: white;
  outline: none;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
}
.quick-submit-field textarea { min-height: 116px; resize: vertical; }
.quick-submit-field textarea:focus,
.quick-submit-field input:focus,
.quick-submit-meta select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}
.quick-submit-meta select:disabled {
  color: #718492;
  background: #f7fafb;
  cursor: not-allowed;
}

.quick-submit-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-submit-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #0f766e;
  background: #eff9f7;
  font-size: 10px;
}
.quick-submit-preview small { color: #597e7b; font-size: 9px; }

.quick-submit-notice {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 9px;
  color: #0f766e;
  background: #eff9f7;
  font-size: 9px;
  line-height: 1.5;
}
.quick-submit-notice.is-error {
  color: #b42318;
  background: #fff1ef;
}

.quick-submit-results {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  max-height: 220px;
  overflow: auto;
}
.quick-submit-results > strong { color: #31506a; font-size: 10px; }
.quick-submit-results > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 7px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f5f8fa;
}
.quick-submit-results > div > span {
  grid-row: span 2;
  align-self: start;
  padding: 3px 5px;
  border-radius: 999px;
  color: #0f766e;
  background: #e0f3ef;
  font-size: 9px;
  white-space: nowrap;
}
.quick-submit-results p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #31506a;
  font-size: 9px;
}
.quick-submit-results small {
  color: #7b8d9b;
  font-size: 9px;
  line-height: 1.4;
}

.quick-submit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.quick-submit-actions > button:first-child {
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #60788c;
  background: #f1f5f7;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  min-height: 34px;
}
.quick-submit-primary {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #0f766e;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}
.quick-submit-primary:hover:not(:disabled) { filter: brightness(1.05); }
.quick-submit-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.tip-note {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e1e9ee;
  color: #81909d;
  font-size: 10px;
  line-height: 1.5;
}
.tip-note strong { color: #4e6b80; font-size: 10px; }

@media (max-width: 640px) {
  .tip-shell { width: min(100% - 24px, 720px); padding-top: 22px; }
  .tip-panel { padding: 16px; border-radius: 10px; }
  .tip-heading-row { flex-direction: column; align-items: stretch; }
  .tip-live-stat { width: max-content; }
  .quick-submit-inline-heading h1 { font-size: 20px; }
  .quick-submit-inline-heading span { font-size: 12px; }
  .quick-submit-field > span,
  .quick-submit-meta label > span { font-size: 13px; }
  .quick-submit-field textarea,
  .quick-submit-field input,
  .quick-submit-meta select {
    min-height: 44px;
    font-size: 16px !important;
    line-height: 1.55;
  }
  .quick-submit-field textarea { min-height: 150px; }
  .quick-submit-preview,
  .quick-submit-preview small,
  .quick-submit-notice,
  .quick-submit-results > strong,
  .quick-submit-results p,
  .quick-submit-results small { font-size: 12px; line-height: 1.5; }
  .quick-submit-actions { flex-direction: column-reverse; }
  .quick-submit-actions > button:first-child,
  .quick-submit-primary {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }
  .quick-submit-meta { grid-template-columns: 1fr; }
}
