html, body { margin: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
  height: 48px;
  box-sizing: border-box;
}

header h1 {
  font-size: 13px;
  margin: 0;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

#filename {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
}

button {
  padding: 6px 14px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

button:hover { background: #f3f4f6; }

main {
  height: calc(100vh - 49px);
  position: relative;
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

#status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  padding: 24px;
  text-align: center;
  background: white;
}

#status[data-error="true"] {
  color: #b91c1c;
}

#status[hidden] { display: none; }
