@font-face {
  font-family: "Google Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/src/fonts/google-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Google Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/src/fonts/google-sans-500.woff2") format("woff2");
}
html { font-size: 100%; }
body {
  margin: 0; padding: 0; background: #f8f9fa; font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 1rem; line-height: 1.5;
  min-height: 100vh; width: 100%; display: flex; box-sizing: border-box;
}
.auth-viewport-wrapper {
  display: flex; width: 100%; justify-content: center; align-items: center; min-height: 100vh;
}
#auth-view { display: none; }
.auth-card {
  background: #ffffff; padding: 40px; border-radius: 8px; border: 1px solid #dadce0;
  width: 100%; max-width: 400px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); text-align: center;
}
.auth-title { color: #1a73e8; margin-top: 0; }
.auth-tagline { color: #5f6368; font-size: 0.875rem; }
.native-login-link {
  background-color: #ffffff; color: #3c4043; border: 1px solid #dadce0; border-radius: 4px;
  padding: 12px 24px; font-size: 0.875rem; font-weight: 500; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px; transition: background-color 0.15s; margin-top: 16px;
}
.native-login-link:hover { background-color: #f8f9fa; border-color: #c3c3c3; }

/* app-navigation places its left panel and top bar in the first column and first row. */
.master-workspace-layout {
  --defie-nav-width: 272px;
  --defie-nav-blue: #f0f4f9;
  display: none; width: 100%; min-height: 100vh; box-sizing: border-box;
  background: var(--defie-nav-blue);
  grid-template-columns: var(--defie-nav-width) minmax(0, 1fr); grid-template-rows: 64px 1fr;
}
.main-viewport-pane {
  grid-column: 2; grid-row: 2; min-width: 0; box-sizing: border-box; background-color: #ffffff; width: auto;
  margin-right: 24px; border-radius: 24px 24px 0 0;
}
.welcome-panel { max-width: 720px; margin: 64px auto; padding: 0 32px; color: #202124; }
.welcome-panel h1 { margin: 0 0 12px; font-size: 2rem; font-weight: 400; line-height: 1.25; }
.welcome-panel p { margin: 0; color: #5f6368; font-size: 1rem; line-height: 1.5; }
@media (max-width: 900px) {
  .master-workspace-layout { --defie-nav-width: 0px; }
  .main-viewport-pane { margin-right: 16px; margin-left: 16px; }
}

/* Form dropdown card. Width is set to the longest option; every row shares the same left inset. */
.defie-ddm {
  position: fixed;
  inset: auto;
  z-index: 80;
  box-sizing: border-box;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  box-shadow: 0 1px 3px rgb(60 64 67 / 30%), 0 4px 8px 3px rgb(60 64 67 / 15%);
  max-height: min(320px, calc(100vh - 16px));
  overflow: auto;
}
.defie-ddm button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #202124;
  font: 400 1rem "Google Sans", Roboto, Arial, sans-serif;
  line-height: 20px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.defie-ddm button[aria-selected="true"],
.defie-ddm button[data-active="true"] {
  background: #e8f0fe;
}
.defie-ddm button:focus { outline: none; }
