* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #111827;
  background: #f3f4f6;
}
.hidden { display: none !important; }
.muted { color: #6b7280; }
.small { font-size: 12px; }

.login-root {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 10px;
}
.login-card h1 { margin: 0; font-size: 22px; }
.login-card label { font-size: 14px; font-weight: 600; }
.login-card input {
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
}
.login-card button {
  margin-top: 8px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.error { color: #b91c1c; min-height: 20px; margin: 0; }
.hint {
  margin-top: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
}
.hint ul { margin: 8px 0 0 16px; padding: 0; }

.app-root {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
}
.sidebar {
  background: #111827;
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.nav-buttons {
  display: grid;
  gap: 8px;
}
.nav-buttons button,
.logout-btn {
  height: 38px;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
}
.nav-buttons button.active {
  background: #2563eb;
  border-color: #2563eb;
}
.logout-btn {
  margin-top: auto;
  background: #7f1d1d;
  border-color: #7f1d1d;
}

.main {
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}
.topbar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}
.identity-box {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
#identity-name {
  font-size: 13px;
  font-weight: 500;
}
#identity-meta {
  font-size: 12px;
}
.page-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}

.iframe-panel {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 52px 1fr;
  min-height: 72vh;
}
.iframe-toolbar {
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.iframe-toolbar button {
  height: 32px;
  border: none;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  padding: 0 10px;
}
#iframe-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4b5563;
  font-size: 13px;
}
#meeting-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 65vh;
}
