.account-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin: 18px 0;
  background: #f6f8f7;
  border: 1px solid #e4ebe7;
  border-radius: 9px;
}

.account-state strong,
.account-state small {
  display: block;
}

.account-state small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.account-switch {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.account-switch .text-button {
  color: var(--blue);
}

.auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--faint); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--line); }
.google-auth-button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--panel-hi); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.google-auth-button:hover { border-color: rgba(147, 159, 255, .65); background: rgba(147, 159, 255, .1); }
.google-auth-button span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 900; font-family: Arial, sans-serif; }

.auth-gate {
  min-height: 100vh;
  padding: 34px clamp(24px, 6vw, 90px);
  background: radial-gradient(circle at 82% 10%, rgba(103, 116, 248, .22) 0, transparent 31%), radial-gradient(circle at 12% 88%, rgba(69, 214, 166, .10) 0, transparent 27%), #080d18;
  display: flex;
  flex-direction: column;
}

.auth-gate-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 760; letter-spacing: -.8px; color: #f4f7ff; }
.auth-gate-card { width: min(560px, 100%); margin: auto; text-align: center; }
.auth-gate-orb { width: 58px; height: 58px; margin: 0 auto 21px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(145deg, #8d9aff, #6475f4); color: white; font-size: 25px; box-shadow: 0 15px 32px rgba(80, 96, 230, .32); }
.auth-gate h1 { max-width: 530px; margin: 0 auto; font-size: clamp(36px, 5vw, 54px); line-height: 1.03; letter-spacing: -2.4px; }
.auth-gate h1 { color: #f4f7ff; }
.auth-gate-copy { max-width: 440px; margin: 18px auto 25px; color: #9eabc0; font-size: 15px; line-height: 1.55; }
.auth-gate-actions { display: flex; justify-content: center; gap: 10px; }
.auth-gate-actions button { min-width: 142px; }
.auth-gate-note { margin: 17px 0 0; color: #71809a; font-size: 11px; }
.auth-gate-footer { margin: 0; text-align: center; color: #6f7f99; font-size: 11px; }
.is-authenticated .auth-gate { display: none; }
body:not(.is-authenticated) .app-shell { display: none; }

@media (max-width: 520px) {
  .auth-gate { padding: 25px 20px; }
  .auth-gate-actions { flex-direction: column; align-items: stretch; }
  .auth-gate-actions button { width: 100%; }
}

/* Phase 7 — sign-in belongs to the same dark workspace. */
.auth-gate { background: var(--ink) !important; padding: 28px clamp(20px, 5vw, 72px) !important; }
.auth-gate-brand { color: var(--text) !important; font-family: var(--font-ui); }
.auth-gate-card { width: min(500px, 100%) !important; text-align: left !important; padding: 0 !important; }
.auth-gate-orb { width: 42px !important; height: 42px !important; margin: 0 0 var(--space-5) !important; border-radius: var(--radius-control) !important; background: var(--panel-hi) !important; box-shadow: none !important; color: var(--warn) !important; }
.auth-gate h1 { margin: 0 !important; color: var(--text) !important; font-size: clamp(30px, 4vw, 42px) !important; letter-spacing: -.035em !important; }
.auth-gate-copy { margin: var(--space-4) 0 var(--space-5) !important; color: var(--muted) !important; }.auth-gate-actions{justify-content:flex-start!important}.auth-gate-note{text-align:left!important;color:var(--faint)!important}.auth-gate-footer{color:var(--faint)!important}

/* Daymark entry experience */
.auth-gate { min-height: 100svh; padding: 28px clamp(22px, 5.4vw, 92px) 24px !important; background: radial-gradient(ellipse 48% 55% at 18% 66%, rgba(79, 134, 198, .13), transparent 70%), radial-gradient(ellipse 42% 50% at 88% 14%, rgba(124, 124, 240, .19), transparent 74%), var(--ink) !important; }
.auth-gate::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .34; background-image: linear-gradient(rgba(159, 176, 202, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 176, 202, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000, transparent 86%); }
.auth-gate-header, .auth-gate-layout, .auth-gate-footer { position: relative; z-index: 1; width: min(1180px, 100%); margin-inline: auto; }
.auth-gate-header { display: flex; align-items: center; justify-content: space-between; }
.auth-gate-header > p { margin: 0; color: var(--faint); font: 600 10px/1 var(--font-data); letter-spacing: .08em; text-transform: uppercase; }
.auth-gate-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: clamp(40px, 9vw, 150px); align-items: center; padding: clamp(52px, 11vh, 120px) 0 56px; }
.auth-gate-intro { max-width: 620px; }
.auth-gate-intro h1 { max-width: none; font-size: clamp(42px, 5.25vw, 76px) !important; line-height: .98; letter-spacing: -.065em !important; }
.auth-gate-intro .auth-gate-copy { max-width: 480px; font-size: 16px; }
.auth-gate-proof { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; color: #c9d5e8; font-size: 12px; font-weight: 600; }
.auth-gate-proof span { display: inline-flex; align-items: center; gap: 7px; }
.auth-gate-proof i { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid rgba(117, 228, 191, .36); border-radius: 50%; color: #75e4bf; font-style: normal; font-size: 11px; }
.auth-gate-card { width: 100% !important; max-width: 455px; justify-self: end; padding: clamp(27px, 3.2vw, 40px) !important; border: 1px solid rgba(160, 178, 209, .18); border-radius: 20px; background: linear-gradient(150deg, rgba(25, 36, 55, .95), rgba(14, 22, 35, .96)); box-shadow: 0 32px 100px rgba(1, 5, 15, .42), inset 0 1px rgba(255, 255, 255, .035); }
.auth-gate-orb { margin: 0 0 22px !important; width: 44px !important; height: 44px !important; border-radius: 13px !important; color: #bbc3ff !important; background: linear-gradient(145deg, rgba(138, 151, 255, .25), rgba(99, 116, 237, .16)) !important; border: 1px solid rgba(151, 163, 255, .2); }
.auth-card-kicker, .account-auth-kicker { margin: 0 0 9px; color: var(--faint); font: 600 10px/1 var(--font-data); letter-spacing: .1em; }
.auth-gate-card h2 { margin: 0; color: var(--text); font-size: clamp(25px, 3vw, 32px); letter-spacing: -.05em; }
.auth-gate-card > p:not(.auth-card-kicker):not(.auth-gate-note) { margin: 12px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-gate-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.auth-gate-actions button { min-width: 0; }
.auth-gate-actions .quick-add { display: flex; align-items: center; justify-content: center; gap: 9px; }
.auth-gate-note { display: flex; align-items: center; gap: 7px; margin: 21px 0 0 !important; font-size: 11px; }
.auth-gate-note > span { color: #8c9aff; }
.auth-gate-footer { font: 500 10px/1.2 var(--font-data); letter-spacing: .04em; text-transform: uppercase; }

.modal:has(.account-auth) { width: min(430px, 100%); padding: 34px; border-radius: 19px; background: var(--panel) !important; border-color: var(--line) !important; }
.modal:has(.account-auth)::before { display: none; }
.account-auth { position: relative; }
.account-auth-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 19px; border-radius: 11px; color: var(--accent); background: var(--accent-muted); border: 1px solid var(--line); }
.account-auth h2 { color: var(--text); font-size: 27px; letter-spacing: -.055em; }
.account-auth-copy { margin-bottom: 24px !important; }
.account-auth .google-auth-button { min-height: 43px; border-color: var(--line); background: var(--panel-hi); font-size: 12px; }
.account-auth .google-auth-button:hover { border-color: var(--accent); background: var(--accent-muted); }
.account-auth .auth-divider { margin: 22px 0 18px; font-size: 9px; letter-spacing: .065em; text-transform: uppercase; }
.account-auth .form-field { margin: 14px 0; }
.account-auth .form-field span { color: var(--muted); font-size: 10px; letter-spacing: .035em; text-transform: uppercase; }
.account-auth .form-field input { height: 43px; border-radius: 9px; padding: 10px 12px; }
.account-auth .modal-actions { display: block; margin-top: 21px; }
.account-auth .modal-actions .quick-add { display: flex; width: 100%; min-height: 43px; justify-content: center; gap: 8px; }
.account-auth .account-switch { margin: 19px 0 0; text-align: center; }
.account-auth .account-auth-security { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--faint) !important; font-size: 10px; }
.account-auth-security span { margin-right: 4px; color: var(--accent); }

@media (max-width: 760px) { .auth-gate-header > p { display: none; } .auth-gate-layout { grid-template-columns: 1fr; gap: 34px; padding: 54px 0 38px; } .auth-gate-card { justify-self: start; max-width: 520px; } .auth-gate-intro h1 { font-size: clamp(42px, 12vw, 60px) !important; } }
@media (max-width: 480px) { .auth-gate { padding: 22px 18px !important; } .auth-gate-layout { padding-top: 46px; } .auth-gate-card { padding: 26px !important; border-radius: 16px; } .auth-gate-actions { grid-template-columns: 1fr; } .auth-gate-actions .outline-button { min-height: 42px; } .auth-gate-proof { display: grid; gap: 10px; } .modal:has(.account-auth) { padding: 27px 22px; } }

/* Split sign-in experience */
.auth-gate { display: block; overflow: hidden; padding: 0 !important; background: #1785e9 !important; }
.auth-gate::before { position: absolute; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); mask-image: none; }
.auth-gate-header { position: absolute; top: 46px; left: clamp(34px, 5.5vw, 94px); z-index: 4; width: auto; margin: 0; }
.auth-gate-brand { color: #fff !important; font-size: 23px; }
.auth-gate-brand .brand-mark { filter: brightness(0) invert(1); }
.auth-gate-header > p, .auth-gate-footer { display: none; }
.auth-gate-layout { display: grid; grid-template-columns: minmax(0, 58%) minmax(410px, 42%); width: 100%; max-width: none; min-height: 100svh; margin: 0; padding: 0; gap: 0; }
.auth-gate-intro { position: relative; display: flex; align-items: center; max-width: none; min-height: 100%; padding: clamp(140px, 18vh, 190px) clamp(38px, 6vw, 102px) 94px; overflow: hidden; background: radial-gradient(circle at 83% 20%, rgba(120, 204, 255, .5), transparent 33%), linear-gradient(135deg, #1460bf, #1d98ef 68%, #5bbdf3); }
.auth-gate-intro::after { content: ''; position: absolute; z-index: 0; width: 510px; height: 510px; right: -300px; bottom: -264px; border: 1px solid rgba(255,255,255,.21); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.04), 0 0 0 96px rgba(255,255,255,.025); }
.auth-showcase { position: relative; z-index: 1; width: min(610px, 100%); min-height: 472px; }
.auth-feature-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(250px, 1fr) minmax(190px, .77fr); gap: clamp(26px, 4vw, 64px); align-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .65s ease, transform .65s ease; }
.auth-feature-slide.is-active { position: relative; opacity: 1; transform: translateY(0); pointer-events: auto; }
.feature-copy .eyebrow { color: rgba(233, 247, 255, .82); letter-spacing: .12em; }
.feature-copy h1 { margin: 13px 0 20px !important; color: #fff !important; max-width: 450px; font-size: clamp(39px, 4.3vw, 63px) !important; line-height: 1.02 !important; letter-spacing: -.062em !important; }
.feature-copy p:not(.eyebrow) { max-width: 390px; margin: 0; color: rgba(239, 249, 255, .88); font-size: 15px; line-height: 1.55; }
.feature-preview { align-self: center; width: 100%; min-height: 300px; padding: 17px; border: 1px solid rgba(255,255,255,.25); border-radius: 19px; color: #fff; background: rgba(20, 116, 207, .26); box-shadow: 0 17px 45px rgba(15, 80, 155, .2), inset 0 1px rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.preview-header, .radar-head, .study-preview-top { display: flex; align-items: center; justify-content: space-between; color: rgba(243, 250, 255, .8); font: 600 9px/1 var(--font-data); letter-spacing: .08em; text-transform: uppercase; }
.preview-header b, .radar-head b, .study-preview-top b { color: #fff; font: 700 10px/1 var(--font-ui); letter-spacing: 0; text-transform: none; }
.preview-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin: 21px 0 10px; border-bottom: 1px solid rgba(255,255,255,.18); }
.preview-grid i { padding-bottom: 7px; color: rgba(236,247,255,.65); font: 600 8px var(--font-data); font-style: normal; text-align: center; }
.preview-event { display: grid; gap: 4px; margin: 9px 0; padding: 10px; border-radius: 8px; font-size: 10px; }
.preview-event b { font-size: 11px; }.preview-event span { opacity: .75; font-size: 9px; }.stats-event-preview { background: rgba(84, 190, 255, .34); border-left: 3px solid #c5efff; }.lit-event-preview { background: rgba(141, 107, 236, .34); border-left: 3px solid #e0d3ff; }
.preview-task { display: grid; gap: 4px; margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.17); }.preview-task span { color: #ffe5a4; font: 600 8px var(--font-data); text-transform: uppercase; }.preview-task b { font-size: 11px; }
.study-preview { padding: 22px; background: linear-gradient(150deg, rgba(77, 72, 191, .45), rgba(12, 106, 199, .24)); }.study-preview h3 { margin: 38px 0 7px; font-size: 18px; letter-spacing: -.04em; }.study-preview p { margin: 0; color: rgba(243,248,255,.72); font-size: 10px; }.study-progress { margin: 27px 0 20px; }.study-progress i { display: block; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.17); }.study-progress em { display: block; width: 62%; height: 100%; border-radius: inherit; background: #aee3ff; }.study-progress span { display: block; margin-top: 8px; color: #dbefff; font-size: 9px; }.study-tool-row { display: grid; gap: 7px; }.study-tool-row span { padding: 10px; border-radius: 8px; background: rgba(255,255,255,.1); color: #f3f8ff; font-size: 10px; }
.radar-preview { display: grid; align-content: start; gap: 11px; padding: 21px; }.radar-item { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 9px; background: rgba(255,255,255,.09); }.radar-item > i { width: 8px; height: 8px; border-radius: 50%; }.radar-item div { display: grid; gap: 3px; }.radar-item b { font-size: 11px; }.radar-item span { color: rgba(245,250,255,.7); font-size: 9px; }.radar-item.urgent > i { background: #ff8f8a; }.radar-item.soon > i { background: #ffd47c; }.radar-item.start > i { background: #7ce0ba; }
.auth-showcase-controls { position: absolute; z-index: 2; bottom: 18px; left: 0; display: flex; gap: 8px; }.auth-showcase-controls button { width: 26px; height: 3px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.34); cursor: pointer; }.auth-showcase-controls button.is-active { width: 46px; background: #fff; }
.auth-gate-card { display: flex; flex-direction: column; justify-content: center; justify-self: stretch; max-width: none; min-height: 100%; padding: clamp(90px, 15vh, 156px) clamp(40px, 8vw, 160px) 60px !important; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.auth-gate-card h2 { color: #20232b; font-size: 31px; letter-spacing: -.055em; }.auth-card-kicker { color: #1888e6; }.auth-gate-card > p:not(.auth-card-kicker):not(.auth-gate-note) { color: #8b8e96; font-size: 14px; }.auth-gate-orb { display: none; }
.auth-gate-form { margin-top: 27px; }.auth-gate-form > label { display: grid; gap: 8px; margin-bottom: 17px; color: #34363d; font-size: 12px; font-weight: 700; }.auth-gate-form input[type="email"], .auth-gate-form input[type="password"] { height: 52px; padding: 0 15px; border: 1px solid #eff0f2; border-radius: 9px; outline: 0; background: #f4f5f6; color: #272a31; font: 500 14px var(--font-ui); }.auth-gate-form input:focus { border-color: #2496ed; background: #fff; box-shadow: 0 0 0 3px rgba(23,133,233,.11); }
.auth-form-options { display: flex; justify-content: space-between; margin: 0 0 22px; }.remember-option { display: flex; align-items: center; gap: 8px; color: #96999f; font-size: 11px; font-weight: 600; }.remember-option input { accent-color: #1689e7; }.auth-gate-form .quick-add { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 54px; border-radius: 12px; background: linear-gradient(100deg, #0099f1, #2775d8); box-shadow: 0 12px 22px rgba(20, 132, 224, .19); }
.auth-gate-card .auth-divider { margin: 28px 0 23px; color: #a5a7ad; font-size: 10px; }.auth-gate-card .auth-divider::before, .auth-gate-card .auth-divider::after { background: #e7e9eb; }.gate-google-button { height: 51px; border-color: #e4e6e9; border-radius: 10px; background: #fff; color: #35373b; font-size: 13px; }.gate-google-button:hover { border-color: #a6ccef; background: #f7fbff; }.auth-gate-note { display: block; margin-top: 28px !important; text-align: center !important; color: #989ba2 !important; font-size: 11px; }.auth-gate-note .text-button { color: #1589e8; font-weight: 700; }
@media (max-width: 900px) { .auth-gate-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, .87fr); }.auth-feature-slide { grid-template-columns: 1fr; }.feature-preview { display: none; }.auth-showcase { min-height: 310px; }.auth-gate-card { padding-inline: clamp(34px, 7vw, 80px) !important; } }
@media (max-width: 680px) { .auth-gate { overflow: auto; }.auth-gate-header { top: 24px; left: 26px; }.auth-gate-layout { display: block; min-height: 0; }.auth-gate-intro { min-height: 330px; padding: 125px 26px 55px; }.auth-showcase { min-height: 170px; }.feature-copy h1 { font-size: 38px !important; }.feature-copy p:not(.eyebrow), .auth-showcase-controls { display: none; }.auth-gate-card { min-height: auto; padding: 48px 26px 42px !important; }.auth-gate-card h2 { font-size: 27px; } }

/* Monochrome study portal — dark showcase, quiet sign-in. */
.auth-gate { background: #0a0a0a !important; }.auth-gate::before { display: none; }
.auth-gate-header { left: clamp(28px, 4.5vw, 76px); }.auth-gate-brand { color: #161616 !important; }.auth-gate-brand .brand-mark { filter: none; }
.auth-gate-layout { grid-template-columns: minmax(350px, 37%) minmax(0, 63%); background: #fff; }.auth-gate-card { grid-column: 1; grid-row: 1; align-items: stretch; padding: clamp(106px, 17vh, 168px) clamp(30px, 4.3vw, 74px) 60px !important; background: #fff; }.auth-gate-intro { grid-column: 2; grid-row: 1; padding: clamp(110px, 14vh, 152px) clamp(42px, 6.4vw, 132px) 70px; background: radial-gradient(circle at 77% 32%, #2b2b2b, transparent 36%), #0b0b0b; }.auth-gate-intro::after { border-color: rgba(255,255,255,.13); box-shadow: 0 0 0 58px rgba(255,255,255,.025), 0 0 0 116px rgba(255,255,255,.014); }
.auth-showcase { width: min(970px, 100%); min-height: min(610px, 68vh); }.auth-feature-slide { grid-template-columns: minmax(230px, .68fr) minmax(400px, 1.45fr); gap: clamp(32px, 5vw, 96px); transition: opacity .95s cubic-bezier(.2,.75,.25,1), transform .95s cubic-bezier(.2,.75,.25,1), filter .95s ease; transform: translate3d(28px, 0, 0) scale(.975); filter: blur(3px); }.auth-feature-slide.is-active { transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }.feature-copy h1 { max-width: 360px; font-size: clamp(39px, 4.3vw, 67px) !important; }.feature-copy .eyebrow { color: #a8a8a8; }.feature-copy p:not(.eyebrow) { color: #c1c1c1; }.feature-preview { min-height: 470px; padding: clamp(22px, 2.2vw, 34px); border-radius: 25px; border-color: #454545; background: linear-gradient(145deg, #242424, #151515); box-shadow: 0 32px 80px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.07); }.preview-header, .radar-head, .study-preview-top { font-size: 11px; color: #a3a3a3; }.preview-header b, .radar-head b, .study-preview-top b { color: #fff; font-size: 12px; }.preview-grid { margin: 31px 0 15px; }.preview-grid i { padding-bottom: 11px; font-size: 10px; color: #8e8e8e; }.preview-event { margin: 13px 0; padding: 16px; border-radius: 11px; font-size: 13px; }.preview-event b { font-size: 15px; }.preview-event span { font-size: 11px; }.stats-event-preview, .lit-event-preview { border-left-color: #f5f5f5; background: #2c2c2c; }.preview-task { margin-top: 24px; padding-top: 19px; }.preview-task span { color: #a8a8a8; font-size: 10px; }.preview-task b { font-size: 15px; }.study-preview { background: linear-gradient(145deg, #252525, #131313); }.study-preview h3 { margin: 72px 0 10px; font-size: clamp(21px, 2vw, 30px); }.study-preview p { font-size: 13px; }.study-progress { margin: 44px 0 30px; }.study-progress i { height: 7px; }.study-progress em { background: #fff; }.study-progress span { font-size: 11px; color: #d2d2d2; }.study-tool-row { grid-template-columns: 1fr 1fr; gap: 10px; }.study-tool-row span { padding: 16px 12px; font-size: 12px; background: #303030; }.radar-preview { gap: 15px; padding: 31px; }.radar-item { padding: 19px 15px; border-radius: 12px; background: #292929; }.radar-item > i { width: 10px; height: 10px; background: #fff !important; }.radar-item b { font-size: 14px; }.radar-item span { font-size: 11px; color: #b6b6b6; }.auth-showcase-controls { bottom: 2px; }.auth-showcase-controls button { background: #575757; }.auth-showcase-controls button.is-active { background: #fff; }
.auth-card-kicker { color: #757575; }.auth-gate-card h2 { color: #151515; }.auth-gate-card > p:not(.auth-card-kicker):not(.auth-gate-note) { color: #757575; }.auth-gate-form input[type="email"], .auth-gate-form input[type="password"] { border-color: #e5e5e5; background: #f4f4f4; }.auth-gate-form input:focus { border-color: #151515; box-shadow: 0 0 0 3px rgba(0,0,0,.09); }.remember-option input { accent-color: #111; }.auth-gate-form .quick-add { background: #111; box-shadow: 0 12px 22px rgba(0,0,0,.16); }.auth-gate-form .quick-add:hover { background: #303030; }.auth-gate-card .auth-divider { color: #909090; }.gate-google-button { color: #1b1b1b; }.gate-google-button:hover { border-color: #777; background: #fafafa; }.auth-gate-note .text-button { color: #111; }
@media (max-width: 900px) { .auth-gate-layout { grid-template-columns: minmax(330px, 43%) minmax(0, 57%); }.auth-feature-slide { grid-template-columns: 1fr; }.feature-preview { min-height: 320px; }.feature-copy { display: none; }.auth-showcase { min-height: 390px; } }
@media (max-width: 680px) { .auth-gate-header { z-index: 5; }.auth-gate-brand { color: #fff !important; }.auth-gate-brand .brand-mark { filter: brightness(0) invert(1); }.auth-gate-layout { display: flex; flex-direction: column; }.auth-gate-card { order: 1; width: 100%; }.auth-gate-intro { order: 2; width: 100%; min-height: 320px; }.auth-showcase { min-height: 230px; }.feature-preview { min-height: 210px; }.auth-showcase-controls { bottom: -10px; } }

/* Account creation is a short, deliberate setup sequence. */
.modal:has(.signup-flow) { width: min(760px, calc(100vw - 32px)); max-height: min(820px, calc(100vh - 32px)); overflow: auto; padding: clamp(26px, 4vw, 44px); }
.signup-flow { max-width: 650px; margin: 0 auto; }
.signup-flow h2 { margin-top: 18px; }
.signup-progress { display: flex; gap: 6px; margin-top: 16px; }
.signup-progress span { height: 3px; flex: 1; border-radius: 99px; background: rgba(255,255,255,.16); }
.signup-progress span.is-active { background: var(--accent, #fff); }
.signup-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.signup-form-grid .signup-full { grid-column: 1 / -1; }
.signup-flow .form-field { margin: 10px 0; }
.signup-flow .form-field span { color: var(--muted); font-size: 11px; font-weight: 700; }
.signup-flow input, .signup-flow select { width: 100%; min-height: 44px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink); color: var(--text); font: 500 13px var(--font-ui); }
.signup-flow select { appearance: auto; }
.signup-signed-in { display: flex; justify-content: space-between; gap: 16px; padding: 11px 12px; margin: 12px 0 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-hi); font-size: 12px; }
.signup-signed-in span { color: var(--muted); }.signup-signed-in strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signup-consent { display: flex; align-items: flex-start; gap: 9px; margin: 15px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.signup-consent input { width: 15px; min-height: 15px; margin: 0; accent-color: var(--accent, #fff); }
.signup-consent input[aria-invalid="true"] { outline: 2px solid #ba4b35; outline-offset: 2px; }
.signup-consent-error { margin: -9px 0 16px; color: #ba4b35; font-size: 12px; line-height: 1.45; }
.auth-form-error { margin: 12px 0 -3px; padding: 10px 12px; border: 1px solid color-mix(in srgb, #ba4b35 48%, var(--line)); border-radius: 10px; background: color-mix(in srgb, #ba4b35 10%, var(--panel-hi)); color: var(--text); font-size: 12px; line-height: 1.45; }
.auth-form-error[hidden] { display: none; }
.signup-plan-flow { max-width: 720px; }
.plan-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.plan-choice { position: relative; display: flex; flex-direction: column; min-height: 365px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-hi); }
.plan-choice.is-featured { border-color: var(--accent, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #fff) 35%, transparent); }
.plan-badge { position: absolute; top: -10px; right: 16px; padding: 5px 8px; border-radius: 99px; background: var(--accent, #fff); color: var(--accent-foreground, #111); font: 800 9px/1 var(--font-data); letter-spacing: .06em; }
.plan-label { margin: 0 0 7px; color: var(--muted); font: 700 10px/1 var(--font-data); letter-spacing: .1em; }
.plan-choice h3 { margin: 0; font-size: 31px; letter-spacing: -.055em; }.plan-choice h3 small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.plan-choice > div > p:last-child { min-height: 38px; margin: 9px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.plan-choice ul { display: grid; gap: 10px; margin: 11px 0 22px; padding: 0; list-style: none; color: var(--text); font-size: 12px; line-height: 1.35; }
.plan-choice li { position: relative; padding-left: 17px; }.plan-choice li::before { position: absolute; left: 0; content: '✓'; color: var(--accent, #fff); font-weight: 800; }
.plan-choice button { width: 100%; margin-top: auto; }
.pro-plan-actions { display: grid; gap: 8px; margin-top: auto; }
.pro-plan-actions button { margin-top: 0; }
@media (max-width: 560px) { .signup-form-grid, .plan-choice-grid { grid-template-columns: 1fr; }.signup-flow .signup-full { grid-column: auto; }.plan-choice { min-height: 0; }.plan-choice > div > p:last-child { min-height: 0; } }

/* Signup lives above the app shell, so it needs the same token-based surface
   treatment instead of inheriting the retired indigo modal styling. */
.modal-backdrop:has(.signup-flow) { background: rgba(0, 0, 0, .7); }
.modal:has(.signup-flow) { background: var(--panel) !important; border: 1px solid var(--line); color: var(--text); box-shadow: 0 28px 80px rgba(0, 0, 0, .42); }
.modal:has(.signup-flow) .modal-close { background: var(--panel-hi); color: var(--muted); }
.modal:has(.signup-flow) h2 { color: var(--text); }
.modal:has(.signup-flow) > p { color: var(--muted); }
.signup-progress span { background: var(--line); }
.signup-flow input, .signup-flow select { background: var(--ink); border-color: var(--line); color: var(--text); }
.signup-flow input:focus, .signup-flow select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }
.signup-signed-in, .plan-choice { background: var(--panel-hi); border-color: var(--line); }
.plan-choice.is-featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-muted); }
.plan-badge { background: var(--accent); color: var(--accent-foreground); }
.plan-choice li::before { color: var(--accent); }
.signup-consent input { accent-color: var(--accent); }
.signup-consent a { color: var(--accent); }

/* Account setup is part of the product shell, not a separate indigo surface. */
.modal:has(.account-auth) { background: var(--panel) !important; border-color: var(--line) !important; }
.modal:has(.account-auth)::before { display: none; }
.account-auth-kicker { color: var(--faint); }
.account-auth .form-field span { color: var(--muted); }
.account-auth .google-auth-button { border-color: var(--line); background: var(--panel-hi); color: var(--text); }
.account-auth .google-auth-button:hover { border-color: var(--accent); background: var(--accent-muted); }
.account-auth-security { border-top-color: var(--line) !important; }
.account-auth-security span, .account-auth .account-switch .text-button { color: var(--accent); }

/* Keep account creation visually continuous with the public, light Daymark site. */
body.route-signup .modal-backdrop { background:rgba(24,32,33,.28); }
body.route-signup .modal:has(.signup-flow) { background:#fffdf8!important; border-color:#dfd8cb!important; color:#182021!important; box-shadow:0 28px 80px rgba(24,32,33,.18)!important; }
body.route-signup .modal:has(.signup-flow) .signup-progress span { background:#dfd8cb!important; }
body.route-signup .modal:has(.signup-flow) .signup-progress span.is-active { background:#225d78!important; }
body.route-signup .modal:has(.signup-flow) .signup-flow input,body.route-signup .modal:has(.signup-flow) .signup-flow select { background:#f5f2eb!important; border-color:#dfd8cb!important; color:#182021!important; }
body.route-signup .modal:has(.signup-flow) .signup-flow input:focus,body.route-signup .modal:has(.signup-flow) .signup-flow select:focus { outline:none!important; border-color:#225d78!important; box-shadow:0 0 0 3px rgba(34,93,120,.16)!important; }
body.route-signup .modal:has(.signup-flow) .quick-add { background:#225d78!important; border-color:#225d78!important; color:#fff!important; }
body.route-signup .modal:has(.signup-flow) .quick-add:hover { background:#183f52!important; border-color:#183f52!important; }

/* Email verification remains part of account creation instead of dropping a
   student back at a blank sign-in page after they check their inbox. */
.email-code-flow { max-width: 420px; }
.email-code-field input { min-height: 58px !important; text-align: center; letter-spacing: .32em; font: 700 23px/1 var(--font-data); }
.email-code-help { margin: -2px 0 16px !important; color: var(--muted); font-size: 12px; line-height: 1.5; }
.device-trust-option { margin: 4px 0 0; }
.trusted-device-list { display: grid; gap: 10px; margin: 20px 0; }
.trusted-device-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--panel-hi); }
.trusted-device-list strong, .trusted-device-list small { display: block; }.trusted-device-list small { margin-top: 4px; color: var(--muted); font-size: 11px; }

/* The first-run tour is informative rather than decorative: the active
   destination is marked in navigation and the guide stays concise. */
.feature-tour { max-width: 420px; }.feature-tour-location { display: inline-flex; margin: 10px 0 3px; padding: 6px 8px; border-radius: 99px; background: var(--accent-muted); color: var(--accent); font: 700 10px/1 var(--font-data); letter-spacing: .05em; text-transform: uppercase; }
.feature-tour-steps { display: flex; gap: 5px; margin: 23px 0 4px; }.feature-tour-steps > span { height: 4px; flex: 1; border-radius: 99px; background: var(--line); }.feature-tour-steps > span.is-complete, .feature-tour-steps > span.is-active { background: var(--accent); }.nav-item.is-tour-target { outline: 2px solid var(--ring); outline-offset: 2px; background: var(--accent-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) { .email-code-field input { min-height: 54px !important; font-size: 21px; }.trusted-device-list article { align-items: flex-start; flex-direction: column; }.trusted-device-list article button { min-height: 40px; } }

/* Sign-in uses the same primary action treatment as the rest of Daymark. */
.auth-gate-form .quick-add { background: var(--action) !important; border-color: var(--action) !important; color: var(--accent-foreground) !important; }
.auth-gate-form .quick-add:hover { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; }

/* The account surface stays comfortable in one hand and avoids iOS zoom. */
@media (max-width: 680px) {
  .auth-gate { min-height: 100dvh; }
  .auth-gate-card { padding-bottom: calc(34px + env(safe-area-inset-bottom)) !important; }
  .auth-gate-form input[type="email"], .auth-gate-form input[type="password"] { min-height: 50px; font-size: 16px; }
  .gate-google-button, .auth-gate-form .quick-add { min-height: 50px; }
}
@media (max-width: 420px) {
  .auth-gate-header { left: 18px; }.auth-gate-intro { min-height: 260px; padding-inline: 18px; }.auth-gate-card { padding-inline: 18px !important; }
  .auth-showcase { min-height: 190px; }.feature-preview { min-height: 170px; }
}
