:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #1f2937;
  --border: #e5e7eb;
  --accent: #b7d53a;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow: hidden;
}

.app {
  display: grid;
  grid-template-rows: var(--header-height) 1fr;
  height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: #0f1115;
  border-bottom: 1px solid #1f2937;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #d6ea73);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  color: #eef3d1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.brand-subtitle {
  color: #9ca3af;
  font-size: 12px;
  margin-top: 4px;
}

.faq-home {
  min-width: 0;
  min-height: 0;
  padding: 18px;
}

.faq-shell {
  width: 100%;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .app {
    height: auto;
    min-height: 100vh;
  }

  .faq-home {
    padding: 12px;
  }

  .faq-shell {
    min-height: calc(100vh - 96px);
  }
}
