﻿:root {
  --cg-auth-ink: #1d1b18;
  --cg-auth-paper: #f7f2e8;
  --cg-auth-paper-strong: #fffdf7;
  --cg-auth-rule: #d7cbb9;
  --cg-auth-rust: #9b4f36;
  --cg-auth-muted: #6e665d;
}

.cg-auth-root [hidden] {
  display: none !important;
}

.cg-auth-root,
.cg-auth-root * {
  box-sizing: border-box;
}

.cg-auth-launcher {
  position: fixed;
  z-index: 2147483000;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1.2 Georgia, "Times New Roman", serif;
}

.cg-auth-pill {
  border: 1px solid rgba(83, 67, 48, 0.26);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 253, 247, 0.94);
  color: var(--cg-auth-ink);
  box-shadow: 0 10px 35px rgba(42, 31, 19, 0.14);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.cg-auth-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 38px rgba(42, 31, 19, 0.19);
}

.cg-auth-pill[data-kind="primary"] {
  border-color: var(--cg-auth-ink);
  background: var(--cg-auth-ink);
  color: #fffdf7;
}

.cg-auth-nudge {
  position: fixed;
  z-index: 2147482999;
  top: 66px;
  right: 18px;
  width: min(342px, calc(100vw - 36px));
  padding: 19px 18px 17px;
  border: 1px solid var(--cg-auth-rule);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 253, 247, 0.98),
    rgba(247, 242, 232, 0.98)
  );
  color: var(--cg-auth-ink);
  box-shadow: 0 24px 70px rgba(48, 33, 20, 0.2);
  font: 15px/1.5 Georgia, "Times New Roman", serif;
  animation: cgNudgeIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cg-auth-nudge::before {
  content: "✦";
  position: absolute;
  top: -12px;
  left: 18px;
  color: var(--cg-auth-rust);
  font-size: 22px;
  text-shadow: 0 2px 0 var(--cg-auth-paper);
}

.cg-auth-nudge h2 {
  margin: 0 26px 6px 0;
  color: var(--cg-auth-ink);
  font: 600 21px/1.1 "Dancing Script", Georgia, serif;
}

.cg-auth-nudge p {
  margin: 0 0 14px;
  color: var(--cg-auth-muted);
}

.cg-auth-nudge-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cg-auth-nudge button {
  font: 600 13px/1 Georgia, "Times New Roman", serif;
}

.cg-auth-nudge-close {
  position: absolute;
  top: 11px;
  right: 11px;
  border: 0;
  padding: 3px 7px;
  background: transparent;
  color: var(--cg-auth-muted);
  font-size: 20px;
  cursor: pointer;
}

.cg-auth-nudge-login {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--cg-auth-rust);
  color: #fff;
  cursor: pointer;
}

.cg-auth-nudge-later {
  border: 0;
  padding: 9px 5px;
  background: transparent;
  color: var(--cg-auth-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cg-auth-remaining {
  position: fixed;
  z-index: 2147482998;
  right: 18px;
  bottom: 18px;
  border: 1px solid var(--cg-auth-rule);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 253, 247, 0.94);
  color: var(--cg-auth-muted);
  box-shadow: 0 10px 35px rgba(42, 31, 19, 0.13);
  backdrop-filter: blur(14px);
  font: 600 12px/1.2 Georgia, "Times New Roman", serif;
  cursor: pointer;
}

.cg-auth-overlay {
  position: fixed;
  z-index: 2147483640;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(29, 27, 24, 0.58);
  backdrop-filter: blur(8px);
}

.cg-auth-overlay[data-open="true"] {
  display: flex;
  animation: cgFadeIn 0.2s ease both;
}

.cg-auth-dialog {
  position: relative;
  width: min(448px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 26px;
  background: var(--cg-auth-paper-strong);
  color: var(--cg-auth-ink);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
  font: 15px/1.5 Georgia, "Times New Roman", serif;
  animation: cgDialogIn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cg-auth-dialog::before {
  content: "";
  display: block;
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    var(--cg-auth-rust) 0 48px,
    #c69365 48px 68px,
    var(--cg-auth-ink) 68px 102px
  );
}

.cg-auth-dialog-inner {
  padding: 31px 32px 28px;
}

.cg-auth-eyebrow {
  margin: 0 0 8px;
  color: var(--cg-auth-rust);
  font: 700 11px/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cg-auth-dialog h2 {
  margin: 0 30px 9px 0;
  font: 600 35px/1 "Dancing Script", Georgia, serif;
}

.cg-auth-dialog-copy {
  margin: 0 0 22px;
  color: var(--cg-auth-muted);
}

.cg-auth-close {
  position: absolute;
  top: 19px;
  right: 18px;
  border: 1px solid var(--cg-auth-rule);
  border-radius: 999px;
  padding: 6px 9px;
  background: transparent;
  color: var(--cg-auth-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cg-auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--cg-auth-ink);
  border-radius: 12px;
  padding: 13px 16px;
  background: var(--cg-auth-ink);
  color: #fff;
  font: 700 14px/1 Georgia, "Times New Roman", serif;
  cursor: pointer;
}

.cg-auth-google-mark {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font: 700 13px Arial, sans-serif;
}

.cg-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 19px 0;
  color: #9a9186;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cg-auth-divider::before,
.cg-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cg-auth-rule);
}

.cg-auth-email {
  display: flex;
  gap: 8px;
}

.cg-auth-email input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--cg-auth-rule);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  color: var(--cg-auth-ink);
  font: 14px/1.2 Georgia, "Times New Roman", serif;
  outline: none;
}

.cg-auth-email input:focus {
  border-color: var(--cg-auth-rust);
  box-shadow: 0 0 0 3px rgba(155, 79, 54, 0.12);
}

.cg-auth-email button {
  border: 0;
  border-radius: 12px;
  padding: 12px 15px;
  background: var(--cg-auth-rust);
  color: #fff;
  font: 700 13px/1 Georgia, "Times New Roman", serif;
  white-space: nowrap;
  cursor: pointer;
}

.cg-auth-email button:disabled,
.cg-auth-google:disabled {
  opacity: 0.58;
  cursor: wait;
}

.cg-auth-status {
  min-height: 21px;
  margin: 11px 0 0;
  color: var(--cg-auth-muted);
  font-size: 13px;
}

.cg-auth-status[data-error="true"] {
  color: #9f2f25;
}

.cg-auth-fineprint {
  margin: 18px 0 0;
  color: #8b8278;
  font-size: 11px;
  line-height: 1.45;
}

@keyframes cgNudgeIn {
  from {
    opacity: 0;
    transform: translateY(-9px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cgDialogIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .cg-auth-launcher {
    top: 10px;
    right: 10px;
  }

  .cg-auth-nudge {
    top: 58px;
    right: 10px;
    width: calc(100vw - 20px);
  }

  .cg-auth-remaining {
    right: 10px;
    bottom: 10px;
  }

  .cg-auth-dialog-inner {
    padding: 28px 22px 24px;
  }

  .cg-auth-dialog h2 {
    font-size: 31px;
  }

  .cg-auth-email {
    flex-direction: column;
  }

  .cg-auth-email button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cg-auth-nudge,
  .cg-auth-overlay,
  .cg-auth-dialog {
    animation: none !important;
  }

  .cg-auth-pill {
    transition: none;
  }
}

.cg-auth-pill,
.cg-auth-pill:visited {
  text-decoration: none;
}

button.cg-auth-pill {
  font: inherit;
}

.cg-auth-save,
.cg-auth-favorite {
  white-space: nowrap;
}