* { box-sizing: border-box; }
body { margin: 0; font-family: "Source Sans 3", sans-serif; background: #0e1628; color: #1a2744; }
.gate { min-height: 100vh; display: grid; place-items: center; background: #0e1628; }
.gate form { width: min(360px, 92vw); background: #fff; padding: 28px; text-align: center; }
.gate img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.gate h1 { font-size: 1.4rem; margin: 12px 0 4px; }
.gate p { color: #5c5566; margin: 0 0 16px; }
.gate input, aside input, aside textarea {
  width: 100%; padding: 10px; margin: 6px 0 12px; border: 1px solid #d8cfc0; font: inherit;
}
.gate button, aside button {
  width: 100%; padding: 11px; border: 0; background: #1a2744; color: #fff; font-weight: 700; cursor: pointer;
}
#app[hidden] { display: none !important; }
#app { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; height: 100vh; }
aside { background: #f6f1e6; overflow: auto; padding: 16px; border-right: 1px solid #d8cfc0; }
aside header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
aside header a { color: #8b1e2d; font-weight: 700; text-decoration: none; font-size: .9rem; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs button { width: auto; flex: 1; background: #d8cfc0; color: #1a2744; padding: 8px 6px; font-size: .8rem; }
.tabs button.on { background: #8b1e2d; color: #fff; }
label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5c5566; }
.hint { font-size: .85rem; color: #5c5566; }
.row { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: #fff; padding: 8px; margin-top: 8px; font-size: .85rem; }
.row button { width: auto; background: #8b1e2d; padding: 6px 10px; font-size: .75rem; }
.actions { position: sticky; bottom: 0; background: #f6f1e6; padding-top: 12px; }
button.secondary { background: #c9a227; color: #1a2744; margin-bottom: 10px; }
button.ghost { background: transparent; color: #5c5566; margin-top: 8px; }
iframe { width: 100%; height: 100%; border: 0; background: #fff; }
#bad { color: #8b1e2d; display: block; margin-top: 8px; }
@media (max-width: 800px) {
  #app { grid-template-columns: 1fr; }
  iframe { min-height: 50vh; }
}
