:root {
  color-scheme: dark;
  --bg: #070a12;
  --panel: rgba(12, 18, 34, .46);
  --panel-2: rgba(20, 29, 50, .42);
  --line: rgba(117, 139, 177, .26);
  --muted: #94a3b8;
  --text: #e5eefb;
  --blue: #38bdf8;
  --violet: #a78bfa;
  --pink: #f472b6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

body[data-theme="morning"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, .68);
  --panel-2: rgba(250, 250, 252, .62);
  --line: rgba(60, 60, 67, .16);
  --muted: #6e6e73;
  --text: #1d1d1f;
  --blue: #007aff;
  --violet: #5856d6;
  --pink: #d70065;
  --green: #248a3d;
  --amber: #b25000;
  --red: #d70015;
  --shadow: 0 18px 48px rgba(0, 0, 0, .09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(120deg, rgba(56,189,248,.06) 1px, transparent 1px),
    linear-gradient(40deg, rgba(167,139,250,.05) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(56, 189, 248, .20), transparent 34rem),
    radial-gradient(circle at top right, rgba(244, 114, 182, .15), transparent 30rem),
    var(--bg);
  background-size: 64px 64px, 78px 78px, auto, auto, auto;
  color: var(--text);
}
body[data-theme="morning"] {
  background:
    radial-gradient(circle at 12% -10%, rgba(0, 122, 255, .10), transparent 30rem),
    radial-gradient(circle at 88% -8%, rgba(175, 82, 222, .08), transparent 28rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 44%, #eeeeef 100%);
  background-size: auto, auto, auto;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 34px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 16%, rgba(251, 191, 36, .12), transparent 26rem),
    radial-gradient(circle at 50% 52%, rgba(56, 189, 248, .07), transparent 28rem),
    linear-gradient(135deg, #020817 0%, #06111f 58%, #02040c 100%);
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.landing-nav-actions { display: flex; gap: 8px; }
.nav-auth-btn {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(148,163,184,.20);
  border-radius: 10px;
  color: #e5eefb;
  background: transparent;
}
.nav-auth-btn.gold {
  color: #f8d477;
  border-color: rgba(251,191,36,.30);
}
.landing-command {
  min-height: calc(100vh - 116px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
}
.landing-chatbox {
  width: min(760px, 100%);
  border: 1px solid rgba(251,191,36,.16);
  border-radius: 22px;
  background: rgba(3, 8, 20, .68);
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.landing-chat-messages {
  min-height: 160px;
  max-height: 260px;
  overflow: auto;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.landing-chat-message {
  width: fit-content;
  max-width: min(520px, 100%);
  padding: 11px 13px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 15px;
  color: #e5eefb;
  background: rgba(15,23,42,.56);
}
.landing-chat-message.ai {
  color: #fff7d6;
  border-color: rgba(251,191,36,.22);
}
.landing-chat-message.user {
  justify-self: end;
  color: #dbeafe;
  border-color: rgba(56,189,248,.24);
}
.landing-chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding: 11px;
  border-top: 1px solid rgba(148,163,184,.12);
}
.landing-chat-input input {
  background: rgba(255,255,255,.04);
  border-color: rgba(148,163,184,.16);
}
.landing-chat-input button {
  width: 44px;
  border: 1px solid rgba(251,191,36,.28);
  border-radius: 13px;
  color: #f8d477;
  background: rgba(251,191,36,.10);
}
.landing-showcase {
  width: min(980px, 100%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.workspace-card {
  min-height: 42px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f8fafc;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 0 22px rgba(56,189,248,.05);
  backdrop-filter: blur(16px);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.workspace-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, .42);
  background: rgba(30, 41, 59, .58);
}
.workspace-card span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(251, 191, 36, .12);
  color: #f8d477;
}
.workspace-card strong {
  font-size: 12px;
  font-weight: 500;
}
.trial-demo-btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(251,191,36,.22);
  border-radius: 999px;
  color: #f8d477;
  background: rgba(251,191,36,.06);
  font-size: 12px;
}
.dashboard-preview {
  width: min(900px, 100%);
  margin-top: 10px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 20px;
  background: rgba(8,13,27,.50);
  overflow: hidden;
  backdrop-filter: blur(18px);
}
.preview-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148,163,184,.12);
  color: #dbeafe;
}
.preview-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f8d477;
}
.preview-topbar em {
  margin-left: auto;
  color: #34d399;
  font-style: normal;
  font-size: 12px;
}
.preview-grid {
  display: grid;
  grid-template-columns: .8fr 1.4fr .9fr;
  gap: 12px;
  padding: 14px;
}
.preview-panel {
  min-height: 132px;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 14px;
  background: rgba(2,6,23,.26);
}
.preview-panel p {
  color: #f8d477;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.preview-days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.preview-days i {
  height: 30px;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
}
.preview-days .hot { background: rgba(244,114,182,.28); }
.preview-days .gold { background: rgba(251,191,36,.28); }
.preview-row {
  margin-top: 8px;
  padding: 9px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 10px;
  color: #e5eefb;
  background: rgba(255,255,255,.06);
  animation: previewPulse 5.5s ease-in-out infinite;
}
.preview-row.order { animation-delay: 1.3s; }
.preview-row.remove { animation-delay: 2.6s; opacity: .55; }
.preview-row span {
  color: #f8d477;
  font-size: 12px;
}
.typing-preview {
  display: inline-block;
  max-width: 100%;
  color: #dbeafe;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1px solid #f8d477;
  animation: typingPreview 4.8s steps(42) infinite;
}
@keyframes previewPulse {
  0%, 100% { transform: translateY(0); opacity: .55; }
  35%, 60% { transform: translateY(-2px); opacity: 1; }
}
@keyframes typingPreview {
  0% { width: 0; }
  60%, 85% { width: 100%; }
  100% { width: 0; }
}
.auth-card, .panel, .game-card, .game-stage, .modal-card, .upcoming-banner {
  background: linear-gradient(180deg, rgba(18, 25, 45, .58), rgba(8, 13, 27, .34));
  border: 1px solid rgba(148, 163, 184, .14);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}
body[data-theme="morning"] .auth-card,
body[data-theme="morning"] .panel,
body[data-theme="morning"] .game-card,
body[data-theme="morning"] .game-stage,
body[data-theme="morning"] .modal-card,
body[data-theme="morning"] .upcoming-banner {
  background: rgba(255, 255, 255, .60);
  border-color: rgba(60, 60, 67, .14);
  box-shadow: none;
  color: var(--text);
}
.auth-card {
  width: min(940px, 100%);
  align-self: center;
  justify-self: center;
  border-radius: 18px;
  padding: 28px;
  scroll-margin-top: 24px;
}
.auth-route-card {
  width: min(620px, 100%);
  margin: 8vh auto 0;
  position: relative;
}
.auth-route-card .auth-copy {
  margin: 20px 0 14px;
}
.auth-route-card .auth-copy h2 {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.auth-route-card .auth-copy p {
  font-size: 12px;
}
.auth-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
}
.auth-screen .auth-card {
  max-width: 760px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .92), rgba(5, 10, 24, .86)),
    radial-gradient(circle at 0% 0%, rgba(251, 191, 36, .14), transparent 22rem);
  border-color: rgba(251, 191, 36, .22);
}
.auth-screen .animated-mondaily-logo b {
  color: #f8d477;
  border-color: rgba(251, 191, 36, .28);
  background: rgba(251, 191, 36, .10);
}
.auth-message {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 113, 133, .28);
  background: rgba(127, 29, 29, .16);
  color: #fecdd3;
  font-size: 13px;
}
.auth-message.info {
  color: #f8d477;
  background: rgba(251, 191, 36, .10);
  border-color: rgba(251, 191, 36, .24);
}
.forgot-link {
  margin: 12px auto 0;
  display: block;
  border: 0;
  background: transparent;
  color: #f8d477;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.google-auth-btn {
  width: 100%;
  min-height: 44px;
  margin: 0 0 14px;
  border: 1px solid rgba(251, 191, 36, .30);
  border-radius: 10px;
  color: #f8d477;
  background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(15,23,42,.22));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}
.google-auth-btn span {
  width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #1d1d1f;
  font-weight: 700;
}
.google-auth-btn:hover {
  border-color: rgba(251,191,36,.52);
  background: rgba(251,191,36,.16);
}
.brand-row { display: flex; align-items: center; gap: 13px; }
.brand-row.compact h1 { font-size: 24px; }
.brand-row.compact p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.mondaily-symbol {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(167, 139, 250, .42);
  background: radial-gradient(circle, rgba(56,189,248,.28), rgba(124,58,237,.14) 50%, rgba(2,6,23,.8));
  animation: symbolSpin 7s linear infinite;
}
.mondaily-symbol span {
  width: 17px; height: 17px;
  display: block;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #b975ff, #38bdf8);
  box-shadow: 0 0 20px rgba(56,189,248,.5);
}
@keyframes symbolSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes mondailyShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-mondaily-logo {
  letter-spacing: .18em;
  font-weight: 300;
  background: linear-gradient(90deg, #7a5af8, #b975ff, #38bdf8, #6366f1, #7a5af8);
  background-size: 300% 300%;
  animation: mondailyShimmer 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.animated-mondaily-logo b {
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(56,189,248,.32);
  background: rgba(56,189,248,.12);
  color: #67e8f9;
  font-size: 11px;
  letter-spacing: .14em;
  vertical-align: middle;
}
body[data-theme="morning"] .mondaily-symbol {
  border-color: rgba(60, 60, 67, .14);
  background: rgba(255,255,255,.34);
  box-shadow: none;
}
body[data-theme="morning"] .mondaily-symbol span {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #007aff 0%, #5856d6 52%, #af52de 100%);
  box-shadow: none;
}
body[data-theme="morning"] .animated-mondaily-logo {
  background: linear-gradient(90deg, #1d1d1f, #33333a, #0066cc, #5856d6, #1d1d1f);
  background-size: 260% 260%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body[data-theme="morning"] .animated-mondaily-logo b {
  background: rgba(0, 122, 255, .08);
  border-color: rgba(0, 122, 255, .18);
  color: #0066cc;
}
body[data-theme="morning"] .ai-mobile-toggle {
  background: rgba(255,255,255,.50);
  border-color: rgba(60,60,67,.14);
  box-shadow: none;
}
h1, h2, p { margin-top: 0; }
h1 { margin: 0; letter-spacing: .08em; text-transform: uppercase; font-size: 32px; }
h2 { margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.eyebrow { margin-bottom: 5px; color: var(--blue); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 650; }
.auth-copy { margin: 28px 0 18px; max-width: 660px; color: var(--muted); }
.compact-copy h2 { font-size: 17px; }
.compact-copy p { font-size: 13px; line-height: 1.5; }
.auth-tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 6, 23, .36);
  margin-bottom: 16px;
}
.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 9px;
}
.auth-tab.active {
  color: white;
  background: linear-gradient(135deg, rgba(56,189,248,.24), rgba(167,139,250,.22));
}
body[data-theme="morning"] .auth-tabs {
  background: rgba(255,255,255,.48);
  border-color: rgba(60,60,67,.14);
}
body[data-theme="morning"] .auth-tab.active {
  color: #1d1d1f;
  background: rgba(255,255,255,.82);
  box-shadow: 0 5px 14px rgba(0,0,0,.07);
}
body[data-theme="morning"] .login-code-hint {
  color: #248a3d;
  background: rgba(52,199,89,.10);
  border-color: rgba(52,199,89,.20);
}
.login-code-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(52,211,153,.24);
  border-radius: 12px;
  background: rgba(52,211,153,.08);
  color: #bbf7d0;
  font-size: 13px;
}
.google-btn, .primary, .ghost, .danger, .icon-btn, .role-card, .game-choice {
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(15, 23, 42, .34);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.google-btn:hover, .ghost:hover, .icon-btn:hover, .role-card:hover, .game-choice:hover { transform: translateY(-1px); border-color: rgba(56,189,248,.5); }
.google-btn { width: 100%; padding: 12px 14px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; }
.google-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.blue { background: #4285f4; } .red { background: #ea4335; } .yellow { background: #fbbc05; } .green { background: #34a853; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; margin: 18px 0; }
.divider:before, .divider:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  background: #0a0f1b;
  color: var(--text);
  outline: none;
  min-height: 44px;
}
body[data-theme="morning"] input,
body[data-theme="morning"] select,
body[data-theme="morning"] textarea {
  background-color: rgba(255, 255, 255, .64);
  border-color: rgba(60, 60, 67, .16);
  color: var(--text);
}
select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #93c5fd 50%) calc(100% - 16px) 50% / 7px 7px no-repeat,
    rgba(2, 6, 23, .26);
  color: #dbeafe;
}
select.select-high { border-color: rgba(244,63,94,.38); background-color: rgba(244,63,94,.08); color: #fecdd3; }
select.select-medium { border-color: rgba(245,158,11,.34); background-color: rgba(245,158,11,.08); color: #fde68a; }
select.select-low { border-color: rgba(16,185,129,.34); background-color: rgba(16,185,129,.08); color: #bbf7d0; }
select.select-normal { border-color: rgba(14,165,233,.30); background-color: rgba(14,165,233,.08); color: #bae6fd; }
body[data-theme="morning"] select.select-high { color: #be123c; background-color: #fff1f2; }
body[data-theme="morning"] select.select-medium { color: #92400e; background-color: #fffbeb; }
body[data-theme="morning"] select.select-low { color: #047857; background-color: #ecfdf5; }
body[data-theme="morning"] select.select-normal { color: #0369a1; background-color: #f0f9ff; }
textarea { min-height: 94px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56, 189, 248, .12); }
.role-picker { border: 0; padding: 0; margin: 18px 0 0; }
.role-picker legend { color: var(--muted); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.role-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.role-card { min-height: 96px; text-align: left; padding: 11px; display: grid; gap: 4px; border-radius: 12px; }
.role-card span { font-size: 23px; }
.role-card small { color: var(--muted); }
.role-card.active { border-color: var(--blue); background: rgba(56, 189, 248, .12); }
.auth-route-card .role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.auth-route-card .role-card {
  min-height: 62px;
  padding: 8px;
  gap: 2px;
  border-radius: 10px;
}
.auth-route-card .role-card span {
  font-size: 15px;
}
.auth-route-card .role-card strong {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
}
.auth-route-card .role-card small {
  font-size: 9px;
  font-weight: 300;
  line-height: 1.25;
}
.primary { background: rgba(59, 130, 246, .18); color: #dbeafe; border-color: rgba(96,165,250,.36); padding: 9px 13px; font-weight: 600; }
.full { width: 100%; margin-top: 18px; }
.ghost { padding: 9px 12px; color: #c4b5fd; border-color: rgba(167,139,250,.30); }
.danger { padding: 9px 12px; color: #fecdd3; border-color: rgba(251, 113, 133, .35); background: rgba(127, 29, 29, .16); }
.primary, .ghost, .danger, .small-btn { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.mini-action {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
  border-radius: 9px;
  box-shadow: none;
}
.mini-action span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
}
#tasksBtn { color: #c4b5fd; border-color: rgba(167,139,250,.30); background: rgba(167,139,250,.08); }
#tasksBtn span { background: rgba(167,139,250,.16); color: #ddd6fe; }
#chatBtn { color: #bfdbfe; border-color: rgba(96,165,250,.28); background: rgba(59,130,246,.07); }
#chatBtn span { background: rgba(96,165,250,.14); color: #bfdbfe; }
#breakBtn { color: #67e8f9; border-color: rgba(56,189,248,.24); background: rgba(56,189,248,.06); }
#breakBtn span { background: rgba(56,189,248,.14); color: #a5f3fc; }
#plansBtn { color: #f9a8d4; border-color: rgba(244,114,182,.26); background: rgba(244,114,182,.06); }
#plansBtn span { background: rgba(244,114,182,.14); color: #fbcfe8; }
#themeToggleBtn { color: #fde68a; border-color: rgba(251,191,36,.25); background: rgba(251,191,36,.07); }
#themeToggleBtn span { background: rgba(251,191,36,.13); color: #fde68a; }
#newAppointmentBtn {
  min-height: 38px;
  padding-inline: 14px;
  color: #ecfdf5;
  border-color: rgba(52,211,153,.42);
  background: linear-gradient(135deg, rgba(16,185,129,.28), rgba(59,130,246,.18));
  box-shadow: none;
}
#newAppointmentBtn span { background: rgba(52,211,153,.18); color: #bbf7d0; }
#logoutBtn { color: #fecdd3; border-color: rgba(251,113,133,.30); background: rgba(127,29,29,.12); }
#logoutBtn span { background: rgba(251,113,133,.13); color: #fecdd3; }
body[data-theme="morning"] #tasksBtn {
  color: #5856d6;
  border-color: rgba(88,86,214,.20);
  background: rgba(88,86,214,.075);
}
body[data-theme="morning"] #tasksBtn span { background: rgba(88,86,214,.12); color: #5856d6; }
body[data-theme="morning"] #chatBtn {
  color: #0066cc;
  border-color: rgba(0,122,255,.20);
  background: rgba(0,122,255,.075);
}
body[data-theme="morning"] #chatBtn span { background: rgba(0,122,255,.12); color: #0066cc; }
body[data-theme="morning"] #breakBtn {
  color: #007184;
  border-color: rgba(0,122,255,.18);
  background: rgba(90,200,250,.09);
}
body[data-theme="morning"] #breakBtn span { background: rgba(90,200,250,.16); color: #007184; }
body[data-theme="morning"] #plansBtn {
  color: #af52de;
  border-color: rgba(175,82,222,.20);
  background: rgba(175,82,222,.08);
}
body[data-theme="morning"] #plansBtn span { background: rgba(175,82,222,.13); color: #af52de; }
body[data-theme="morning"] #themeToggleBtn {
  color: #946200;
  border-color: rgba(255,149,0,.20);
  background: rgba(255,149,0,.09);
}
body[data-theme="morning"] #themeToggleBtn span { background: rgba(255,149,0,.14); color: #946200; }
body[data-theme="morning"] #newAppointmentBtn {
  color: #1d1d1f;
  border-color: rgba(52,199,89,.24);
  background: rgba(52,199,89,.10);
  box-shadow: none;
}
body[data-theme="morning"] #newAppointmentBtn span { background: rgba(52,199,89,.15); color: #248a3d; }
body[data-theme="morning"] #logoutBtn {
  color: #d70015;
  border-color: rgba(215,0,21,.18);
  background: rgba(255,59,48,.08);
}
body[data-theme="morning"] #logoutBtn span { background: rgba(255,59,48,.13); color: #d70015; }

.app-shell { width: min(1500px, 100%); margin: 0 auto; padding: 20px; padding-bottom: 118px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.trial-banner {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  border: 0;
  color: #f8d477;
  background: transparent;
  white-space: nowrap;
}
.trial-banner strong {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .01em;
}
.trial-upgrade-btn {
  min-height: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(251,191,36,.42);
  border-radius: 0;
  background: transparent;
  color: #fef3c7;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
}
.trial-upgrade-btn:hover { color: #fff7d6; border-bottom-color: rgba(251,191,36,.72); }
.topbar:hover .utility-action,
.topbar:focus-within .utility-action {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.profile .utility-action {
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity .3s ease-in-out, transform .3s ease-in-out, border-color .2s ease, background .2s ease;
}
#newAppointmentBtn {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.plans-sheet-panel {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: grid;
  place-items: start center;
  padding: 104px 18px 24px;
  background: rgba(2,6,23,.50);
  backdrop-filter: blur(16px);
}
.plans-sheet-card {
  width: min(1120px, 100%);
  max-height: min(760px, calc(100vh - 128px));
  overflow: auto;
  border: 1px solid rgba(148,163,184,.20);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15,23,42,.88), rgba(8,13,27,.80));
}
.plans-sheet-card .panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid rgba(148,163,184,.18);
  background: rgba(8,13,27,.86);
  backdrop-filter: blur(14px);
}
.plans-sheet-card h2 {
  margin: 2px 0 0;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 500;
}
.plans-sheet-grid {
  display: grid;
  grid-template-columns: minmax(150px, .9fr) repeat(3, minmax(190px, 1fr));
  gap: 1px;
  padding: 12px;
}
.plans-cell {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.055);
  color: #dbeafe;
  font-size: 12px;
}
.plans-corner, .feature-cell {
  color: #f8fafc;
  background: rgba(15,23,42,.64);
  font-weight: 500;
}
.plans-head {
  min-height: 82px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.plans-head span { font-size: 13px; color: #f8fafc; }
.plans-head strong { color: #fff; font-size: 24px; font-weight: 500; }
.plans-head small { color: #94a3b8; font-size: 11px; }
.plans-cell.cyan { border-left: 3px solid #22d3ee; }
.plans-cell.violet { border-left: 3px solid #a78bfa; }
.plans-cell.gold { border-left: 3px solid #fbbf24; }
.plan-value i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22d3ee;
  flex: 0 0 auto;
}
.plan-value.violet i { background: #a78bfa; }
.plan-value.gold i { background: #fbbf24; }
.plan-action button {
  width: 100%;
  min-height: 34px;
  border-radius: 9px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.plan-action.cyan button { color: #67e8f9; }
.plan-action.violet button { color: #c4b5fd; }
.plan-action.gold button { color: #fde68a; }
body[data-theme="morning"] .trial-banner {
  color: #946200;
  background: transparent;
}
body[data-theme="morning"] .trial-upgrade-btn {
  color: #6b4a00;
  border-bottom-color: rgba(255,149,0,.38);
  background: transparent;
}
body[data-theme="morning"] .plans-sheet-panel {
  background: rgba(248,250,252,.56);
}
body[data-theme="morning"] .plans-sheet-card {
  background: rgba(255,255,255,.86);
  border-color: rgba(60,60,67,.13);
}
body[data-theme="morning"] .plans-sheet-card .panel-head {
  background: rgba(255,255,255,.82);
  border-color: rgba(60,60,67,.12);
}
body[data-theme="morning"] .plans-sheet-card h2,
body[data-theme="morning"] .plans-corner,
body[data-theme="morning"] .feature-cell,
body[data-theme="morning"] .plans-head span,
body[data-theme="morning"] .plans-head strong {
  color: #1d1d1f;
}
body[data-theme="morning"] .plans-cell {
  background: rgba(255,255,255,.58);
  border-color: rgba(60,60,67,.10);
  color: #334155;
}
body[data-theme="morning"] .plans-corner,
body[data-theme="morning"] .feature-cell {
  background: rgba(241,245,249,.78);
}
.trial-expired-overlay {
  position: fixed;
  inset: 0;
  z-index: 27;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 6, 23, .74);
  backdrop-filter: blur(14px);
}
.trial-expired-overlay > div {
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid rgba(251,191,36,.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15,23,42,.96), rgba(5,10,24,.92));
  text-align: center;
}
.trial-expired-overlay h2 {
  color: #fff7d6;
  font-weight: 500;
}
.trial-expired-overlay p {
  color: #cbd5e1;
}
.trial-locked .dashboard-grid,
.trial-locked .records-panel,
.trial-locked .agenda-panel,
.trial-locked .search-panel,
.trial-locked .timer-strip,
.trial-locked .ai-dock {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
body[data-theme="morning"] .trial-banner {
  color: #946200;
  background: rgba(255,149,0,.10);
  border-color: rgba(255,149,0,.24);
}
.profile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(15,23,42,.26); border: 1px solid var(--line); border-radius: 50%; }
.profile-text { display: grid; min-width: 220px; }
.profile-text span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.mobile-menu-btn { display: none !important; }
.side-nav {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(330px, calc(100vw - 28px));
  z-index: 28;
  padding: 16px;
  border: 1px solid rgba(167,139,250,.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,25,45,.88), rgba(8,13,27,.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
body[data-theme="morning"] .side-nav {
  background: rgba(255,255,255,.76);
  border-color: rgba(60,60,67,.14);
  box-shadow: 0 20px 46px rgba(0,0,0,.10);
}
.side-action {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148,163,184,.17);
  border-radius: 10px;
  color: var(--text);
  background: rgba(2,6,23,.14);
  padding: 8px 10px;
  text-align: left;
}
.side-action span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(56,189,248,.12);
  color: #7dd3fc;
}
.side-action:nth-of-type(3) span { background: rgba(52,211,153,.14); color: #86efac; }
.side-action:nth-of-type(4) span { background: rgba(244,114,182,.14); color: #f9a8d4; }
.side-action:hover { border-color: rgba(56,189,248,.45); transform: translateX(-1px); }
@media (min-width: 901px) {
  .side-nav { display: none !important; }
}
.search-panel {
  margin: 12px 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  display: block;
}
.compact-search input {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(2, 6, 23, .24);
  border-color: rgba(148,163,184,.16);
  box-shadow: inset 0 0 22px rgba(56,189,248,.035);
}
.compact-search .search-results { grid-column: 1 / -1; }
.ai-command {
  border-radius: 16px;
  padding: 9px;
  background: rgba(8, 13, 27, .42);
  border: 1px solid rgba(148,163,184,.13);
  box-shadow: 0 14px 42px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.ai-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 18;
  width: min(940px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: auto minmax(130px, .42fr) minmax(320px, 1.25fr);
  gap: 10px;
  align-items: center;
  border-color: rgba(167,139,250,.22);
  box-shadow: 0 14px 44px rgba(0,0,0,.36), 0 0 26px rgba(56,189,248,.08);
  padding: 8px;
  border-radius: 15px;
}
.ai-mobile-toggle {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 21;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 15px;
  padding: 0;
  background: rgba(8,13,27,.62);
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.ai-mobile-toggle .chat-logo { width: 40px; height: 40px; margin: auto; }
.chat-logo { width: 38px; height: 38px; border-radius: 11px; }
.chat-logo span { width: 14px; height: 14px; }
.ai-dock-copy h2 { font-size: 13px; margin: 0; color: #dbeafe; line-height: 1.35; }
.command-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.command-row input {
  min-height: 38px;
  border-radius: 10px;
  background: rgba(2, 6, 23, .22);
  border-color: rgba(148,163,184,.14);
}
.ai-result { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.arrow-btn { width: 38px; min-height: 38px; padding: 0; font-size: 18px; border-radius: 10px; color: #dbeafe; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(420px, .95fr) minmax(520px, 1.25fr);
  grid-template-areas:
    "calendar crm";
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}
.calendar-panel,
.role-panel {
  grid-area: calendar;
  height: min(640px, calc(100vh - 265px));
  min-height: 520px;
}
.calendar-panel { overflow: hidden; }
.role-panel { grid-area: crm; overflow: auto; }
.role-panel > .panel-head {
  position: sticky;
  top: -12px;
  z-index: 4;
  padding: 10px 0 12px;
  background: rgba(8,13,27,.88);
  backdrop-filter: blur(14px);
}
body[data-theme="morning"] .role-panel > .panel-head {
  background: rgba(255, 255, 255, .72);
  border-radius: 12px;
}
.agenda-panel {
  margin-top: 10px;
  padding: 0;
  height: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.records-panel {
  margin-top: 14px;
  width: 100%;
  background: rgba(2,6,23,.08);
  border-color: rgba(148,163,184,.10);
  box-shadow: none;
}
.layout { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(260px, .62fr); gap: 14px; margin-top: 14px; }
.wide-layout { margin-top: 18px; }
.panel { border-radius: 16px; padding: 14px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.month-controls { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; font-size: 22px; }
.calendar-wrap { height: calc(100% - 58px); display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.weekdays { color: var(--muted); font-size: 11px; font-weight: 900; text-align: center; margin-bottom: 7px; }
.calendar-grid { min-height: 0; grid-template-rows: repeat(6, minmax(0, 1fr)); }
.day-cell {
  min-height: 0;
  border: 1px solid rgba(117,139,177,.14);
  border-radius: 10px;
  background: rgba(2, 6, 23, .20);
  padding: 8px;
  color: var(--text);
  text-align: left;
}
.day-cell:hover { border-color: rgba(56,189,248,.55); background: rgba(15, 23, 42, .98); }
body[data-theme="morning"] .day-cell {
  background: rgba(255,255,255,.54);
  border-color: rgba(60,60,67,.13);
  color: #1d1d1f;
}
body[data-theme="morning"] .day-cell:hover {
  background: rgba(255,255,255,.86);
  border-color: rgba(0,122,255,.32);
}
.day-cell.outside { opacity: .32; }
.day-cell.today { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(56,189,248,.12); }
.day-num { display: flex; justify-content: space-between; font-weight: 900; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-left: 4px; display: inline-block; }
.neutral { background: var(--blue); } .priority { background: var(--amber); } .top { background: var(--red); }
.mini-event { margin-top: 5px; font-size: 10px; color: #bfdbfe; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack { display: grid; gap: 10px; }
.item-card { border: 1px solid rgba(117,139,177,.14); background: rgba(2,6,23,.20); border-radius: 12px; padding: 11px; }
.item-card.done { opacity: .55; }
.card-title { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.card-meta { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(117,139,177,.10); }
.small-btn { border: 1px solid rgba(117,139,177,.18); background: rgba(2,6,23,.18); color: var(--text); border-radius: 8px; padding: 4px 9px; font-size: 11px; }
.small-btn[data-action="toggle-appointment"], .small-btn[data-note-toggle] { color: #bbf7d0; border-color: rgba(52,211,153,.28); }
.small-btn[data-action="edit-appointment"], .small-btn[data-edit], .small-btn[data-note-kind] { color: #bfdbfe; border-color: rgba(96,165,250,.28); }
.small-btn[data-action="delete-appointment"], .small-btn[data-delete], .small-btn[data-note-delete] { color: #fecdd3; border-color: rgba(251,113,133,.28); }
.small-btn:hover { border-color: rgba(56,189,248,.55); color: white; }
.search-results { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.search-hit { width: 100%; display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: rgba(10,15,27,.72); color: var(--text); text-align: left; }
body[data-theme="morning"] .search-hit,
body[data-theme="morning"] .item-card,
body[data-theme="morning"] .record-row,
body[data-theme="morning"] .collection-form,
body[data-theme="morning"] .timer-strip,
body[data-theme="morning"] .ai-command {
  background: rgba(255,255,255,.52);
  border-color: rgba(60,60,67,.14);
  box-shadow: none;
  color: #1d1d1f;
}
body[data-theme="morning"] .compact-search input,
body[data-theme="morning"] .command-row input {
  background: rgba(255,255,255,.56);
  border-color: rgba(60,60,67,.14);
  color: #1d1d1f;
}
body[data-theme="morning"] .mini-event,
body[data-theme="morning"] .ai-dock-copy h2,
body[data-theme="morning"] .timer-strip strong,
body[data-theme="morning"] .timer-strip span,
body[data-theme="morning"] .task-item .card-meta,
body[data-theme="morning"] .collection h3,
body[data-theme="morning"] .upcoming-banner strong,
body[data-theme="morning"] .profile-text strong,
body[data-theme="morning"] .record-row strong,
body[data-theme="morning"] .card-title {
  color: #1d1d1f;
}
body[data-theme="morning"] .small-btn:hover { color: #1d1d1f; }
body[data-theme="morning"] .card-meta,
body[data-theme="morning"] .record-row-meta,
body[data-theme="morning"] .profile-text span,
body[data-theme="morning"] .role-card small,
body[data-theme="morning"] .ai-result {
  color: #6e6e73;
}
body[data-theme="morning"] .primary,
body[data-theme="morning"] .ghost,
body[data-theme="morning"] .danger,
body[data-theme="morning"] .icon-btn,
body[data-theme="morning"] .role-card,
body[data-theme="morning"] .game-choice,
body[data-theme="morning"] .small-btn,
body[data-theme="morning"] .save-action {
  background: rgba(255,255,255,.56);
  color: #1d1d1f;
  border-color: rgba(60,60,67,.14);
  box-shadow: none;
}
body[data-theme="morning"] .primary,
body[data-theme="morning"] .icon-btn {
  background: rgba(14,165,233,.10);
  border-color: rgba(0,122,255,.22);
  color: #0066cc;
}
body[data-theme="morning"] .ghost,
body[data-theme="morning"] .role-card,
body[data-theme="morning"] .game-choice {
  background: rgba(124,58,237,.075);
  border-color: rgba(88,86,214,.18);
  color: #3b33a7;
}
body[data-theme="morning"] .danger {
  background: rgba(225,29,72,.075);
  border-color: rgba(215,0,21,.20);
  color: #b00020;
}
body[data-theme="morning"] .small-btn,
body[data-theme="morning"] .save-action {
  background: rgba(255,255,255,.52);
}
body[data-theme="morning"] .small-btn[data-action="toggle-appointment"],
body[data-theme="morning"] .small-btn[data-note-toggle] {
  color: #248a3d;
  background: rgba(52,199,89,.08);
  border-color: rgba(52,199,89,.20);
}
body[data-theme="morning"] .small-btn[data-action="edit-appointment"],
body[data-theme="morning"] .small-btn[data-edit],
body[data-theme="morning"] .small-btn[data-note-kind] {
  color: #0066cc;
  background: rgba(0,122,255,.08);
  border-color: rgba(0,122,255,.20);
}
body[data-theme="morning"] .small-btn[data-action="delete-appointment"],
body[data-theme="morning"] .small-btn[data-delete],
body[data-theme="morning"] .small-btn[data-note-delete] {
  color: #d70015;
  background: rgba(255,59,48,.08);
  border-color: rgba(255,59,48,.20);
}
.search-hit:first-child { border-top: 0; }
.upcoming-banner {
  margin: 14px 0 0;
  border-radius: 16px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  border-color: rgba(251,191,36,.32);
  cursor: pointer;
}
.upcoming-banner.multi-reminder { border-color: rgba(56,189,248,.32); }
.upcoming-banner.multi-reminder .pulse-dot { background: var(--blue); box-shadow: 0 0 0 8px rgba(56,189,248,.10), 0 0 22px rgba(56,189,248,.45); }
.upcoming-banner.top-reminder { border-color: rgba(244,114,182,.38); }
.upcoming-banner.top-reminder .pulse-dot { background: var(--pink); box-shadow: 0 0 0 8px rgba(244,114,182,.10), 0 0 22px rgba(244,114,182,.45); }
.pulse-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 8px rgba(251,191,36,.10), 0 0 22px rgba(251,191,36,.45);
}
.upcoming-banner strong { font-size: 14px; color: #fef3c7; }

.timer-strip {
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 12px;
  background: rgba(2,6,23,.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.timer-strip span {
  display: block;
  color: #93c5fd;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.timer-strip strong {
  display: block;
  margin-top: 2px;
  color: #e0f2fe;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  letter-spacing: .08em;
  font-weight: 500;
}
.timer-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.timer-actions .small-btn:nth-child(1) { color: #bbf7d0; border-color: rgba(52,211,153,.28); }
.timer-actions .small-btn:nth-child(2) { color: #fde68a; border-color: rgba(251,191,36,.26); }
.timer-actions .small-btn:nth-child(3) { color: #fecdd3; border-color: rgba(251,113,133,.26); }
body[data-theme="morning"] .timer-actions .small-btn {
  min-height: 31px;
  border-radius: 8px;
  font-size: 11px;
  box-shadow: none;
}
body[data-theme="morning"] .timer-actions .small-btn:nth-child(1) {
  color: #248a3d;
  background: rgba(52,199,89,.09);
  border-color: rgba(52,199,89,.22);
}
body[data-theme="morning"] .timer-actions .small-btn:nth-child(2) {
  color: #946200;
  background: rgba(255,149,0,.09);
  border-color: rgba(255,149,0,.22);
}
body[data-theme="morning"] .timer-actions .small-btn:nth-child(3) {
  color: #d70015;
  background: rgba(255,59,48,.08);
  border-color: rgba(255,59,48,.20);
}
body[data-theme="morning"] .timer-actions .small-btn:nth-child(4) {
  color: #0066cc;
  background: rgba(0,122,255,.08);
  border-color: rgba(0,122,255,.20);
}
.role-panel { padding: 12px; background: rgba(2,6,23,.10); border-color: rgba(148,163,184,.10); box-shadow: none; }
body[data-theme="morning"] .role-panel,
body[data-theme="morning"] .records-panel {
  background: rgba(255,255,255,.46);
  border-color: rgba(60,60,67,.13);
}
.calendar-panel,
.role-panel,
.records-panel,
.agenda-panel {
  border-color: rgba(148,163,184,.12);
}
body[data-theme="morning"] .calendar-panel,
body[data-theme="morning"] .role-panel,
body[data-theme="morning"] .records-panel,
body[data-theme="morning"] .agenda-panel {
  border-color: rgba(60,60,67,.13);
  box-shadow: none;
}
.agenda-panel .panel-head { margin-bottom: 7px; }
.agenda-panel .panel-head h2 { display: none; }
.agenda-panel .item-card { padding: 9px; border-left: 3px solid rgba(56,189,248,.42); }
.agenda-panel .card-title { font-size: 12px; }
.agenda-panel .card-meta { font-size: 11px; line-height: 1.35; }
.agenda-panel .card-actions { gap: 4px; margin-top: 7px; padding-top: 6px; }
.agenda-panel .small-btn { font-size: 10px; padding: 3px 7px; min-height: 27px; }
.agenda-panel .item-card:nth-child(3n + 1) { border-left-color: var(--blue); }
.agenda-panel .item-card:nth-child(3n + 2) { border-left-color: var(--amber); }
.agenda-panel .item-card:nth-child(3n + 3) { border-left-color: var(--pink); }
body[data-theme="morning"] .agenda-panel .item-card {
  background: rgba(255,255,255,.50);
  box-shadow: none;
}
.agenda-panel .stack {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  overflow-x: auto;
  padding-bottom: 3px;
}
.collection {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(117,139,177,.16);
}
.collection:first-of-type { margin-top: 0; }
.collection h3 {
  margin: 0 0 10px;
  color: #bfdbfe;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
body[data-theme="morning"] .collection h3,
body[data-theme="morning"] .records-title,
body[data-theme="morning"] .records-section-head h3 {
  color: #0066cc;
}
body[data-theme="morning"] .collection:nth-of-type(2n) h3,
body[data-theme="morning"] .records-section-head:nth-of-type(2n) h3 {
  color: #5856d6;
}
.records-title {
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.records-section-head {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(220px, 380px);
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.records-section-head h3 { margin: 0; }
.records-section-head input {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
}
.review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 14px;
}
.review-summary div {
  border: 1px solid rgba(117,139,177,.14);
  border-radius: 10px;
  padding: 10px;
  background: rgba(2,6,23,.14);
}
.review-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.review-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
}
body[data-theme="morning"] .review-summary div {
  background: rgba(255,255,255,.54);
  border-color: rgba(60,60,67,.12);
}
.collection-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px;
  border: 1px solid rgba(117,139,177,.10);
  border-radius: 14px;
  background: rgba(2, 6, 23, .12);
}
.collection-form .wide-field { grid-column: span 2; }
.collection-form .extra-wide-field { grid-column: span 2; }
.collection-form .form-submit-row { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.save-action {
  min-height: 33px;
  padding: 7px 12px;
  border: 1px solid rgba(52,211,153,.28);
  border-radius: 8px;
  color: #bbf7d0;
  background: rgba(52,211,153,.08);
  font-size: 12px;
  font-weight: 500;
}
.save-action:hover { border-color: rgba(52,211,153,.48); background: rgba(52,211,153,.13); }
.collection-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.wide-record-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.phone-field {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 8px;
}
.phone-field select,
.phone-field input {
  min-width: 0;
}
.record-row {
  width: 100%;
  border: 1px solid rgba(117,139,177,.12);
  background: rgba(2, 6, 23, .12);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 5px minmax(170px, 1.05fr) minmax(180px, 2fr);
  gap: 12px;
  align-items: center;
  text-align: left;
}
.record-row.status-hot { border-left: 4px solid var(--pink); }
.record-row.status-warm { border-left: 4px solid var(--amber); }
.record-row.status-cool { border-left: 4px solid var(--green); }
.record-row.status-neutral { border-left: 4px solid var(--blue); }
.record-row.status-hot .record-colorbar { background: linear-gradient(180deg, #fb7185, #f472b6); }
.record-row.status-warm .record-colorbar { background: linear-gradient(180deg, #fbbf24, #f97316); }
.record-row.status-cool .record-colorbar { background: linear-gradient(180deg, #34d399, #10b981); }
.record-row.status-neutral .record-colorbar { background: linear-gradient(180deg, #38bdf8, #60a5fa); }
.record-row:hover { border-color: rgba(56,189,248,.44); background: rgba(15,23,42,.62); }
.record-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.record-row strong { font-size: 14px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-row-meta { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-colorbar { width: 5px; height: 28px; border-radius: 999px; background: linear-gradient(180deg, var(--blue), var(--pink)); }
.record-level {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  border: 1px solid rgba(148,163,184,.16);
}
.record-level.level-high { color: #fecdd3; background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.24); }
.record-level.level-medium { color: #fde68a; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.24); }
.record-level.level-low { color: #bbf7d0; background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.24); }
.record-level.level-normal { color: #bae6fd; background: rgba(14,165,233,.12); border-color: rgba(14,165,233,.24); }
.record-level.status-new { color: #fecdd3; background: rgba(244,63,94,.14); }
.record-level.status-pending, .record-level.status-waiting { color: #fed7aa; background: rgba(249,115,22,.14); }
.record-level.status-active, .record-level.status-qualified, .record-level.status-planning { color: #fde68a; background: rgba(245,158,11,.14); }
.record-level.status-board-review, .record-level.status-in-review, .record-level.status-studying, .record-level.status-revision { color: #ddd6fe; background: rgba(139,92,246,.14); }
.record-level.status-in-room { color: #a5f3fc; background: rgba(6,182,212,.14); }
.record-level.status-successful, .record-level.status-signed, .record-level.status-complete, .record-level.status-closed { color: #bbf7d0; background: rgba(16,185,129,.14); }
.record-level.status-low { color: #bfdbfe; background: rgba(59,130,246,.12); }
.record-level.status-high, .record-level.status-top, .record-level.status-hot { color: #fecdd3; background: rgba(244,63,94,.14); }
body[data-theme="morning"] .record-level.level-high { color: #be123c; background: #fff1f2; border-color: rgba(190,18,60,.18); }
body[data-theme="morning"] .record-level.level-medium { color: #92400e; background: #fffbeb; border-color: rgba(146,64,14,.18); }
body[data-theme="morning"] .record-level.level-low { color: #047857; background: #ecfdf5; border-color: rgba(4,120,87,.18); }
body[data-theme="morning"] .record-level.level-normal { color: #0369a1; background: #f0f9ff; border-color: rgba(3,105,161,.18); }
.record-session-panel { grid-column: 1 / -1; }
.record-session-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.record-session-actions .small-btn:disabled { opacity: .4; cursor: default; }
.time-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.time-stats div,
.time-log-item {
  border: 1px solid rgba(117,139,177,.14);
  border-radius: 10px;
  padding: 9px;
  background: rgba(2,6,23,.16);
}
.time-stats span,
.time-log-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.time-stats strong,
.time-log-item strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
}
.time-log-item em {
  display: inline-flex;
  margin-top: 6px;
  color: #bbf7d0;
  font-style: normal;
  font-size: 12px;
}
.time-log-item.active {
  border-color: rgba(56,189,248,.32);
  background: rgba(56,189,248,.10);
}
body[data-theme="morning"] .time-stats div,
body[data-theme="morning"] .time-log-item,
body[data-theme="morning"] .record-detail {
  background: rgba(255,255,255,.56);
  border-color: rgba(60,60,67,.12);
}
body[data-theme="morning"] .record-row:hover {
  background: rgba(255,255,255,.82);
  border-color: rgba(0,122,255,.30);
}
body[data-theme="morning"] .record-row.status-hot {
  background: linear-gradient(90deg, rgba(255,45,85,.10), rgba(255,255,255,.52) 24%);
  border-left-color: #ff2d55;
}
body[data-theme="morning"] .record-row.status-warm {
  background: linear-gradient(90deg, rgba(255,149,0,.12), rgba(255,255,255,.52) 24%);
  border-left-color: #ff9500;
}
body[data-theme="morning"] .record-row.status-cool {
  background: linear-gradient(90deg, rgba(52,199,89,.11), rgba(255,255,255,.52) 24%);
  border-left-color: #34c759;
}
body[data-theme="morning"] .record-row.status-neutral {
  background: linear-gradient(90deg, rgba(0,122,255,.10), rgba(255,255,255,.52) 24%);
  border-left-color: #007aff;
}
body[data-theme="morning"] .record-row.status-hot:hover,
body[data-theme="morning"] .record-row.status-warm:hover,
body[data-theme="morning"] .record-row.status-cool:hover,
body[data-theme="morning"] .record-row.status-neutral:hover {
  background-color: rgba(255,255,255,.82);
}
body[data-theme="morning"] .empty-state {
  background: rgba(255,255,255,.42);
  border-color: rgba(60,60,67,.16);
}
.empty-state {
  border: 1px dashed rgba(117,139,177,.22);
  border-radius: 10px;
  padding: 12px;
  color: var(--muted);
  background: rgba(2,6,23,.12);
  font-size: 13px;
}
.record-dialog-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.record-detail {
  border: 1px solid rgba(117,139,177,.16);
  border-radius: 10px;
  padding: 9px;
  background: rgba(2,6,23,.32);
}
.record-detail span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.record-detail strong { font-size: 13px; overflow-wrap: anywhere; }
.record-detail input {
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(2,6,23,.22);
  font-size: 13px;
}
.record-detail select,
.record-detail textarea {
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(2,6,23,.22);
  font-size: 13px;
}
.record-detail textarea { min-height: 72px; }
.session-form {
  margin-top: 9px;
  display: grid;
  gap: 7px;
}
.session-form textarea { min-height: 78px; }
.record-chip {
  display: inline-flex;
  margin: 7px 7px 0 0;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(56,189,248,.10);
  color: #bae6fd;
  border: 1px solid rgba(56,189,248,.18);
  font-size: 11px;
}
.task-drawer {
  position: fixed;
  right: 18px;
  top: 92px;
  bottom: 118px;
  width: min(520px, calc(100vw - 36px));
  z-index: 19;
  border: 1px solid rgba(167,139,250,.28);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(18,25,45,.78), rgba(8,13,27,.66));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: auto;
}
.task-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.task-columns h3 { margin: 0 0 8px; font-size: 12px; color: #bfdbfe; text-transform: uppercase; letter-spacing: .12em; }
.task-item {
  border: 1px solid rgba(117,139,177,.12);
  border-left: 3px solid var(--violet);
  border-radius: 11px;
  padding: 10px;
  background: rgba(2,6,23,.18);
}
.task-item.done { border-left-color: var(--green); opacity: .72; }
.task-item .card-meta { font-size: 13px; color: #dbeafe; }
.danger-line { border-color: rgba(251,113,133,.4); color: #fecdd3; }
.chat-drawer { left: auto; }
body[data-theme="morning"] .task-drawer,
body[data-theme="morning"] .chat-drawer {
  background: rgba(255,255,255,.62);
  border-color: rgba(60,60,67,.14);
  box-shadow: none;
}
body[data-theme="morning"] .task-columns h3 {
  color: #0066cc;
}
body[data-theme="morning"] .task-columns > div:nth-child(2) h3 {
  color: #248a3d;
}
body[data-theme="morning"] .task-item {
  background: rgba(255,255,255,.50);
  border-color: rgba(60,60,67,.13);
  border-left-color: #5856d6;
}
body[data-theme="morning"] .task-item:nth-child(3n + 1) { border-left-color: #007aff; }
body[data-theme="morning"] .task-item:nth-child(3n + 2) { border-left-color: #ff9500; }
body[data-theme="morning"] .task-item:nth-child(3n + 3) { border-left-color: #af52de; }
body[data-theme="morning"] .task-item.done {
  border-left-color: #34c759;
  background: rgba(52,199,89,.08);
}
body[data-theme="morning"] .task-item .card-meta {
  color: #3a3a3c;
}
body[data-theme="morning"] .danger-line {
  color: #d70015;
  border-color: rgba(255,59,48,.24);
}
.invite-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 10px 0;
}
.invited-users {
  min-height: 34px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.team-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid rgba(56,189,248,.22);
  border-radius: 8px;
  color: #bae6fd;
  background: rgba(56,189,248,.08);
  font-size: 12px;
}
.chat-messages {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(117,139,177,.12);
  border-radius: 12px;
  background: rgba(2,6,23,.12);
}
.chat-message {
  max-width: 88%;
  padding: 9px 10px;
  border: 1px solid rgba(117,139,177,.14);
  border-radius: 12px;
  background: rgba(15,23,42,.32);
}
.chat-message.mine {
  justify-self: end;
  border-color: rgba(52,211,153,.24);
  background: rgba(52,211,153,.10);
}
.chat-message strong { font-size: 12px; color: #bfdbfe; }
.chat-message p { margin: 4px 0; font-size: 13px; line-height: 1.4; }
.chat-message span { color: var(--muted); font-size: 10px; }
body[data-theme="morning"] .team-pill {
  color: #0066cc;
  background: rgba(0,122,255,.08);
  border-color: rgba(0,122,255,.18);
}
body[data-theme="morning"] .chat-messages {
  background: rgba(255,255,255,.38);
  border-color: rgba(60,60,67,.12);
}
body[data-theme="morning"] .chat-message {
  background: rgba(255,255,255,.62);
  border-color: rgba(60,60,67,.13);
}
body[data-theme="morning"] .chat-message.mine {
  background: rgba(52,199,89,.10);
  border-color: rgba(52,199,89,.20);
}
body[data-theme="morning"] .chat-message strong {
  color: #0066cc;
}
.modal { border: 0; padding: 0; background: transparent; }
.modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(8px); }
.modal-card { width: min(520px, calc(100vw - 28px)); border-radius: 16px; padding: 18px; display: grid; gap: 13px; }
.break-overlay { position: fixed; inset: 0; z-index: 20; background: radial-gradient(circle at top, rgba(56,189,248,.13), transparent 30rem), rgba(3, 6, 14, .88); backdrop-filter: blur(16px); display: grid; place-items: center; padding: 18px; }
.game-card, .game-stage { width: min(920px, 100%); border-radius: 18px; padding: 18px; }
.break-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 18px; }
.break-top .ghost { justify-self: end; }
.digital-timer {
  justify-self: center;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid rgba(56,189,248,.24);
  background: rgba(2,6,23,.52);
  color: #67e8f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: inset 0 0 24px rgba(56,189,248,.08);
}
.game-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.game-choice { width: 100%; min-height: 150px; display: grid; align-content: center; justify-items: start; gap: 7px; padding: 16px; margin-top: 0; font-weight: 900; text-align: left; }
.game-choice b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(56,189,248,.12); color: #67e8f9; font-size: 20px; }
.game-choice strong { font-size: 16px; }
.game-choice span, .game-help { color: var(--muted); }
canvas { width: 100%; aspect-ratio: 12 / 7; background: #02050b; border: 1px solid var(--line); border-radius: 14px; display: block; }
.game-actions { display: flex; gap: 10px; }
body[data-theme="morning"] .break-overlay {
  background:
    radial-gradient(circle at 18% 0%, rgba(0,122,255,.10), transparent 30rem),
    radial-gradient(circle at 92% 4%, rgba(175,82,222,.08), transparent 28rem),
    rgba(245,245,247,.86);
  backdrop-filter: blur(18px);
}
body[data-theme="morning"] .game-card,
body[data-theme="morning"] .game-stage {
  background: rgba(255,255,255,.58);
  border-color: rgba(60,60,67,.14);
  box-shadow: none;
}
body[data-theme="morning"] .digital-timer {
  background: rgba(255,255,255,.42);
  border-color: rgba(0,122,255,.18);
  color: #0066cc;
  box-shadow: none;
}
body[data-theme="morning"] .game-choice {
  background: rgba(255,255,255,.46);
  border-color: rgba(60,60,67,.13);
  color: #1d1d1f;
  box-shadow: none;
}
body[data-theme="morning"] .game-choice:nth-child(1) { border-color: rgba(0,122,255,.22); }
body[data-theme="morning"] .game-choice:nth-child(2) { border-color: rgba(52,199,89,.22); }
body[data-theme="morning"] .game-choice:nth-child(3) { border-color: rgba(255,149,0,.24); }
body[data-theme="morning"] .game-choice b {
  background: rgba(0,122,255,.08);
  color: #0066cc;
}
body[data-theme="morning"] .game-choice:nth-child(2) b {
  background: rgba(52,199,89,.10);
  color: #248a3d;
}
body[data-theme="morning"] .game-choice:nth-child(3) b {
  background: rgba(255,149,0,.12);
  color: #946200;
}
body[data-theme="morning"] canvas {
  background: #f9f9fb;
  border-color: rgba(60,60,67,.16);
}
.toast-host { position: fixed; right: 18px; top: 18px; z-index: 10000; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.toast { border-radius: 12px; padding: 12px; box-shadow: none; pointer-events: auto; }

.admin-head h2 { color: var(--blue); }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.admin-stats div,
.admin-ai-panel {
  border: 1px solid rgba(117,139,177,.14);
  border-radius: 12px;
  background: rgba(2,6,23,.14);
  padding: 12px;
}
.admin-stats span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.admin-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
}
.admin-ai-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  border-left: 4px solid var(--blue);
}
.admin-ai-panel h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.admin-role-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}
.admin-role-counts span {
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 8px;
  padding: 5px 8px;
  color: #bae6fd;
  background: rgba(56,189,248,.08);
  font-size: 12px;
}
.admin-filter {
  grid-template-columns: minmax(180px, auto) minmax(260px, 460px);
}
.admin-account-list {
  display: grid;
  gap: 8px;
}
.admin-account-row {
  grid-template-columns: 5px minmax(200px, .8fr) minmax(260px, 1.4fr);
}
body[data-theme="morning"] .admin-head h2 { color: #0066cc; }
body[data-theme="morning"] .admin-stats div,
body[data-theme="morning"] .admin-ai-panel {
  background: rgba(255,255,255,.50);
  border-color: rgba(60,60,67,.13);
}
body[data-theme="morning"] .admin-role-counts span {
  color: #0066cc;
  background: rgba(0,122,255,.08);
  border-color: rgba(0,122,255,.18);
}
body[data-theme="morning"] .admin-ai-panel {
  border-left-color: #007aff;
}
body[data-theme="morning"] .admin-stats strong,
body[data-theme="morning"] .admin-ai-panel h3 {
  color: #1d1d1f;
}

@media (max-width: 900px) {
  .auth-screen {
    padding: 22px;
  }
  .landing-command { align-content: start; padding-top: 30px; }
  .preview-grid { grid-template-columns: 1fr; }
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .mobile-menu-btn { display: grid !important; }
  .profile {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .profile .mini-action { display: none; }
  .profile .trial-banner {
    flex: 1 0 100%;
    order: 3;
  }
  .plans-sheet-panel { padding-top: 76px; }
  .plans-sheet-grid {
    min-width: 760px;
    grid-template-columns: 140px repeat(3, 180px);
  }
  .layout, .dashboard-grid {
    grid-template-columns: 1fr;
    display: grid;
    grid-template-areas: "calendar" "crm";
  }
  .role-grid, .form-grid, .collection-form, .collection-grid { grid-template-columns: 1fr 1fr; }
  .search-panel, .record-row, .game-choice-grid, .task-columns, .admin-stats, .admin-ai-panel, .admin-account-row { grid-template-columns: 1fr; }
  .admin-role-counts { justify-content: flex-start; }
  .collection-form .wide-field, .collection-form .extra-wide-field { grid-column: 1 / -1; }
  .calendar-panel, .role-panel {
    height: auto;
    min-height: 0;
  }
  .agenda-panel .stack {
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }
}
@media (max-width: 620px) {
  .landing-nav { align-items: flex-start; }
  .landing-logo .animated-mondaily-logo { font-size: 18px; }
  .landing-chat-messages { min-height: 132px; }
  .workspace-card { flex: 1 1 calc(50% - 10px); justify-content: center; }
  .workspace-card strong { font-size: 11px; }
  .auth-route-card .role-grid { grid-template-columns: 1fr 1fr; }
  .app-shell { padding: 14px; padding-bottom: 82px; }
  .auth-card, .panel, .search-panel { padding: 14px; }
  .form-grid, .form-grid.two, .role-grid, .command-row, .collection-form, .collection-grid { grid-template-columns: 1fr; }
  .wide-record-grid { grid-template-columns: 1fr; }
  .record-row { grid-template-columns: 5px 1fr; }
  .record-row-meta { grid-column: 2; }
  .record-main { align-items: flex-start; flex-direction: column; gap: 5px; }
  .time-stats { grid-template-columns: 1fr; }
  .records-section-head { grid-template-columns: 1fr; }
  .review-summary { grid-template-columns: 1fr; }
  .day-cell { min-height: 62px; padding: 6px; }
  .mini-event { display: none; }
  .ai-mobile-toggle { display: grid; }
  .ai-dock {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 78px;
    transform: none;
    width: auto;
    z-index: 22;
    grid-template-columns: auto 1fr;
    padding: 10px;
  }
  .ai-dock.open { display: grid; }
  .ai-dock .command-row { grid-column: 1 / -1; }
  .ai-dock-copy .eyebrow { margin-bottom: 1px; }
  .ai-result { font-size: 10px; }
  .task-drawer {
    top: 76px;
    right: 10px;
    left: 10px;
    bottom: 76px;
    width: auto;
  }
  .invite-row { grid-template-columns: 1fr; }
  .timer-strip { align-items: stretch; flex-direction: column; }
  .break-top { grid-template-columns: 1fr; text-align: center; }
  .break-top .ghost, .digital-timer { justify-self: stretch; }
  .digital-timer { font-size: 26px; }
}

/* SaaS landing page: bright, colorful, AI-forward */
#authScreen.auth-screen {
  background:
    radial-gradient(circle at 12% 6%, rgba(59, 130, 246, .18), transparent 28rem),
    radial-gradient(circle at 88% 3%, rgba(168, 85, 247, .16), transparent 30rem),
    radial-gradient(circle at 50% 34%, rgba(20, 184, 166, .12), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #eef4ff 100%);
  color: #0f172a;
}
#authScreen .landing-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 10px 0;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
}
#authScreen .mondaily-symbol {
  background:
    conic-gradient(from 180deg, #3b82f6, #a855f7, #06b6d4, #22c55e, #3b82f6);
  border: 1px solid rgba(59, 130, 246, .22);
  box-shadow: 0 0 28px rgba(59, 130, 246, .20);
  animation: symbolSpin 7s linear infinite;
}
#authScreen .mondaily-symbol span {
  background: #ffffff;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.28), 0 0 14px rgba(255,255,255,.35);
}
#authScreen .animated-mondaily-logo {
  background: linear-gradient(90deg, #2563eb, #7c3aed, #0891b2, #16a34a, #2563eb);
  background-size: 280% 280%;
  animation: logoFlow 7s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .08em;
}
#authScreen .animated-mondaily-logo b {
  -webkit-text-fill-color: initial;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: rgba(124, 58, 237, .18);
}
.landing-nav-actions {
  align-items: center;
}
.landing-nav-link {
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 10px;
}
#authScreen .nav-auth-btn {
  color: #1e293b;
  border-color: rgba(148, 163, 184, .28);
  background: rgba(255,255,255,.76);
  border-radius: 9px;
}
#authScreen .nav-auth-btn.gold {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.landing-hero-copy {
  max-width: 760px;
  text-align: center;
}
.landing-v3 {
  align-content: start;
  padding: 42px 0 80px;
}
.landing-hero-stage {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  align-items: center;
}
.landing-hero-stage .landing-hero-copy {
  text-align: left;
}
.landing-hero-copy h2 {
  margin: 6px 0 10px;
  color: #0f172a;
  font-size: clamp(34px, 6vw, 72px);
  line-height: .95;
  letter-spacing: 0;
}
.landing-hero-copy p:last-child {
  margin: 0;
  color: #475569;
  font-size: 16px;
}
.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-command-card {
  padding: 16px;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(15,23,42,.98), rgba(76,29,149,.88)),
    radial-gradient(circle at top right, rgba(239,68,68,.28), transparent 20rem);
  box-shadow: 0 30px 90px rgba(37,99,235,.14);
  color: white;
}
.hero-command-card .preview-topbar {
  border-color: rgba(255,255,255,.12);
}
.hero-command-lines {
  display: grid;
  gap: 10px;
  padding: 18px;
}
.hero-command-lines b {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  font-weight: 500;
}
.ai-feature-layer {
  display: grid;
  justify-items: center;
}
.ai-feature-layer > h2,
.ai-feature-layer > .eyebrow {
  justify-self: start;
}
#authScreen .landing-chatbox {
  border-color: rgba(147, 197, 253, .55);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 22px 70px rgba(37, 99, 235, .12);
  border-radius: 20px;
}
#authScreen .landing-chat-message {
  color: #0f172a;
  background: #f8fafc;
  border-color: #e2e8f0;
}
#authScreen .landing-chat-message.ai {
  color: #312e81;
  background: linear-gradient(135deg, #eef2ff, #eff6ff);
  border-color: #c7d2fe;
}
#authScreen .landing-chat-message.user {
  color: #14532d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}
#authScreen .landing-chat-input {
  border-top-color: #e2e8f0;
}
#authScreen .landing-chat-input input,
.mock-row input,
.mock-row select {
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #dbe3ef;
}
#authScreen .landing-chat-input button {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: transparent;
  border-radius: 10px;
}
#authScreen .workspace-card {
  color: #0f172a;
  border-color: rgba(226, 232, 240, .90);
  background: rgba(255,255,255,.74);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .07);
}
#authScreen .workspace-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}
#authScreen .workspace-card span {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}
#authScreen .trial-demo-btn {
  color: #334155;
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 10px;
}
.landing-live-board,
.landing-layer {
  width: min(1040px, 100%);
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 20px 70px rgba(37, 99, 235, .10);
  backdrop-filter: blur(18px);
}
.live-board-head,
.mock-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr .9fr .7fr auto;
  align-items: center;
  gap: 8px;
}
.live-board-head {
  grid-template-columns: 1fr auto;
  margin-bottom: 14px;
}
.live-board-head h3,
.landing-layer h2 {
  margin: 3px 0 0;
  color: #0f172a;
  font-weight: 500;
}
.mock-add-btn,
.price-btn {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #2563eb;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.primary-demo {
  color: white !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #ef4444, #ec4899) !important;
}
.how-layer {
  position: relative;
}
.how-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.how-grid::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 32px;
  height: 1px;
  background: linear-gradient(90deg, #ef4444, #a855f7, #3b82f6);
}
.how-grid article {
  position: relative;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
}
.how-grid span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  font-weight: 700;
}
.how-grid h3 {
  margin: 18px 0 6px;
  color: #0f172a;
  font-weight: 500;
}
.how-grid p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}
.landing-demo-band {
  width: min(1040px, 100%);
  padding: 46px;
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 15% 10%, rgba(236,72,153,.48), transparent 22rem),
    linear-gradient(135deg, #0f172a, #4c1d95 54%, #881337);
  box-shadow: 0 28px 90px rgba(76,29,149,.18);
}
.landing-demo-band h2 {
  max-width: 760px;
  margin: 8px 0 22px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.testimonial-grid article {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}
.testimonial-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  font-size: 12px;
  font-weight: 700;
}
.testimonial-grid p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}
.mock-table {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.mock-row {
  padding: 8px;
  border-top: 1px solid #e2e8f0;
}
.mock-row:first-child,
.mock-row-head {
  border-top: 0;
}
.mock-row-head {
  color: #64748b;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
}
.mock-status {
  border-radius: 999px;
  font-weight: 500;
}
.mock-status.status-new { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.mock-status.status-working { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.mock-status.status-qualified { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.mock-status.status-closed { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
.mock-row-actions {
  display: inline-flex;
  gap: 4px;
}
.mock-row-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  color: #475569;
  background: #ffffff;
}
.service-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.service-grid article,
.pricing-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.service-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.service-grid h3,
.pricing-card h3 {
  margin: 12px 0 6px;
  color: #0f172a;
  font-weight: 500;
}
.service-grid p,
.pricing-card li,
.pricing-card p {
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}
.pricing-card {
  background: #ffffff;
}
.pricing-card.featured {
  border-color: #93c5fd;
  background:
    linear-gradient(135deg, rgba(239,246,255,.96), rgba(245,243,255,.96));
}
.pricing-card h3 {
  font-size: 34px;
}
.pricing-card h3 span {
  color: #64748b;
  font-size: 13px;
}

@keyframes logoFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.pricing-card ul {
  margin: 14px 0;
  padding-left: 18px;
}
@media (max-width: 900px) {
  .landing-hero-stage,
  .how-grid {
    grid-template-columns: 1fr;
  }
  .landing-hero-stage .landing-hero-copy {
    text-align: center;
  }
  .landing-hero-actions {
    justify-content: center;
  }
  .how-grid::before {
    display: none;
  }
  .service-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mock-row {
    grid-template-columns: 1fr 1fr;
  }
  .mock-row-head {
    display: none;
  }
}

/* Landing v4: dark-matter glass/wireframe system */
#authScreen.auth-screen {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 59, 92, .20), transparent 24rem),
    radial-gradient(circle at 78% 8%, rgba(59, 130, 246, .18), transparent 28rem),
    radial-gradient(circle at 46% 42%, rgba(168, 85, 247, .16), transparent 30rem),
    linear-gradient(135deg, #02030a 0%, #060814 48%, #03040a 100%);
  color: #f8fafc;
}
.ambient-field {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(18px);
  opacity: .82;
}
.ambient-field i {
  position: absolute;
  width: 34vmax;
  height: 34vmax;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,59,92,.20), transparent 62%);
  animation: neuralBloom 18s ease-in-out infinite;
}
.ambient-field i:nth-child(1) { left: 4%; top: 4%; }
.ambient-field i:nth-child(2) { right: 8%; top: 12%; background: radial-gradient(circle, rgba(59,130,246,.20), transparent 62%); animation-delay: -5s; }
.ambient-field i:nth-child(3) { left: 32%; bottom: 0; background: radial-gradient(circle, rgba(168,85,247,.18), transparent 62%); animation-delay: -9s; }
.ambient-field i:nth-child(4) { right: 18%; bottom: 10%; background: radial-gradient(circle, rgba(20,184,166,.14), transparent 62%); animation-delay: -13s; }
@keyframes neuralBloom {
  0%, 100% { transform: translate3d(0,0,0) scale(.82); opacity: .46; }
  45% { transform: translate3d(8vw,-5vh,0) scale(1.08); opacity: .86; }
  70% { transform: translate3d(-6vw,7vh,0) scale(.94); opacity: .58; }
}
#authScreen .landing-nav,
#authScreen .landing-command,
#authScreen .auth-card {
  position: relative;
  z-index: 1;
}
#authScreen .landing-nav {
  background: transparent;
  border: 0;
  backdrop-filter: none;
}
#authScreen .landing-nav-link,
#authScreen .nav-auth-btn {
  color: rgba(248,250,252,.78);
}
#authScreen .nav-auth-btn {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
}
#authScreen .nav-auth-btn.gold {
  color: #fff;
  border-color: rgba(255,59,92,.34);
  background: linear-gradient(135deg, rgba(255,59,92,.28), rgba(236,72,153,.22));
}
#authScreen .mondaily-symbol {
  border: 1px solid rgba(255,255,255,.70);
  background: transparent;
  box-shadow: none;
  animation: none;
}
#authScreen .mondaily-symbol span {
  width: 19px;
  height: 19px;
  background: transparent;
  border: 2px solid #ffffff;
  box-shadow: none;
}
#authScreen .animated-mondaily-logo {
  color: #fff;
  background: none;
  -webkit-text-fill-color: initial;
  animation: none;
  letter-spacing: .04em;
}
#authScreen .animated-mondaily-logo b {
  color: #ff3b5c;
  background: transparent;
  border-color: rgba(255,59,92,.38);
}
.landing-v4 {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 70px 0 96px;
  align-content: start;
  gap: 28px;
}
.glass-plate,
#authScreen .auth-card {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: rgba(255,255,255,.065);
  box-shadow: none;
  backdrop-filter: blur(20px);
}
.v4-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  min-height: 420px;
  padding: clamp(26px, 5vw, 58px);
  align-items: center;
}
.v4-hero h2,
.glass-plate h2,
.pricing-v4 h2 {
  margin: 10px 0;
  max-width: 780px;
  color: #fff;
  font-size: clamp(38px, 7vw, 88px);
  line-height: .92;
  letter-spacing: -.04em;
}
.v4-hero p,
.glass-plate p,
.pricing-v4 p {
  color: rgba(226,232,240,.72);
}
.wire-orbit {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}
.wire-orbit::before,
.wire-orbit::after,
.wire-orbit span {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  animation: orbitSpin 12s linear infinite;
}
.wire-orbit::after { inset: 28%; animation-duration: 8s; animation-direction: reverse; border-color: rgba(255,59,92,.35); }
.wire-orbit span:nth-child(1) { inset: 5%; transform: rotate(34deg); border-color: rgba(59,130,246,.25); }
.wire-orbit span:nth-child(2) { inset: 20%; transform: rotate(68deg); border-color: rgba(168,85,247,.25); }
.wire-orbit span:nth-child(3) { inset: 42%; background: #ff3b5c; border: 0; box-shadow: 0 0 30px rgba(255,59,92,.55); }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.ai-playground {
  padding: clamp(20px, 4vw, 34px);
}
#authScreen .landing-chatbox {
  width: 100%;
  border: 1px solid rgba(255,59,92,.34);
  background: rgba(2,6,23,.38);
  box-shadow: 0 0 40px rgba(255, 59, 92, .16);
}
#authScreen .landing-chat-message {
  color: #f8fafc;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
#authScreen .landing-chat-message.ai {
  color: #fff;
  background: rgba(255,59,92,.10);
  border-color: rgba(255,59,92,.30);
}
#authScreen .landing-chat-input {
  border-top-color: rgba(255,255,255,.10);
}
#authScreen .landing-chat-input input,
.mock-row input,
.mock-row select {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
#authScreen .landing-chat-input button,
.mock-add-btn,
.price-btn,
.primary-demo {
  color: #fff !important;
  border-color: rgba(255,59,92,.34) !important;
  background: linear-gradient(135deg, #ff3b5c, #ec4899) !important;
}
.ai-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.ai-chip-row button,
#authScreen .workspace-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(248,250,252,.82);
  background: rgba(255,255,255,.055);
  box-shadow: none;
  backdrop-filter: blur(14px);
}
.ai-chip-row button {
  padding: 9px 12px;
}
.trial-highlight {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,59,92,.24);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,59,92,.14), rgba(236,72,153,.08));
}
.trial-highlight span { color: rgba(248,250,252,.70); }
.landing-live-board {
  padding: clamp(18px, 3vw, 26px);
}
.live-board-head h3,
.glass-plate h3 {
  color: #fff;
}
.mock-table {
  border-color: rgba(255,255,255,.12);
}
.mock-row {
  border-top-color: rgba(255,255,255,.10);
}
.mock-row-head {
  color: rgba(248,250,252,.58);
  background: rgba(255,255,255,.04);
}
.mock-status.status-new,
.mock-status.status-working,
.mock-status.status-qualified,
.mock-status.status-closed {
  color: #fff;
  border-color: rgba(255,255,255,.14);
}
.mock-status.status-new { background: rgba(59,130,246,.22); }
.mock-status.status-working { background: rgba(236,72,153,.22); }
.mock-status.status-qualified { background: rgba(34,197,94,.20); }
.mock-status.status-closed { background: rgba(148,163,184,.18); }
.mock-row-actions button {
  color: #fff;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
}
.service-grid {
  grid-template-columns: repeat(3, 1fr);
}
#authScreen .workspace-card {
  min-height: 108px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  border-radius: 20px;
  padding: 16px;
}
#authScreen .workspace-card span {
  color: #fff;
  background: rgba(255,255,255,.08);
}
#authScreen .workspace-card small {
  color: rgba(226,232,240,.62);
}
.pricing-v4 {
  width: 100%;
}
.pricing-v4 > .eyebrow,
.pricing-v4 > h2 {
  padding-left: 4px;
}
.pricing-grid {
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}
.pricing-card {
  position: relative;
  color: #fff;
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
  box-shadow: none;
}
.pricing-card.featured {
  transform: scale(1.045);
  border: 1px solid transparent;
  background:
    linear-gradient(#111827, #111827) padding-box,
    linear-gradient(135deg, #ff3b5c, #ec4899, #3b82f6) border-box;
}
.pricing-card em {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(255,59,92,.25);
  font-style: normal;
  font-size: 11px;
}
.pricing-card h3,
.pricing-card p,
.pricing-card li {
  color: #fff;
}
.pricing-card h3 span,
.pricing-card li {
  color: rgba(226,232,240,.70);
}
@media (max-width: 900px) {
  .v4-hero,
  .pricing-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
}

/* Landing v5: compact Meta-inspired blue glass layout */
#authScreen.auth-screen {
  background:
    radial-gradient(circle at 18% 8%, rgba(14, 165, 233, .18), transparent 26rem),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, .16), transparent 28rem),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, .11), transparent 34rem),
    linear-gradient(135deg, #020617 0%, #07111f 44%, #091528 100%);
}
.ambient-field i {
  background: radial-gradient(circle, rgba(14,165,233,.18), transparent 62%);
}
.ambient-field i:nth-child(2) { background: radial-gradient(circle, rgba(59,130,246,.18), transparent 62%); }
.ambient-field i:nth-child(3) { background: radial-gradient(circle, rgba(99,102,241,.14), transparent 62%); }
.ambient-field i:nth-child(4) { background: radial-gradient(circle, rgba(6,182,212,.12), transparent 62%); }
#authScreen .mondaily-symbol {
  animation: logoFloatMini 4.8s ease-in-out infinite;
}
@keyframes logoFloatMini {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.landing-v5 {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px 0 86px;
  align-content: start;
  gap: 24px;
}
.hero-chat-first {
  width: min(760px, 100%);
  justify-self: center;
  text-align: center;
}
.hero-chat-first h2 {
  margin: 6px 0 18px;
  color: #f8fafc;
  font-size: clamp(28px, 4.8vw, 54px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 500;
}
.hero-chat-first .eyebrow,
.feature-lines p,
.pricing-v4 .eyebrow {
  color: rgba(186, 230, 253, .76);
}
#authScreen .landing-chatbox {
  border-color: rgba(125, 211, 252, .30);
  background: rgba(8, 20, 38, .44);
  box-shadow: 0 0 32px rgba(14,165,233,.12);
}
.landing-chat-messages {
  min-height: 118px;
  padding: 16px;
}
.landing-chat-message {
  font-size: 13px;
}
.trial-highlight {
  margin: 0 10px 10px;
  padding: 10px 12px;
  border-color: rgba(125,211,252,.24);
  background: linear-gradient(135deg, rgba(14,165,233,.16), rgba(59,130,246,.10));
  font-size: 12px;
}
#authScreen .landing-chat-input button,
.mock-add-btn,
.price-btn,
.primary-demo {
  border-color: rgba(125,211,252,.34) !important;
  background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
}
.ai-chip-row {
  justify-content: center;
}
.ai-chip-row button {
  padding: 7px 10px;
  font-size: 11px;
  color: rgba(226,232,240,.76);
}
.feature-lines {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.feature-lines p {
  margin: 0;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 300;
}
.feature-lines .trial-demo-btn {
  margin-top: 10px;
}
.role-wireframes {
  width: 100%;
}
.role-wireframes .service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
#authScreen .workspace-card {
  min-height: 74px;
  padding: 10px;
  border-radius: 12px;
  border-color: rgba(125,211,252,.18);
  background: transparent;
}
#authScreen .workspace-card span {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(125,211,252,.20);
  border-radius: 7px;
  color: #bae6fd;
  background: transparent;
  font-size: 11px;
}
#authScreen .workspace-card strong {
  font-size: 11px;
  font-weight: 400;
}
#authScreen .workspace-card small {
  font-size: 9px;
}
.pricing-v4 h2 {
  max-width: 620px;
  color: #f8fafc;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 500;
}
.pricing-grid {
  gap: 12px;
}
.pricing-card {
  min-height: 330px;
  padding: 18px;
  border-color: rgba(125,211,252,.16);
  background: rgba(255,255,255,.08);
  transition: transform .25s ease, border-color .25s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(125,211,252,.36);
}
.pricing-card.featured {
  transform: scale(1.035);
  background:
    linear-gradient(rgba(8,20,38,.92), rgba(8,20,38,.92)) padding-box,
    linear-gradient(135deg, #0ea5e9, #2563eb, #22d3ee) border-box;
}
.pricing-card p {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pricing-card h3 {
  margin-top: 12px;
  font-size: 34px;
}
.pricing-card li {
  position: relative;
  margin: 9px 0;
  list-style: none;
  font-size: 12px;
}
.pricing-card li::before {
  content: "✓";
  margin-right: 8px;
  color: #7dd3fc;
  text-shadow: 0 0 0 rgba(125,211,252,0);
  transition: text-shadow .25s ease, color .25s ease;
}
.pricing-card:hover li::before {
  color: #e0f2fe;
  text-shadow: 0 0 12px rgba(125,211,252,.65);
}
.pricing-card ul {
  padding-left: 0;
}
.pricing-card em {
  background: rgba(14,165,233,.22);
}
@media (max-width: 900px) {
  .role-wireframes .service-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .role-wireframes .service-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Landing v6: scale, watermark, transparent matrices */
#authScreen .animated-mondaily-logo {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
}
#authScreen .mondaily-symbol {
  animation: emblemVectorFloat 6s ease-in-out infinite;
}
@keyframes emblemVectorFloat {
  0%, 100% { transform: translate3d(0,0,0); }
  25% { transform: translate3d(3px,-5px,0); }
  60% { transform: translate3d(-3px,3px,0); }
}
.landing-v5 {
  position: relative;
}
.logo-watermark {
  position: fixed;
  z-index: 0;
  right: -9vw;
  top: 12vh;
  width: min(56vw, 720px);
  aspect-ratio: 1;
  opacity: .05;
  filter: blur(2px);
  border: 2px solid #ffffff;
  border-radius: 34%;
  animation: spinSlow 46s linear infinite;
  pointer-events: none;
}
.logo-watermark span {
  position: absolute;
  inset: 31%;
  transform: rotate(45deg);
  border: 16px solid #ffffff;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hero-chat-first {
  width: min(980px, 100%);
}
#authScreen .landing-chatbox {
  min-height: 430px;
  display: grid;
  grid-template-rows: 1fr auto;
  border-color: rgba(147,197,253,.34);
  background: rgba(8,20,38,.50);
}
.landing-chat-messages {
  min-height: 340px;
  padding: 24px;
}
.landing-chat-input {
  max-width: min(720px, calc(100% - 22px));
  width: 100%;
  justify-self: center;
  margin: 0 0 12px;
  padding: 6px 6px 6px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}
.landing-chat-input input {
  min-height: 34px;
  font-size: 12px;
  border: 0 !important;
  background: transparent !important;
}
#authScreen .landing-chat-input button {
  width: 34px;
  height: 34px;
  color: #bae6fd !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.landing-chat-input button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trial-highlight {
  width: fit-content;
  margin: 14px auto 0;
  padding: 9px 14px;
  border-color: rgba(147,197,253,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: rgba(224,242,254,.88);
  font-size: 12px;
  font-weight: 300;
}
.trial-highlight strong {
  font-weight: 300;
}
.trial-highlight span {
  color: rgba(186,230,253,.66);
}
.service-directory {
  display: grid;
  grid-template-columns: repeat(6, auto);
  gap: 12px 18px;
  justify-content: center;
  margin: 8px 0 6px;
  color: rgba(186,230,253,.72);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .02em;
}
.service-directory span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 99px;
  background: rgba(125,211,252,.62);
}
#authScreen .workspace-card span {
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: #7dd3fc;
  border-color: rgba(125,211,252,.28);
}
#authScreen .workspace-card strong {
  color: #e0f2fe;
}
#authScreen .workspace-card small {
  color: rgba(147,197,253,.70);
}
.pricing-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.pricing-card.featured {
  background:
    linear-gradient(rgba(8,20,38,.74), rgba(8,20,38,.74)) padding-box,
    linear-gradient(135deg, #38bdf8, #6366f1, #22d3ee) border-box;
}
.pricing-card .price-btn {
  width: 100%;
  border: 1px solid transparent !important;
  background: rgba(255,255,255,.035) !important;
  box-shadow: 0 0 22px rgba(125,211,252,.10);
}
.pricing-card:nth-child(1) .price-btn {
  color: #a5f3fc !important;
  background:
    linear-gradient(rgba(8,20,38,.75), rgba(8,20,38,.75)) padding-box,
    linear-gradient(135deg, rgba(34,211,238,.85), rgba(125,211,252,.25)) border-box !important;
}
.pricing-card:nth-child(2) .price-btn {
  color: #dbeafe !important;
  background:
    linear-gradient(rgba(8,20,38,.78), rgba(8,20,38,.78)) padding-box,
    linear-gradient(135deg, #38bdf8, #6366f1, #22d3ee) border-box !important;
  box-shadow: 0 0 26px rgba(59,130,246,.18);
}
.pricing-card:nth-child(3) .price-btn {
  color: #fde68a !important;
  background:
    linear-gradient(rgba(8,20,38,.78), rgba(8,20,38,.78)) padding-box,
    linear-gradient(135deg, rgba(253,230,138,.88), rgba(245,158,11,.32)) border-box !important;
  box-shadow: 0 0 24px rgba(245,158,11,.13);
}
@media (max-width: 900px) {
  .service-directory {
    grid-template-columns: repeat(3, auto);
  }
}
@media (max-width: 620px) {
  .service-directory {
    grid-template-columns: 1fr 1fr;
  }
  #authScreen .landing-chatbox {
    min-height: 360px;
  }
  .landing-chat-messages {
    min-height: 260px;
  }
}
@media (max-width: 620px) {
  .landing-nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .service-grid,
  .pricing-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .landing-demo-band {
    padding: 26px;
  }
}

/* Landing v7: alignment, compact chat, quote form */
#authScreen .animated-mondaily-logo {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: .16em;
}
#authScreen .landing-logo {
  align-items: center;
}
#authScreen .mondaily-symbol {
  transform-origin: center;
  animation: spinSlow 12s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.logo-watermark {
  animation: spinSlow 60s linear infinite;
}
.hero-chat-first {
  width: min(760px, 100%);
}
.hero-chat-first h2 {
  font-size: clamp(24px, 3.8vw, 42px);
}
#authScreen .landing-chatbox {
  min-height: 300px;
  border-radius: 20px;
}
.landing-chat-messages {
  min-height: 214px;
  padding: 18px;
}
.landing-chat-input {
  max-width: min(560px, calc(100% - 22px));
  min-height: 42px;
  padding: 5px 5px 5px 12px;
  border-radius: 14px;
}
#authScreen .landing-chat-input button {
  display: grid;
  place-items: center;
}
.landing-chat-input button svg {
  display: block;
  margin: auto;
}
.trial-highlight {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  letter-spacing: .01em;
}
.feature-lines .trial-demo-btn,
.landing-hero-actions .trial-demo-btn {
  border-radius: 12px;
  min-height: 40px;
  padding: 9px 16px;
}
#authScreen .workspace-card:hover {
  color: #e0f2fe;
  border-color: rgba(125,211,252,.42);
  background: rgba(14,165,233,.10);
}
#authScreen .workspace-card:hover strong,
#authScreen .workspace-card:hover small,
#authScreen .workspace-card:hover span {
  color: #e0f2fe;
}
#authScreen .workspace-card:hover span {
  border-color: rgba(186,230,253,.42);
  background: rgba(14,165,233,.12);
}
.pricing-v4 h2 {
  max-width: 760px;
}
.pricing-card li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-card li::before {
  display: none;
}
.pricing-card li i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: linear-gradient(135deg, #7dd3fc, #2563eb);
  box-shadow: 0 0 10px rgba(125,211,252,.30);
}
.pricing-card:nth-child(2) li i {
  background: linear-gradient(135deg, #22d3ee, #818cf8);
}
.pricing-card:nth-child(3) li i {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}
.enterprise-intake {
  width: 100%;
  margin-top: 10px;
  padding: 28px 0 8px;
  color: #fff;
}
.enterprise-intake h2 {
  margin: 8px 0 22px;
  color: #f8fafc;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -.02em;
}
.enterprise-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}
.enterprise-form input,
.enterprise-form textarea {
  width: 100%;
  padding: 10px 0;
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.20);
  outline: none;
  background: transparent;
  resize: vertical;
}
.enterprise-form input:focus,
.enterprise-form textarea:focus {
  border-bottom-color: rgba(255,255,255,.50);
}
.enterprise-form textarea,
.enterprise-form button {
  grid-column: 1 / -1;
}
.enterprise-form textarea {
  min-height: 78px;
}
.enterprise-form ::placeholder {
  color: rgba(226,232,240,.50);
}
.enterprise-form button {
  justify-self: start;
  width: auto;
  min-width: 170px;
}
@media (max-width: 620px) {
  .enterprise-form {
    grid-template-columns: 1fr;
  }
}

/* Landing v8: Gemini-style Mondi and auth contrast */
.hero-chat-first {
  width: min(860px, 100%);
}
.hero-chat-first h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 300;
}
.chat-sub-label {
  margin: 0 auto 16px;
  max-width: 560px;
  color: rgba(186,230,253,.70);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
}
#authScreen .landing-chatbox {
  min-height: 330px;
  border-radius: 26px;
  border-color: rgba(147,197,253,.18);
  background: rgba(8,20,38,.28);
  box-shadow: none;
}
.agent-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px 0;
  color: rgba(224,242,254,.82);
  font-size: 12px;
  font-weight: 400;
}
.agent-header span {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(125,211,252,.32);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(125,211,252,.30), transparent 62%);
}
.landing-chat-messages {
  min-height: 226px;
  padding: 18px;
}
#authScreen .landing-chat-message {
  border: 0;
  background: transparent;
  color: rgba(248,250,252,.86);
  padding: 8px 4px;
}
#authScreen .landing-chat-message.ai {
  background: transparent;
  color: rgba(224,242,254,.92);
}
.landing-chat-input {
  max-width: min(650px, calc(100% - 30px));
  min-height: 44px;
  border-radius: 999px;
  border-color: rgba(147,197,253,.18);
  background: rgba(255,255,255,.055);
}
.landing-chat-input input {
  min-height: 32px;
}
#authScreen .landing-chat-input button {
  width: 34px;
  height: 34px;
}
.pricing-v4 h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
}
.pricing-v4 h2 strong {
  font-weight: 650;
}
.pricing-v4 h2 span {
  color: rgba(224,242,254,.68);
  font-weight: 250;
}
.pricing-v4 h2 span::before {
  content: "";
  margin: 0;
}
.enterprise-intake {
  padding-top: 18px;
}
.enterprise-form {
  gap: 14px 22px;
}
.enterprise-form textarea {
  min-height: 64px;
}
.enterprise-form button.price-btn {
  width: auto;
  min-width: 150px;
  color: #e0f2fe !important;
  border: 1px solid rgba(125,211,252,.42) !important;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: 0 0 18px rgba(125,211,252,.12);
}
.google-auth-btn {
  color: #1f2937 !important;
  border-color: rgba(226,232,240,.95) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: none !important;
  font-weight: 500;
}
.google-auth-btn span {
  background: transparent !important;
  color: #4285f4 !important;
}
#authScreen .auth-card input,
#authScreen .auth-card textarea,
#authScreen .auth-card select {
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  background: rgba(255,255,255,.10) !important;
}
#authScreen .auth-card input:focus,
#authScreen .auth-card textarea:focus,
#authScreen .auth-card select:focus {
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.36) !important;
}
#authScreen .auth-card input::placeholder,
#authScreen .auth-card textarea::placeholder {
  color: rgba(226,232,240,.58);
}

.feature-lines p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.feature-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(125,211,252,.22);
}
.feature-dot.cyan {
  background: linear-gradient(135deg, #67e8f9, #2563eb);
}
.feature-dot.violet {
  background: linear-gradient(135deg, #c4b5fd, #6366f1);
}
.feature-dot.amber {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}
#authScreen .workspace-card:hover {
  color: #f8fafc;
  background: rgba(14,165,233,.11);
}
#authScreen .workspace-card:hover strong {
  color: #f8fafc;
}
#authScreen .workspace-card:hover small {
  color: rgba(219,234,254,.82);
}

/* Landing v9: final compact nav guard */
.landing-nav-link,
.nav-auth-btn {
  white-space: nowrap;
}
.landing-nav-actions {
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 620px) {
  .landing-nav {
    gap: 10px;
  }
  .landing-nav-actions {
    gap: 6px;
  }
  .landing-nav-link,
  .nav-auth-btn {
    font-size: 12px;
    line-height: 1;
  }
  .nav-auth-btn {
    min-width: 64px;
    padding: 8px 10px;
  }
}

/* Settings and billing console */
.settings-panel {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2,6,23,.48);
  backdrop-filter: blur(18px);
}
.settings-card {
  width: min(940px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(147,197,253,.16);
  border-radius: 18px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(56,189,248,.11), transparent 20rem),
    rgba(8,20,38,.62);
  box-shadow: none;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.settings-nav {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.settings-nav label {
  display: grid;
  gap: 7px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 400;
}
.settings-nav select {
  min-height: 40px;
  padding: 8px 10px;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 10px;
  outline: none;
  background: rgba(15,23,42,.72);
}
.settings-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.settings-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.settings-flat-form label {
  display: grid;
  gap: 6px;
  color: #cbd5e1;
  font-size: 12px;
}
.settings-block h3 {
  margin: 0 0 4px;
  color: rgba(224,242,254,.88);
  font-size: 13px;
  font-weight: 400;
}
.settings-block input {
  width: 100%;
  min-height: 39px;
  padding: 9px 11px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 10px;
  outline: none;
  background: rgba(255,255,255,.05);
}
.settings-block input:disabled {
  color: #94a3b8;
  background: rgba(148,163,184,.08);
  cursor: not-allowed;
}
.settings-block input:focus {
  border-color: rgba(147,197,253,.42);
  background: rgba(255,255,255,.08);
}
.settings-muted {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}
.current-plan-row,
.billing-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(226,232,240,.14);
}
.current-plan-row > div {
  display: grid;
  gap: 2px;
  margin-right: auto;
}
.current-plan-row strong,
.billing-date-row strong {
  color: #f8fafc;
  font-weight: 500;
}
.current-plan-row small,
.billing-date-row span {
  color: #94a3b8;
  font-size: 11px;
}
.tier-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #38bdf8;
}
.tier-pro { color: #f59e0b; border-color: rgba(245,158,11,.42); }
.tier-plus { color: #22c55e; border-color: rgba(34,197,94,.42); }
.billing-plan-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.outline-action,
.outline-warning,
.outline-danger {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 9px;
  background: transparent;
  font-size: 12px;
}
.outline-action {
  color: #bae6fd;
  border: 1px solid rgba(125,211,252,.38);
  box-shadow: 0 0 18px rgba(125,211,252,.08);
}
.outline-warning {
  color: #fde68a;
  border: 1px solid rgba(253,230,138,.36);
}
.outline-danger {
  color: #fecdd3;
  border: 1px solid rgba(251,113,133,.38);
}
.invoice-grid {
  display: grid;
  gap: 7px;
}
.invoice-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr .7fr .6fr .5fr;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  color: inherit;
  border: 0;
  border-bottom: 1px solid rgba(226,232,240,.14);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.flat-invoice-card {
  box-shadow: none;
}
.invoice-review-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 9px 12px;
  margin: 14px 0;
}
.invoice-review-grid span {
  color: #94a3b8;
}
.invoice-review-grid strong {
  color: #f8fafc;
  font-weight: 500;
}
.invoice-row strong {
  color: #7dd3fc;
  font-weight: 400;
  text-align: right;
}
body[data-theme="morning"] .settings-panel {
  background: rgba(245,245,247,.64);
}
body[data-theme="morning"] .settings-card,
body[data-theme="morning"] .settings-block {
  color: #1d1d1f;
  border-color: rgba(60,60,67,.14);
  background: rgba(255,255,255,.76);
}
body[data-theme="morning"] .settings-block h3,
body[data-theme="morning"] .invoice-row {
  color: #1d1d1f;
}
body[data-theme="morning"] .settings-block input {
  color: #1d1d1f;
  border-color: rgba(60,60,67,.18);
  background: rgba(255,255,255,.72);
}
@media (max-width: 780px) {
  .settings-grid,
  .settings-view,
  .invoice-row {
    grid-template-columns: 1fr;
  }
  .invoice-row strong {
    text-align: left;
  }
}

/* Landing v10: structural symmetry, locked logo, responsive drawer */
#authScreen {
  overflow-x: hidden;
}
#authScreen .landing-nav {
  position: relative;
  z-index: 12;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
}
#authScreen .landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
#authScreen .landing-logo .mondaily-symbol {
  flex: 0 0 auto;
  transform-origin: center center;
  animation: spinSlow 13s linear infinite !important;
}
#authScreen .landing-logo .animated-mondaily-logo {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: .16em;
  line-height: 1;
  white-space: nowrap;
}
#authScreen .landing-v5 {
  width: min(1180px, 100%);
  min-height: auto;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
}
#authScreen .hero-chat-first,
#authScreen #hero,
#authScreen #what-we-do,
#authScreen #pricing,
#authScreen #enterpriseQuote,
#authScreen .landing-footer {
  width: 100%;
}
#authScreen .hero-chat-first {
  max-width: 720px;
  margin-inline: auto;
  display: block;
  text-align: center;
}
#authScreen .landing-chatbox {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
#authScreen .landing-chat-input {
  width: calc(100% - 30px);
  max-width: 620px;
  margin-inline: auto;
}
#authScreen .feature-lines {
  max-width: 820px;
  margin-inline: auto;
}
#authScreen .feature-lines p {
  width: 100%;
  text-align: center;
}
#authScreen .role-wireframes .service-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
#authScreen .workspace-card {
  width: 100%;
  min-width: 0;
  color: #e0f2fe;
}
#authScreen .workspace-card:hover {
  color: #fff;
  border-color: rgba(125,211,252,.48);
  background: rgba(14,165,233,.13);
}
#authScreen .pricing-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
#authScreen .pricing-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
#authScreen .enterprise-intake {
  max-width: 900px;
  margin-inline: auto;
}
.landing-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  color: #e0f2fe;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(16px);
}
.landing-menu-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.landing-side-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: 16rem;
  height: 100%;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  border-left: 1px solid rgba(255,255,255,.10);
  background: rgba(15,23,42,.95);
  box-shadow: -18px 0 40px rgba(0,0,0,.32);
  backdrop-filter: blur(24px);
  transform: translateX(100%);
  transition: transform .3s ease;
}
.landing-side-nav.open {
  transform: translateX(0);
}
.landing-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #e0f2fe;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.landing-side-head button,
.landing-side-nav a,
.landing-side-nav button {
  border: 1px solid rgba(255,255,255,.12);
  color: #e0f2fe;
  background: rgba(255,255,255,.045);
}
.landing-side-head button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.landing-side-nav a,
.landing-side-nav button {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
}
.landing-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 0 0;
  color: rgba(186,230,253,.58);
  font-size: 11px;
}
.landing-footer a {
  color: rgba(224,242,254,.72);
  text-decoration: none;
}
@media (max-width: 1024px) {
  #authScreen .landing-nav-actions {
    display: none;
  }
  .landing-menu-btn {
    display: grid;
  }
  #authScreen .role-wireframes .service-grid,
  #authScreen .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .auth-screen {
    padding: 18px;
  }
  #authScreen .landing-logo .animated-mondaily-logo {
    font-size: 19px;
    letter-spacing: .12em;
  }
  #authScreen .landing-v5 {
    padding-top: 26px;
    gap: 30px;
  }
  #authScreen .landing-chatbox {
    min-height: 310px;
  }
  #authScreen .landing-chat-messages {
    min-height: 198px;
  }
  #authScreen .role-wireframes .service-grid,
  #authScreen .pricing-grid,
  .enterprise-form {
    grid-template-columns: 1fr;
  }
  .service-directory {
    grid-template-columns: repeat(2, minmax(0, auto));
  }
}

/* Light-mode readability and account dedupe feedback */
.toast {
  border: 1px solid transparent;
  backdrop-filter: blur(14px);
}
.toast strong {
  display: block;
  color: inherit;
  font-weight: 600;
}
.toast .card-meta {
  color: inherit;
  opacity: .78;
}
.toast-success {
  color: #16a34a;
  border-color: rgba(34,197,94,.22);
  background: rgba(34,197,94,.16);
}
.toast-error {
  color: #dc2626;
  border-color: rgba(239,68,68,.22);
  background: rgba(239,68,68,.16);
}
.toast-pending {
  color: #a16207;
  border-color: rgba(234,179,8,.26);
  background: rgba(234,179,8,.18);
}
body[data-theme="morning"] .toast {
  box-shadow: none;
}
body[data-theme="morning"] .toast .card-meta {
  color: inherit;
  opacity: .76;
}
body[data-theme="morning"] h2,
body[data-theme="morning"] h3,
body[data-theme="morning"] .panel-head h2,
body[data-theme="morning"] .collection h3,
body[data-theme="morning"] .records-section-head h3,
body[data-theme="morning"] .settings-block h3,
body[data-theme="morning"] .enterprise-intake h2 {
  color: #1e293b;
  font-weight: 450;
  letter-spacing: 0;
}
body[data-theme="morning"] .settings-block {
  border-color: #e2e8f0;
  background: rgba(255,255,255,.88);
}
body[data-theme="morning"] .outline-action,
body[data-theme="morning"] .outline-warning,
body[data-theme="morning"] .outline-danger {
  color: #1e293b;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  box-shadow: 0 6px 16px rgba(15,23,42,.08);
}
body[data-theme="morning"] .outline-action:hover,
body[data-theme="morning"] .outline-warning:hover,
body[data-theme="morning"] .outline-danger:hover {
  background: #e2e8f0;
}
body[data-theme="morning"] .outline-danger {
  color: #991b1b;
  border-color: #fecaca;
}
body[data-theme="morning"] .outline-warning {
  color: #92400e;
  border-color: #fde68a;
}

/* Morning auto mode final contrast layer */
body[data-theme="morning"] {
  background:
    radial-gradient(circle at 12% -10%, rgba(0,122,255,.08), transparent 30rem),
    radial-gradient(circle at 90% 0%, rgba(88,86,214,.06), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #eef2f7 100%) !important;
  color: #0f172a;
}
body[data-theme="morning"] .app-shell {
  color: #0f172a;
}
body[data-theme="morning"] .topbar {
  border-bottom-color: #e2e8f0;
}
body[data-theme="morning"] .panel,
body[data-theme="morning"] .calendar-panel,
body[data-theme="morning"] .role-panel,
body[data-theme="morning"] .records-panel,
body[data-theme="morning"] .agenda-panel,
body[data-theme="morning"] .search-panel,
body[data-theme="morning"] .timer-strip,
body[data-theme="morning"] .ai-command {
  color: #0f172a;
  border-color: rgba(148,163,184,.32);
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 34px rgba(15,23,42,.06);
  backdrop-filter: blur(18px);
}
body[data-theme="morning"] .profile-text strong,
body[data-theme="morning"] .panel-head h2,
body[data-theme="morning"] .role-panel h2,
body[data-theme="morning"] .records-panel h2,
body[data-theme="morning"] .collection h3,
body[data-theme="morning"] .records-section-head h3 {
  color: #0f172a;
  font-weight: 450;
}
body[data-theme="morning"] .eyebrow,
body[data-theme="morning"] .profile-text span,
body[data-theme="morning"] .card-meta,
body[data-theme="morning"] .record-row-meta {
  color: #64748b;
}

/* Morning v2: unified premium MacOS dashboard finish */
body[data-theme="morning"] .avatar,
body[data-theme="morning"] #profileAvatar {
  color: #334155;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  box-shadow: none;
}
body[data-theme="morning"] .review-summary div,
body[data-theme="morning"] .time-stats div,
body[data-theme="morning"] .admin-stats div,
body[data-theme="morning"] .record-detail,
body[data-theme="morning"] .time-log-item {
  color: #1e293b;
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
  backdrop-filter: blur(14px);
}
body[data-theme="morning"] .review-summary span,
body[data-theme="morning"] .time-stats span,
body[data-theme="morning"] .time-log-item span {
  color: #64748b;
}
body[data-theme="morning"] .review-summary strong,
body[data-theme="morning"] .time-stats strong,
body[data-theme="morning"] .time-log-item strong,
body[data-theme="morning"] .admin-stats strong {
  color: #1e293b;
  font-weight: 500;
}
body[data-theme="morning"] .record-chip,
body[data-theme="morning"] .team-pill,
body[data-theme="morning"] .record-level {
  color: #1e293b;
  border-color: #cbd5e1;
  background: rgba(248,250,252,.92);
  font-weight: 500;
}
body[data-theme="morning"] .calendar-panel,
body[data-theme="morning"] .role-panel,
body[data-theme="morning"] .records-panel,
body[data-theme="morning"] .agenda-panel,
body[data-theme="morning"] .search-panel,
body[data-theme="morning"] .timer-strip,
body[data-theme="morning"] .ai-command,
body[data-theme="morning"] .collection,
body[data-theme="morning"] .collection-form,
body[data-theme="morning"] .collection-grid,
body[data-theme="morning"] .record-row,
body[data-theme="morning"] .task-item,
body[data-theme="morning"] .chat-message,
body[data-theme="morning"] .game-card,
body[data-theme="morning"] .game-stage,
body[data-theme="morning"] .modal-card {
  color: #0f172a;
  border-color: #e2e8f0;
  background: rgba(255,255,255,.80);
  box-shadow: 0 10px 26px rgba(15,23,42,.055);
  backdrop-filter: blur(16px);
}
body[data-theme="morning"] .collection {
  border-top-color: #e2e8f0;
  box-shadow: none;
}
body[data-theme="morning"] .record-row:hover,
body[data-theme="morning"] .task-item:hover {
  background: rgba(248,250,252,.96);
  border-color: #bfdbfe;
}
body[data-theme="morning"] .panel-head h2,
body[data-theme="morning"] .auth-copy h2,
body[data-theme="morning"] .trial-expired-overlay h2,
body[data-theme="morning"] .collection h3,
body[data-theme="morning"] .records-title,
body[data-theme="morning"] .records-section-head h3,
body[data-theme="morning"] .task-columns h3,
body[data-theme="morning"] .settings-block h3,
body[data-theme="morning"] .admin-head h2,
body[data-theme="morning"] .admin-ai-panel h3 {
  color: #1e293b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
}
body[data-theme="morning"] .settings-card {
  color: #0f172a;
  border-color: #e2e8f0;
  background: rgba(255,255,255,.94);
  box-shadow: none;
}
body[data-theme="morning"] .settings-block {
  color: #0f172a;
  border-color: #e2e8f0;
  background: rgba(255,255,255,.82);
  box-shadow: none;
}
body[data-theme="morning"] .settings-block input {
  color: #0f172a;
  border-color: #cbd5e1;
  background: rgba(248,250,252,.94);
}
body[data-theme="morning"] .settings-nav {
  border-bottom-color: #e2e8f0;
}
body[data-theme="morning"] .settings-nav label,
body[data-theme="morning"] .settings-flat-form label,
body[data-theme="morning"] .settings-muted,
body[data-theme="morning"] .current-plan-row small,
body[data-theme="morning"] .billing-date-row span,
body[data-theme="morning"] .invoice-review-grid span {
  color: #64748b;
}
body[data-theme="morning"] .settings-nav select {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f8fafc;
}
body[data-theme="morning"] .current-plan-row strong,
body[data-theme="morning"] .billing-date-row strong,
body[data-theme="morning"] .invoice-review-grid strong {
  color: #0f172a;
}
body[data-theme="morning"] .settings-block input::placeholder {
  color: #64748b;
}
body[data-theme="morning"] .outline-action,
body[data-theme="morning"] .outline-warning,
body[data-theme="morning"] .outline-danger,
body[data-theme="morning"] .settings-block button {
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: none;
  font-weight: 600;
}
body[data-theme="morning"] .outline-action {
  border-color: #93c5fd;
  box-shadow: none;
}
body[data-theme="morning"] .outline-warning {
  color: #78350f;
  border-color: #fbbf24;
  box-shadow: 0 8px 18px rgba(245,158,11,.10);
}
body[data-theme="morning"] .outline-danger {
  color: #991b1b;
  border-color: #fca5a5;
  box-shadow: 0 8px 18px rgba(220,38,38,.10);
}
body[data-theme="morning"] .outline-action:hover,
body[data-theme="morning"] .outline-warning:hover,
body[data-theme="morning"] .outline-danger:hover,
body[data-theme="morning"] .settings-block button:hover {
  background: linear-gradient(180deg, #ffffff, #dbeafe);
}

/* Two-world isolation: public marketing stays dark, morning mode stays inside workspace */
body.public-active[data-theme="morning"] {
  background:
    linear-gradient(120deg, rgba(56,189,248,.06) 1px, transparent 1px),
    linear-gradient(40deg, rgba(167,139,250,.05) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(56,189,248,.20), transparent 34rem),
    radial-gradient(circle at top right, rgba(244,114,182,.15), transparent 30rem),
    #070a12 !important;
  color: #e5eefb;
}
body.public-active[data-theme="morning"] #authScreen.auth-screen,
body.public-active #authScreen.auth-screen {
  color: #e5eefb;
  background:
    radial-gradient(circle at 18% 8%, rgba(14,165,233,.18), transparent 26rem),
    radial-gradient(circle at 80% 0%, rgba(59,130,246,.16), transparent 28rem),
    radial-gradient(circle at 50% 50%, rgba(99,102,241,.11), transparent 34rem),
    linear-gradient(135deg, #020617 0%, #07111f 44%, #091528 100%) !important;
}
body.public-active #authScreen .landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
body.public-active #authScreen .landing-logo .mondaily-symbol {
  flex: 0 0 auto;
  transform-origin: center center;
  animation: spinSlow 13s linear infinite !important;
  color: #e0f2fe;
  background: transparent;
  box-shadow: none;
}
body.public-active #authScreen .animated-mondaily-logo {
  margin: 0;
  color: transparent;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 300;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
body.public-active #authScreen .hero-chat-first h2 {
  color: #f8fafc;
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 300;
  letter-spacing: -.02em;
}
body.public-active #authScreen .chat-sub-label,
body.public-active #authScreen .feature-lines p,
body.public-active #authScreen .enterprise-intake h2,
body.public-active #authScreen .pricing-v4 h2,
body.public-active #authScreen .pricing-v4 h2 strong,
body.public-active #authScreen .pricing-v4 h2 span {
  color: #f8fafc;
}
body.public-active #authScreen .chat-sub-label,
body.public-active #authScreen .feature-lines p {
  color: rgba(186,230,253,.72);
}
body.public-active #authScreen .landing-chatbox {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  border-color: rgba(147,197,253,.18);
  background: rgba(8,20,38,.28);
  box-shadow: none;
}
body.public-active #authScreen .landing-chat-input {
  width: calc(100% - 30px);
  max-width: 620px;
  margin-inline: auto;
  border: 1px solid rgba(147,197,253,.18);
  background: rgba(255,255,255,.055);
}
body.public-active #authScreen .landing-chat-input input {
  color: #fff;
  border: 0 !important;
  background: transparent !important;
}
body.public-active #authScreen .landing-chat-input button {
  display: grid;
  place-items: center;
  color: #bae6fd !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.public-active #authScreen .landing-nav-link,
body.public-active #authScreen .nav-auth-btn,
body.public-active #authScreen .workspace-card,
body.public-active #authScreen .pricing-card,
body.public-active #authScreen .auth-card {
  color: #e5eefb;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  box-shadow: none;
}
body.public-active #authScreen .workspace-card strong,
body.public-active #authScreen .workspace-card small,
body.public-active #authScreen .auth-copy h2,
body.public-active #authScreen .role-card strong,
body.public-active #authScreen .role-card small {
  color: #e5eefb;
}
body.public-active #authScreen .auth-card input,
body.public-active #authScreen .auth-card textarea,
body.public-active #authScreen .auth-card select {
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  background: rgba(255,255,255,.10) !important;
}
body.public-active #authScreen .enterprise-form input,
body.public-active #authScreen .enterprise-form textarea {
  color: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.20) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.public-active #authScreen .enterprise-form input:focus,
body.public-active #authScreen .enterprise-form textarea:focus {
  border-bottom-color: rgba(255,255,255,.50) !important;
}
body.public-active #authScreen .enterprise-form ::placeholder {
  color: rgba(226,232,240,.55);
}
body.public-active #authScreen .enterprise-form button.price-btn {
  color: #e0f2fe !important;
  border: 1px solid rgba(125,211,252,.42) !important;
  background: transparent !important;
  box-shadow: 0 0 18px rgba(125,211,252,.12) !important;
}
body.public-active #authScreen .google-auth-btn {
  color: #1f2937 !important;
  border-color: rgba(226,232,240,.95) !important;
  background: rgba(255,255,255,.96) !important;
}
body.public-active #authScreen .landing-footer,
body.public-active #authScreen .landing-footer a {
  color: rgba(224,242,254,.72);
}

/* Homepage surgical restoration */
body.public-active #authScreen .landing-logo .animated-mondaily-logo,
body.public-active #authScreen .brand-row .animated-mondaily-logo {
  display: block;
  background: linear-gradient(90deg, #7dd3fc, #c4b5fd, #60a5fa, #7dd3fc);
  background-size: 260% 260%;
  animation: geminiShimmer 7s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: .16em;
}
body.public-active #authScreen .landing-logo .animated-mondaily-logo b,
body.public-active #authScreen .brand-row .animated-mondaily-logo b {
  -webkit-text-fill-color: #22d3ee;
  color: #22d3ee;
}
body.public-active #authScreen .landing-nav-link {
  min-height: auto;
  padding: 0;
  color: rgba(224,242,254,.82);
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
body.public-active #authScreen .landing-nav-link:hover {
  color: #fff;
}
body.public-active #authScreen .feature-lines {
  gap: 9px;
}
body.public-active #authScreen .feature-lines p {
  display: inline-flex;
  margin: 0;
  color: rgba(186,230,253,.78);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}
body.public-active #authScreen .trial-highlight {
  width: 100%;
  margin: 12px auto 2px;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: rgba(224,242,254,.88);
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 300;
}
body.public-active #authScreen .ai-chip-row {
  margin-top: 13px;
  margin-bottom: 0;
  justify-content: center;
  gap: 9px;
}
body.public-active #authScreen .ai-chip-row button {
  min-height: 34px;
  padding: 8px 12px;
}
body.public-active #authScreen .trial-highlight strong {
  font-weight: 300;
}
body.public-active #authScreen .service-directory {
  width: 100%;
  justify-content: center;
  grid-template-columns: repeat(6, max-content);
  gap: 8px 12px;
  margin-top: 18px;
  font-size: 12px;
  color: rgba(186,230,253,.82);
}
body.public-active #authScreen .service-directory span::before {
  margin-right: 5px;
}

body.public-active #authScreen .role-wireframes .service-grid {
  width: min(860px, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 9px;
}
body.public-active #authScreen .workspace-card {
  min-height: 76px;
  padding: 10px 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  border-color: rgba(125,211,252,.20);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 0 22px rgba(125,211,252,.035);
}
body.public-active #authScreen .workspace-card span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #bae6fd;
  border: 1px solid rgba(125,211,252,.24);
  background: rgba(14,165,233,.08);
  font-size: 18px;
}
body.public-active #authScreen .workspace-card strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
}
body.public-active #authScreen .workspace-card small {
  color: rgba(186,230,253,.72);
  font-size: 10.5px;
  line-height: 1.25;
}
body.public-active #authScreen .workspace-card:hover {
  transform: translateY(-2px);
  border-color: rgba(186,230,253,.46);
  background: rgba(14,165,233,.10);
}
body.public-active #authScreen #trialDemoBtn {
  justify-self: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 11px 20px;
  border: 1px solid rgba(125,211,252,.42) !important;
  border-radius: 12px;
  color: #e0f2fe !important;
  background: rgba(14,165,233,.10) !important;
  box-shadow: 0 0 22px rgba(14,165,233,.16);
  font-size: 13px;
  font-weight: 500;
}
body.public-active #authScreen #trialDemoBtn:hover {
  background: rgba(14,165,233,.16) !important;
  border-color: rgba(186,230,253,.58) !important;
}
body.public-active #authScreen .pricing-card h3 {
  color: #fff !important;
}
body.public-active #authScreen .pricing-card h3 span {
  color: rgba(226,232,240,.70) !important;
}
body.public-active #authScreen .auth-tabs {
  border: 1px solid rgba(147,197,253,.16);
  background: rgba(8,20,38,.34) !important;
  box-shadow: none;
}
body.public-active #authScreen .auth-tab {
  color: rgba(224,242,254,.68);
  background: transparent !important;
}
body.public-active #authScreen .auth-tab.active {
  color: #e0f2fe;
  border-color: rgba(125,211,252,.24);
  background: rgba(14,165,233,.13) !important;
}
body.public-active #authScreen #loginForm .primary.full {
  color: #dbeafe;
  border: 1px solid rgba(96,165,250,.44);
  background: rgba(37,99,235,.18);
  box-shadow: 0 0 20px rgba(59,130,246,.14);
  font-weight: 500;
}
body.public-active #authScreen #loginForm .primary.full:hover {
  background: rgba(37,99,235,.25);
}
body.public-active #authScreen .enterprise-form input,
body.public-active #authScreen .enterprise-form textarea {
  padding: 10px 0;
  color: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.20) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Public/auth polish restore */
body.public-active #authScreen .landing-logo .animated-mondaily-logo,
body.public-active #authScreen .brand-row .animated-mondaily-logo {
  background: none !important;
  animation: none !important;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #fff;
  color: #fff !important;
}
body.public-active #authScreen .landing-logo .animated-mondaily-logo b,
body.public-active #authScreen .brand-row .animated-mondaily-logo b {
  -webkit-text-fill-color: #fb7185;
  color: #fb7185 !important;
  border-color: rgba(251,113,133,.34);
  background: rgba(251,113,133,.12);
}
body.public-active #authScreen #hero.feature-lines {
  max-width: 720px;
  width: 100%;
  margin-top: -46px;
  padding-left: 58px;
  justify-items: start;
  text-align: left;
}
body.public-active #authScreen #hero.feature-lines p {
  justify-content: flex-start;
  text-align: left;
}
body.public-active #authScreen .trial-highlight {
  margin: 12px 0 0;
}
body.public-active #authScreen .auth-form label,
body.public-active #authScreen .role-picker legend {
  color: #e0f2fe;
  font-weight: 500;
}
body.public-active #authScreen .auth-card input,
body.public-active #authScreen .auth-card textarea,
body.public-active #authScreen .auth-card select {
  color: #fff !important;
  border-color: rgba(186,230,253,.24) !important;
  background: rgba(255,255,255,.14) !important;
}
body.public-active #authScreen .auth-card input::placeholder,
body.public-active #authScreen .auth-card textarea::placeholder {
  color: rgba(226,232,240,.62);
  font-weight: 300;
}
body.public-active #authScreen .google-auth-btn {
  min-height: 42px;
  color: #3c4043 !important;
  border: 1px solid #dadce0 !important;
  border-radius: 8px;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 500;
}
body.public-active #authScreen .google-auth-btn span {
  color: #4285f4 !important;
  background: transparent !important;
  font-weight: 600;
}
body.public-active #authScreen .auth-route-card .role-grid {
  gap: 9px;
}
body.public-active #authScreen .auth-route-card .role-card {
  min-height: 78px;
  padding: 10px;
  gap: 5px;
  border-radius: 10px;
  background: rgba(255,255,255,.055);
}
body.public-active #authScreen .auth-route-card .role-card span {
  font-size: 18px;
}
body.public-active #authScreen .auth-route-card .role-card strong {
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 500;
}
body.public-active #authScreen .auth-route-card .role-card small {
  color: rgba(186,230,253,.66);
  font-size: 9px;
  line-height: 1.25;
}
body.public-active #authScreen .auth-route-card .role-card.active {
  border-color: rgba(125,211,252,.42);
  background: rgba(14,165,233,.13);
}
body.public-active #authScreen #authForm .primary.full,
body.public-active #authScreen #resetPasswordForm .primary.full {
  color: #dbeafe;
  border: 1px solid rgba(96,165,250,.44);
  background: rgba(37,99,235,.18);
  box-shadow: 0 0 20px rgba(59,130,246,.14);
  font-weight: 500;
}

/* Public responsive lock: desktop, tablet, phone */
body.public-active #authScreen .landing-v5 {
  overflow: hidden;
}
body.public-active #authScreen .landing-chatbox,
body.public-active #authScreen #hero.feature-lines,
body.public-active #authScreen #enterpriseQuote {
  max-width: min(720px, 100%);
}
body.public-active #authScreen .pricing-grid,
body.public-active #authScreen .role-wireframes .service-grid {
  max-width: 1040px;
  margin-inline: auto;
}
@media (min-width: 1025px) {
  body.public-active #authScreen .landing-nav-actions {
    display: flex;
  }
  body.public-active #authScreen .landing-menu-btn {
    display: none;
  }
  body.public-active #authScreen .role-wireframes .service-grid {
    grid-template-columns: repeat(6, minmax(118px, 1fr));
  }
  body.public-active #authScreen .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  body.public-active #authScreen {
    padding: 22px;
  }
  body.public-active #authScreen .landing-v5 {
    width: 100%;
    gap: 34px;
  }
  body.public-active #authScreen .hero-chat-first,
  body.public-active #authScreen .landing-chatbox,
  body.public-active #authScreen #hero.feature-lines {
    max-width: 680px;
  }
  body.public-active #authScreen #hero.feature-lines {
    margin-top: -34px;
    padding-left: 34px;
  }
  body.public-active #authScreen .service-directory {
    grid-template-columns: repeat(3, max-content);
    gap: 9px 16px;
  }
  body.public-active #authScreen .role-wireframes .service-grid {
    width: min(680px, 100%);
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
  body.public-active #authScreen .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.public-active #authScreen .enterprise-form,
  body.public-active #authScreen .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  body.public-active #authScreen {
    padding: 18px;
  }
  body.public-active #authScreen .landing-logo .animated-mondaily-logo,
  body.public-active #authScreen .brand-row .animated-mondaily-logo {
    font-size: 24px;
    letter-spacing: .12em;
  }
  body.public-active #authScreen .landing-v5 {
    gap: 28px;
    padding-top: 24px;
  }
  body.public-active #authScreen .hero-chat-first h2 {
    font-size: clamp(24px, 7vw, 34px);
  }
  body.public-active #authScreen .chat-sub-label {
    font-size: 12.5px;
  }
  body.public-active #authScreen .landing-chatbox {
    min-height: 300px;
  }
  body.public-active #authScreen .landing-chat-messages {
    min-height: 190px;
  }
  body.public-active #authScreen .ai-chip-row {
    gap: 7px;
  }
  body.public-active #authScreen .ai-chip-row button {
    flex: 1 1 calc(50% - 8px);
    min-width: 138px;
  }
  body.public-active #authScreen #hero.feature-lines {
    max-width: 100%;
    margin-top: -22px;
    padding-left: 0;
  }
  body.public-active #authScreen #hero.feature-lines p {
    font-size: 13px;
  }
  body.public-active #authScreen .trial-highlight {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    text-align: center;
  }
  body.public-active #authScreen .service-directory {
    grid-template-columns: repeat(2, max-content);
    gap: 8px 14px;
  }
  body.public-active #authScreen .role-wireframes .service-grid,
  body.public-active #authScreen .pricing-grid,
  body.public-active #authScreen .enterprise-form,
  body.public-active #authScreen .form-grid {
    grid-template-columns: 1fr;
  }
  body.public-active #authScreen .auth-route-card {
    margin-top: 22px;
  }
}
@media (max-width: 460px) {
  body.public-active #authScreen {
    padding: 14px;
  }
  body.public-active #authScreen .landing-logo {
    gap: 9px;
  }
  body.public-active #authScreen .landing-logo .eyebrow,
  body.public-active #authScreen .brand-row .eyebrow {
    font-size: 8px;
    letter-spacing: .08em;
  }
  body.public-active #authScreen .landing-logo .animated-mondaily-logo,
  body.public-active #authScreen .brand-row .animated-mondaily-logo {
    font-size: 19px;
    letter-spacing: .10em;
  }
  body.public-active #authScreen .landing-chat-input {
    width: calc(100% - 18px);
  }
  body.public-active #authScreen .landing-chat-input input {
    font-size: 12px;
  }
  body.public-active #authScreen .ai-chip-row button {
    flex-basis: 100%;
    min-width: 0;
  }
  body.public-active #authScreen .service-directory {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  body.public-active #authScreen .workspace-card {
    min-height: 70px;
  }
  body.public-active #authScreen .auth-route-card {
    padding: 18px;
  }
}

/* Mondi public sales chat: framed, left-aligned, typed conversation */
body.public-active #authScreen .landing-chatbox {
  border-color: rgba(125, 211, 252, .22);
  background: rgba(3, 8, 20, .58);
  box-shadow: none;
}
body.public-active #authScreen .landing-chat-messages {
  min-height: 228px;
  padding: 18px;
  align-content: start;
  gap: 10px;
  text-align: left;
}
body.public-active #authScreen .landing-chat-message {
  width: fit-content;
  max-width: min(560px, 92%);
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  color: rgba(226, 232, 240, .92);
  background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(14px);
  line-height: 1.55;
  font-size: 13px;
  font-weight: 300;
  text-align: left;
  white-space: pre-wrap;
}
body.public-active #authScreen .landing-chat-message.ai {
  justify-self: start;
  color: rgba(224, 242, 254, .94);
  border-color: rgba(125, 211, 252, .22);
  background: linear-gradient(135deg, rgba(14, 165, 233, .10), rgba(255, 255, 255, .035));
}
body.public-active #authScreen .landing-chat-message.user {
  justify-self: end;
  color: rgba(240, 249, 255, .94);
  border-color: rgba(251, 113, 133, .24);
  background: linear-gradient(135deg, rgba(251, 113, 133, .11), rgba(255, 255, 255, .04));
}
body.public-active #authScreen .ai-chip-row.in-chat {
  justify-self: start;
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 4px;
  justify-content: start;
}
body.public-active #authScreen .ai-chip-row.in-chat button {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(125, 211, 252, .18);
  color: rgba(224, 242, 254, .88);
  background: rgba(255, 255, 255, .045);
  box-shadow: none;
  font-size: 11.5px;
  font-weight: 300;
  text-align: left;
}
body.public-active #authScreen .ai-chip-row.in-chat button:hover {
  color: #fff;
  border-color: rgba(125, 211, 252, .38);
  background: rgba(14, 165, 233, .10);
}
body.public-active #authScreen .monday-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
body.public-active #authScreen .monday-chat-actions button {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(251, 191, 36, .38);
  color: #fef3c7;
  background: rgba(251, 191, 36, .08);
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
}
body.public-active #authScreen .monday-chat-actions button:hover {
  background: rgba(251, 191, 36, .14);
  border-color: rgba(251, 191, 36, .58);
}
@media (max-width: 560px) {
  body.public-active #authScreen .ai-chip-row.in-chat {
    grid-template-columns: 1fr;
  }
  body.public-active #authScreen .landing-chat-message {
    max-width: 100%;
  }
}

/* Settings: modern-classic sidebar reset */
.settings-panel {
  background: rgba(15, 23, 42, .34) !important;
  backdrop-filter: blur(14px);
}
.settings-card,
body[data-theme="morning"] .settings-card {
  width: min(980px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  padding: 0 !important;
  overflow: auto;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px;
  background: #f8fafc !important;
  box-shadow: none !important;
}
.settings-card *,
body[data-theme="morning"] .settings-card * {
  box-shadow: none !important;
  text-shadow: none !important;
}
.settings-card > .panel-head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.settings-card > .panel-head h2 {
  color: #0f172a !important;
  font-size: 17px;
  font-weight: 400 !important;
  letter-spacing: 0;
}
.settings-card > .panel-head .eyebrow {
  color: #64748b !important;
}
.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 520px;
}
.settings-sidebar {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 16px 12px;
  border-right: 1px solid #e2e8f0;
  background: #f1f5f9;
}
.settings-nav-link {
  min-height: 36px;
  padding: 8px 10px;
  color: #475569;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.settings-nav-link:hover,
.settings-nav-link.active {
  color: #0f172a;
  border-color: #e2e8f0;
  background: #ffffff;
}
.settings-view,
body[data-theme="morning"] .settings-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  padding: 18px;
  background: #f8fafc;
}
.settings-block,
body[data-theme="morning"] .settings-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  color: #334155;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px;
  background: #ffffff !important;
}
.settings-flat-form label,
body[data-theme="morning"] .settings-flat-form label {
  display: grid;
  gap: 6px;
  color: #475569 !important;
  font-size: 12px;
  font-weight: 400;
}
.settings-block h3,
body[data-theme="morning"] .settings-block h3 {
  margin: 0;
  color: #0f172a !important;
  font-size: 15px;
  font-weight: 400 !important;
  line-height: 1.35;
}
.settings-block input,
body[data-theme="morning"] .settings-block input {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px;
  outline: none;
  background: #ffffff !important;
  font-weight: 400;
}
.settings-block input:disabled,
body[data-theme="morning"] .settings-block input:disabled {
  color: #64748b !important;
  background: #f1f5f9 !important;
  cursor: not-allowed;
}
.settings-block input:focus,
body[data-theme="morning"] .settings-block input:focus {
  border-color: #94a3b8 !important;
}
.settings-muted,
body[data-theme="morning"] .settings-muted {
  margin: 0;
  color: #64748b !important;
  font-size: 12px;
  line-height: 1.5;
}
.settings-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.outline-action,
.outline-warning,
.outline-danger,
body[data-theme="morning"] .outline-action,
body[data-theme="morning"] .outline-warning,
body[data-theme="morning"] .outline-danger,
body[data-theme="morning"] .settings-block button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400 !important;
  cursor: pointer;
}
.outline-action,
body[data-theme="morning"] .outline-action,
body[data-theme="morning"] .settings-block button.outline-action {
  color: #0f172a;
  border: 1px solid #cbd5e1 !important;
  background: #e2e8f0 !important;
}
.outline-warning,
body[data-theme="morning"] .outline-warning {
  color: #713f12 !important;
  border: 1px solid #fde68a !important;
  background: #fef3c7 !important;
}
.outline-danger,
body[data-theme="morning"] .outline-danger {
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
  background: #fee2e2 !important;
}
.outline-action:hover { background: #cbd5e1 !important; }
.outline-warning:hover { background: #fde68a !important; }
.outline-danger:hover { background: #fecaca !important; }
.current-plan-row,
.billing-date-row {
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.current-plan-row strong,
.billing-date-row strong,
.invoice-row strong,
.invoice-review-grid strong {
  color: #0f172a !important;
  font-weight: 400 !important;
}
.current-plan-row small,
.billing-date-row span,
.invoice-review-grid span {
  color: #64748b !important;
}
.invoice-grid {
  display: grid;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.invoice-row {
  padding: 10px 12px;
  color: #334155;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.invoice-row:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }
  .settings-view,
  body[data-theme="morning"] .settings-view {
    grid-template-columns: 1fr;
  }
}

/* Dashboard header reset: compact static top bar */
.app-shell .topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 18px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px 24px !important;
  margin: 0 0 14px !important;
  border-bottom: 1px solid var(--line);
}
.app-shell .brand-row.compact {
  flex: 0 0 auto;
  gap: 11px;
}
.app-shell .brand-row.compact .mondaily-symbol {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px;
}
.app-shell .brand-row.compact .mondaily-symbol span {
  width: 14px !important;
  height: 14px !important;
  box-shadow: none !important;
}
.app-shell .brand-row.compact h1 {
  margin: 0;
  font-size: 22px !important;
  line-height: 1;
}
.app-shell .brand-row.compact p {
  margin: 1px 0 0;
  font-size: 11px;
  line-height: 1.2;
}
.app-shell .profile {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 9px !important;
  flex-wrap: nowrap !important;
  min-width: 0;
}
.app-shell .profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 190px;
  max-width: 260px;
}
.app-shell .profile-text strong {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}
.app-shell .profile-text span {
  font-size: 11px;
  line-height: 1.25;
}
.app-shell .trial-banner {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: auto;
  padding: 0;
  margin: 0;
  line-height: 1.2;
  color: #f8d477;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap;
}
.app-shell .trial-banner strong,
.app-shell .trial-upgrade-btn {
  font-size: 11px;
  font-weight: 400;
}
.app-shell .trial-banner strong::after {
  content: " |";
  color: rgba(248, 212, 119, .52);
}
.app-shell .trial-upgrade-btn {
  padding: 0;
  color: #fef3c7;
  border: 0;
  background: transparent;
}
.app-shell .utility-action,
.app-shell .topbar:hover .utility-action,
.app-shell .topbar:focus-within .utility-action,
.app-shell #newAppointmentBtn {
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  transition: border-color .2s ease, background .2s ease, color .2s ease !important;
}
.app-shell .mini-action {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11px;
}
body[data-theme="morning"] .app-shell .trial-banner {
  color: #946200;
  background: transparent !important;
}
body[data-theme="morning"] .app-shell .trial-banner strong::after {
  color: rgba(148, 98, 0, .45);
}
body[data-theme="morning"] .app-shell .trial-upgrade-btn {
  color: #6b4a00;
}
@media (max-width: 1180px) {
  .app-shell .topbar {
    flex-wrap: wrap;
  }
  .app-shell .profile {
    flex: 1 1 100%;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}
@media (max-width: 900px) {
  .app-shell .topbar {
    display: grid !important;
    grid-template-columns: 1fr auto;
    padding: 12px 14px !important;
  }
  .app-shell .profile {
    grid-column: 1 / -1;
  }
}

/* Plans sheet: flat spreadsheet finish */
.plans-sheet-panel {
  background: rgba(15, 23, 42, .34) !important;
  backdrop-filter: blur(14px);
}
.plans-sheet-card,
body[data-theme="morning"] .plans-sheet-card {
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 128px));
  overflow: auto;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px;
  background: #f8fafc !important;
  box-shadow: none !important;
}
.plans-sheet-card *,
body[data-theme="morning"] .plans-sheet-card * {
  box-shadow: none !important;
  text-shadow: none !important;
}
.plans-sheet-card .panel-head,
body[data-theme="morning"] .plans-sheet-card .panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  backdrop-filter: none;
}
.plans-sheet-card h2,
body[data-theme="morning"] .plans-sheet-card h2 {
  margin: 2px 0 0;
  color: #0f172a !important;
  font-size: 17px;
  font-weight: 400;
}
.plans-sheet-grid {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) repeat(3, minmax(180px, 1fr));
  gap: 0;
  padding: 14px;
}
.plans-cell,
body[data-theme="morning"] .plans-cell {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  color: #334155 !important;
  border: 0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  font-size: 12px;
  font-weight: 400 !important;
}
.plans-cell:nth-child(4n) {
  border-right: 0 !important;
}
.plans-corner,
.feature-cell,
body[data-theme="morning"] .plans-corner,
body[data-theme="morning"] .feature-cell {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  font-weight: 400 !important;
}
.plans-head {
  min-height: 76px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.plans-head span,
body[data-theme="morning"] .plans-head span {
  color: #334155 !important;
  font-size: 13px;
  font-weight: 400;
}
.plans-head strong,
body[data-theme="morning"] .plans-head strong {
  color: #0f172a !important;
  font-size: 22px;
  font-weight: 400;
}
.plans-head small,
body[data-theme="morning"] .plans-head small {
  color: #64748b !important;
  font-size: 11px;
}
.plans-cell.cyan,
.plans-cell.violet,
.plans-cell.gold {
  border-left: 0 !important;
}
.plan-value i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.plan-value.cyan i { background: #0891b2; }
.plan-value.violet i { background: #7c3aed; }
.plan-value.gold i { background: #b45309; }
.plan-action button {
  width: 100%;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid #cbd5e1 !important;
  background: #e2e8f0 !important;
  color: #0f172a !important;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
.plan-action button:hover {
  background: #cbd5e1 !important;
}
