/* Base layout */
html, body { height: 100%; margin: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #111827; background: #f9fafb; }

.wrap { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 12px; box-sizing: border-box; }

/* Rows and cards */
.row { display: flex; gap: 12px; align-items: center; }

.card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }

/* Status container fills iframe space until ready */
.status-container { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
.status-content { display: flex; flex-direction: column; gap: 8px; align-items: center; }
#status { opacity: 0.9; font-size: 14px; }

/* User info */
#user-info { display: flex; gap: 16px; flex-wrap: wrap; }
.user-field { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.user-label { font-size: 12px; color: #6b7280; }
.user-value { font-size: 14px; color: #111827; }

/* Actions */
.actions { display: flex; gap: 10px; align-items: center; }
button { padding: 8px 14px; border-radius: 6px; border: 1px solid #d1d5db; background: #111827; color: white; cursor: pointer; }
button:disabled { background: #9ca3af; cursor: not-allowed; }
button.secondary { background: white; color: #111827; }

/* Iframe hidden until ready */
iframe { width: 100%; flex: 1; border: 1px solid #e5e7eb; background: white; border-radius: 8px; display: none; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
iframe.ready { display: block; }
