:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #24292f;
  background: #f5f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.page-center {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  gap: 16px;
  margin-bottom: 24px;
}

.brand-header img {
  width: 120px;
  height: auto;
}

.brand-header > div {
  text-align: left;
  width: 100%;
}

.brand-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.brand-header p {
  margin: 0;
  color: #444;
}

.brand-subtitle {
  margin: 6px 0 12px;
  color: #3d5d26;
  font-size: 1rem;
  font-weight: 600;
}

h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.page-footer {
  max-width: 780px;
  margin: 24px auto 32px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: #6b6b6b;
  font-size: 0.95rem;
}

.page-footer img {
  height: 24px;
  width: auto;
}

p {
  margin: 0 0 24px;
  line-height: 1.6;
  color: #444;
}

.buttons-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

button {
  border: none;
  background: #15552B;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: #4d8c28;
}

.info-box {
  background: white;
  border: 1px solid #dde4ef;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
}

.log-panel {
  background: white;
  border: 1px solid #dde4ef;
  border-radius: 14px;
  overflow: hidden;
}

.log-header {
  background: #f0f4ff;
  padding: 12px 16px;
  font-weight: 600;
}

.log-body {
  padding: 16px;
  min-height: 120px;
  font-family:
    ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1a1a1a;
  white-space: pre-wrap;
}

.widget_container {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(18, 24, 38, 0.55);
  padding: 16px;
}

.widget_container.inline {
  position: static;
  inset: auto;
  z-index: 1;
  background: transparent;
  padding: 0;
}

.widget_container.inline .widget_card {
  width: 100%;
  max-width: 780px;
  margin: 0 auto 24px;
  min-height: 620px;
  height: auto;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid #dde4ef;
}

.widget_card {
  width: min(100%, 620px);
  min-height: 460px;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.widget_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f6f8ff;
  border-bottom: 1px solid #e2e8f0;
}

.widget_header h2 {
  margin: 0;
  font-size: 1rem;
}

.widget_header button {
  background: transparent;
  color: #1f6feb;
  padding: 8px 12px;
  border-radius: 10px;
}

.widget_card iframe {
  width: 100%;
  min-height: 560px;
  height: calc(100% - 54px);
  border: none;
}

@media (max-width: 680px) {
  .widget_card {
    height: 420px;
  }
}
