:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #202124;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --blue: #1a73e8;
  --muted: #5f6368;
  --border: #dadce0;
  --soft: #f8fafd;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body { min-width: 320px; background: #fff; }

button, input { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.topbar {
  min-height: 64px;
  padding: 13px 17px 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #202124;
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 23px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 7px; color: #3c4043; font-weight: 600; letter-spacing: -.2px; }
.brand-lockup:hover { text-decoration: none !important; }
.brand-lockup .header-logo { width: 25px; height: 25px; border-radius: 8px 8px 9px 9px; transform: rotate(-5deg); box-shadow: 0 2px 5px rgb(91 33 182 / 24%); }
.brand-lockup .header-logo .logo-stem { left: 11px; top: 6px; width: 2px; height: 14px; }
.brand-lockup .header-logo .logo-leaf { width: 7px; height: 4px; }
.brand-lockup .header-logo .leaf-one { left: 6px; top: 6px; }
.brand-lockup .header-logo .leaf-two { left: 12px; top: 9px; }
.brand-lockup .header-logo .leaf-three { left: 5px; top: 14px; }
.topbar a { transition: color 160ms ease; }
.topbar a:hover, .footer a:hover { color: var(--blue); text-decoration: underline; }
.nav-right { gap: 19px; }

.icon-button {
  width: 28px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 50%;
}
.icon-button:hover { background: #f1f3f4; }
.apps-grid { width: 18px; height: 18px; display: grid; grid-template-columns: repeat(3, 3px); gap: 3px; place-content: center; }
.apps-grid i { width: 3px; height: 3px; border-radius: 50%; background: #5f6368; }
.sign-in { color: #fff; background: var(--blue); border-radius: 999px; padding: 9px 17px; font-size: 13px; line-height: 1; transition: background 160ms ease, box-shadow 160ms ease; }
.sign-in:hover { background: #1769d0; box-shadow: 0 1px 3px rgb(60 64 67 / 30%); }
.sign-in:disabled { cursor: wait; opacity: .7; }

.main-content { flex: 1; display: flex; flex-direction: column; align-items: center; }
.search-hero[hidden] { display: none; }
.search-hero { width: min(100% - 32px, 760px); padding-top: clamp(74px, 13vh, 144px); display: flex; flex-direction: column; align-items: center; }
.wordmark { margin: 0 0 31px; font-size: clamp(45px, 6.2vw, 70px); letter-spacing: -3px; font-weight: 500; line-height: .88; font-family: Arial, Helvetica, sans-serif; display: flex; align-items: center; gap: 13px; }
.malt-logo { position: relative; flex: 0 0 auto; width: 46px; height: 46px; display: inline-block; border-radius: 14px 14px 17px 17px; background: linear-gradient(145deg, #4c1d95, #7c3aed 58%, #c084fc); box-shadow: 0 5px 12px rgb(91 33 182 / 24%); transform: rotate(-5deg); }
.logo-stem { position: absolute; left: 21px; top: 11px; width: 4px; height: 25px; border-radius: 4px; background: #fff; transform: rotate(4deg); }
.logo-leaf { position: absolute; width: 13px; height: 8px; border-radius: 100% 0 100% 0; background: #fff; }
.leaf-one { left: 12px; top: 12px; transform: rotate(24deg); }
.leaf-two { left: 22px; top: 19px; transform: rotate(-26deg); }
.leaf-three { left: 11px; top: 27px; transform: rotate(24deg); }
.brand-malt {
  letter-spacing: -5px;
  background: linear-gradient(105deg, #5b21b6 0%, #7c3aed 42%, #c084fc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-search { margin-left: 11px; color: #3c4043; letter-spacing: -3px; }
.wordmark .blue { color: #4285f4; }
.wordmark .red { color: #ea4335; }
.wordmark .yellow { color: #fbbc05; }
.wordmark .green { color: #34a853; }

.search-form { width: 100%; }
.search-box { height: 46px; width: 100%; border: 1px solid #dfe1e5; box-shadow: 0 1px 5px rgb(32 33 36 / 18%); border-radius: 24px; display: flex; align-items: center; padding: 0 9px 0 13px; transition: box-shadow 160ms ease, border-color 160ms ease; }
.search-box:hover, .search-box:focus-within { box-shadow: 0 1px 6px rgb(32 33 36 / 28%); border-color: rgb(223 225 229 / 0%); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; height: 100%; padding: 0 10px; color: #202124; font-size: 16px; background: transparent; }
.search-action { flex: 0 0 auto; width: 31px; height: 36px; display: grid; place-items: center; color: #5f6368; background: transparent; border-radius: 50%; }
.search-action:hover { background: #f1f3f4; }
.search-action svg, .ai-mode svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plus-action svg { width: 17px; height: 17px; stroke-width: 1.75; }
.search-tools { display: flex; align-items: center; gap: 5px; padding-left: 4px; }
.lens-action { margin-right: 2px; }
.ai-mode { height: 32px; display: flex; gap: 5px; align-items: center; color: #3c4043; background: #f1f3f4; border-radius: 999px; padding: 0 12px 0 9px; font-size: 12px; white-space: nowrap; transition: background 160ms ease; }
.ai-mode:hover, .ai-mode.active { background: #e8f0fe; color: #174ea6; }
.ai-mode svg { width: 15px; height: 15px; stroke-width: 1.7; }

.hero-actions { display: flex; gap: 11px; margin-top: 30px; }
.secondary-button { border: 1px solid transparent; border-radius: 4px; color: #3c4043; background: #f8f9fa; padding: 10px 17px; font-size: 14px; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.secondary-button:hover { border-color: #dadce0; box-shadow: 0 1px 1px rgb(0 0 0 / 10%); background: #f8f9fa; }
.trend-link { margin-top: 26px; color: #1a0dab; font-size: 12px; background: transparent; }
.trend-link:hover { text-decoration: underline; }
.status-message { min-height: 21px; margin: 20px 0 0; color: var(--muted); font-size: 13px; text-align: center; opacity: 0; transition: opacity 160ms ease; }
.status-message.visible { opacity: 1; }

.results-panel { width: min(100% - 32px, 760px); padding: 12px 0 110px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; border-bottom: 1px solid #f1f3f4; padding-bottom: 13px; }
.results-summary { margin: 0; color: #5f6368; font-size: 12px; }
.back-button { color: #1a73e8; background: transparent; font-size: 12px; }
.back-button:hover { text-decoration: underline; }
.result-card { padding: 15px 0 17px; border-bottom: 1px solid #f1f3f4; }
.result-url { display: block; max-width: 100%; overflow: hidden; color: #188038; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.result-meta { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: #8a7a93; font-size: 10px; }
.result-live { padding: 3px 6px; color: #5b21b6; background: #f0e9ff; border-radius: 999px; font-weight: 700; letter-spacing: .2px; }
.result-title { display: inline-block; margin: 5px 0 4px; color: #1a0dab; font-size: 19px; font-weight: 400; line-height: 1.25; }
.result-title:hover { text-decoration: underline; }
.result-snippet { margin: 0; color: #4d5156; font-size: 13px; line-height: 1.5; }
.results-empty { padding: 30px 0; color: #5f6368; font-size: 14px; }
.search-hero.results-mode { width: min(100% - 32px, 760px); padding-top: 32px; }
.search-hero.results-mode .wordmark { font-size: 38px; margin-bottom: 22px; }
.search-hero.results-mode .malt-logo { width: 30px; height: 30px; border-radius: 9px 9px 11px 11px; }
.search-hero.results-mode .logo-stem { left: 14px; top: 7px; width: 3px; height: 17px; }
.search-hero.results-mode .logo-leaf { width: 9px; height: 5px; }
.search-hero.results-mode .leaf-one { left: 8px; top: 8px; }
.search-hero.results-mode .leaf-two { left: 14px; top: 12px; }
.search-hero.results-mode .leaf-three { left: 7px; top: 17px; }
.search-hero.results-mode .hero-actions, .search-hero.results-mode .trend-link, .search-hero.results-mode .status-message { display: none; }
.search-hero.is-searching .status-message { display: flex; align-items: center; justify-content: center; gap: 8px; }
.search-hero.is-searching .status-message::before { content: ""; width: 14px; height: 14px; flex: 0 0 auto; border: 2px solid #e5dcf2; border-top-color: #7c3aed; border-radius: 50%; animation: search-spin 800ms linear infinite; }
.search-hero.results-mode.is-searching .status-message { display: flex; }
@keyframes search-spin { to { transform: rotate(360deg); } }

.results-panel[hidden] { display: none; }

.footer { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; background: #f2f2f2; color: #5f6368; font-size: 12px; }
.footer-left, .footer-right { display: flex; gap: 24px; }
.footer a { transition: color 160ms ease; }

.toast[hidden] { display: none; }
.toast { --toast-accent: #6840b7; --toast-soft: #f1ebff; position: fixed; z-index: 20; top: calc(env(safe-area-inset-top) + 78px); right: 24px; width: min(390px, calc(100vw - 48px)); min-height: 82px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 30px; align-items: start; gap: 12px; padding: 15px 14px; border: 1px solid #e9e4f1; border-left: 3px solid var(--toast-accent); border-radius: 17px; color: #332a41; background: rgb(255 255 255 / 96%); box-shadow: 0 16px 44px rgb(39 24 64 / 18%), 0 3px 10px rgb(39 24 64 / 7%); backdrop-filter: blur(16px); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-9px) scale(.985); transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease; }
.toast.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.toast[data-variant="success"] { --toast-accent: #16835a; --toast-soft: #e8f6ee; }
.toast[data-variant="warning"] { --toast-accent: #a66108; --toast-soft: #fff4df; }
.toast[data-variant="error"] { --toast-accent: #b42338; --toast-soft: #fff0f1; }
.toast-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--toast-accent); background: var(--toast-soft); font-size: 18px; font-weight: 750; }
.toast-copy { min-width: 0; padding-top: 1px; }
.toast-title { margin: 0 0 4px; color: #2e2739; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.toast-message { margin: 0; color: #625b70; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.toast-close { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border-radius: 9px; color: #766e83; background: transparent; font-size: 20px; line-height: 1; }
.toast-close:hover { color: #3c2d54; background: #f3f0f8; }
.toast-close:focus-visible { outline: 2px solid #8056d6; outline-offset: 2px; }

@media (max-width: 640px) {
  .topbar { min-height: 56px; padding: 10px 13px 10px 16px; font-size: 11px; }
  .nav-left, .nav-right { gap: 13px; }
  .nav-right { gap: 9px; }
  .apps-button { width: 25px; }
  .sign-in { padding: 8px 12px; font-size: 11px; }
  .search-hero { width: min(100% - 30px, 560px); padding-top: 78px; }
  .wordmark { font-size: clamp(39px, 13vw, 58px); margin-bottom: 31px; }
  .brand-search { margin-left: 7px; }
  .search-box { height: 44px; padding-left: 8px; }
  .search-box input { font-size: 15px; }
  .search-tools { gap: 0; }
  .ai-mode { padding: 0 8px; }
  .ai-mode span { display: none; }
  .hero-actions { margin-top: 25px; }
  .secondary-button { font-size: 12px; padding: 9px 12px; }
  .trend-link { font-size: 11px; }
  .results-panel { padding-bottom: 120px; }
  .search-hero.results-mode { padding-top: 22px; }
  .search-hero.results-mode .wordmark { font-size: 31px; margin-bottom: 18px; }
  .malt-logo { width: 34px; height: 34px; border-radius: 10px 10px 12px 12px; }
  .logo-stem { left: 15px; top: 8px; width: 3px; height: 19px; }
  .logo-leaf { width: 10px; height: 6px; }
  .leaf-one { left: 9px; top: 9px; }
  .leaf-two { left: 16px; top: 14px; }
  .leaf-three { left: 8px; top: 20px; }
  .result-title { font-size: 17px; }
  .footer { min-height: 72px; padding: 12px 16px; flex-direction: column; gap: 12px; justify-content: center; }
  .footer-left, .footer-right { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .toast { top: calc(env(safe-area-inset-top) + 68px); left: 16px; right: 16px; width: auto; }
}

@media (max-width: 390px) {
  .nav-left { gap: 10px; }
  .nav-right a[href="#images"] { display: none; }
  .search-hero { padding-top: 68px; }
  .search-tools { gap: 0; }
  .lens-action { display: none; }
  .hero-actions { gap: 7px; }
  .secondary-button { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}

/* Malt Mail */
.mail-app { width: min(100% - 34px, 1180px); min-height: 560px; margin: 25px auto 48px; overflow: hidden; color: #30243f; background: #fbf9ff; border: 1px solid #e6def5; border-radius: 22px; box-shadow: 0 12px 34px rgb(91 33 182 / 10%); }
.mail-app[hidden] { display: none; }
.mail-topline { min-height: 74px; display: flex; align-items: center; gap: 26px; padding: 15px 22px; background: #fff; border-bottom: 1px solid #eee8f8; }
.mail-brand { min-width: 190px; display: flex; align-items: center; gap: 9px; color: #4c1d95; font-size: 19px; letter-spacing: -.4px; }
.mail-logo { width: 33px; height: 33px; border-radius: 10px 10px 12px 12px; transform: rotate(-5deg); box-shadow: 0 3px 8px rgb(91 33 182 / 20%); }
.mail-logo .logo-stem { left: 15px; top: 8px; width: 3px; height: 18px; }
.mail-logo .logo-leaf { width: 10px; height: 6px; }
.mail-logo .leaf-one { left: 9px; top: 9px; }
.mail-logo .leaf-two { left: 16px; top: 14px; }
.mail-logo .leaf-three { left: 8px; top: 20px; }
.mail-beta { padding: 3px 6px; color: #7c3aed; background: #f0e9ff; border-radius: 5px; font-size: 9px; font-weight: 700; letter-spacing: .6px; }
.mail-search { flex: 1; max-width: 580px; height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 15px; color: #8b7aa2; background: #f7f3ff; border: 1px solid #eee7fa; border-radius: 13px; }
.mail-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.mail-search input { flex: 1; min-width: 0; border: 0; outline: 0; color: #30243f; background: transparent; font-size: 14px; }
.mail-search input::placeholder { color: #9a8eaa; }
.mail-avatar { width: 35px; height: 35px; margin-left: auto; color: #fff; background: linear-gradient(145deg, #5b21b6, #a855f7); border-radius: 50%; font-weight: 700; }
.mail-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: 484px; }
.mail-sidebar { padding: 24px 13px; background: #f8f4ff; border-right: 1px solid #eee8f8; }
.compose-button { width: 145px; height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 0 22px 9px; color: #fff; background: linear-gradient(135deg, #6d28d9, #9333ea); border-radius: 13px; box-shadow: 0 6px 13px rgb(109 40 217 / 23%); font-size: 13px; font-weight: 600; transition: transform 160ms ease, box-shadow 160ms ease; }
.compose-button:hover { transform: translateY(-1px); box-shadow: 0 8px 17px rgb(109 40 217 / 30%); }
.compose-button span { font-size: 21px; font-weight: 300; line-height: 1; }
.mail-folders { display: grid; gap: 4px; }
.mail-folder { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 3px; padding: 10px 12px; color: #665879; background: transparent; border-radius: 9px; text-align: left; font-size: 13px; }
.mail-folder:hover { background: #efe7ff; color: #5b21b6; }
.mail-folder.active { color: #5b21b6; background: #eaddff; font-weight: 700; }
.folder-icon { color: #917fa8; font-size: 17px; }
.mail-folder strong { font-size: 11px; }
.mail-labels { margin: 29px 12px 0; color: #7c6c91; font-size: 12px; }
.mail-labels p { margin: 0 0 9px; color: #a093b0; font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.label-link { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: #766584; background: transparent; font-size: 12px; }
.label-link span { width: 8px; height: 8px; border-radius: 50%; background: #a855f7; }
.label-link:last-child span { background: #c084fc; }
.inbox-pane { min-width: 0; background: #fff; }
.inbox-heading { display: flex; align-items: center; justify-content: space-between; padding: 25px 27px 18px; }
.inbox-heading h2 { margin: 0; color: #342240; font-size: 25px; letter-spacing: -.6px; }
.inbox-heading p { margin: 5px 0 0; color: #91849d; font-size: 12px; }
.mail-back { color: #7c3aed; background: #f4edff; border-radius: 7px; padding: 8px 11px; font-size: 12px; }
.mail-back:hover { background: #eaddff; }
.inbox-toolbar { height: 45px; display: flex; align-items: center; gap: 15px; padding: 0 27px; color: #8f819d; border-top: 1px solid #f0ebf5; border-bottom: 1px solid #f0ebf5; font-size: 12px; }
.inbox-toolbar button { color: #85768f; background: transparent; font-size: 17px; }
.inbox-toolbar button:hover { color: #6d28d9; }
.inbox-toolbar span:not(.toolbar-spacer) { font-size: 11px; }
.toolbar-spacer { flex: 1; }
.select-all { position: relative; width: 17px; height: 17px; }
.select-all input, .message-check input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.select-all span { position: absolute; inset: 2px; border: 1px solid #cfc3dc; border-radius: 3px; }
.select-all input:checked + span { background: #7c3aed; border-color: #7c3aed; }
.message-list { width: 100%; }
.message-row { width: 100%; min-height: 58px; display: grid; grid-template-columns: 22px 27px 125px minmax(0, 1fr) 72px; align-items: center; gap: 6px; padding: 0 26px; color: #786a83; background: #fff; border-bottom: 1px solid #f3eef7; text-align: left; font-size: 12px; transition: background 140ms ease, box-shadow 140ms ease; }
.message-row:hover { background: #fcf9ff; box-shadow: inset 3px 0 #a855f7; }
.message-row.unread { color: #342240; background: #fdfbff; }
.message-row.unread .sender, .message-row.unread .message-copy strong { color: #342240; font-weight: 700; }
.message-check { position: relative; width: 15px; height: 15px; border: 1px solid #d6ccdf; border-radius: 3px; }
.message-check:has(input:checked) { background: #7c3aed; border-color: #7c3aed; }
.star { color: #b6a6c2; font-size: 20px; line-height: 1; }
.star:hover { color: #f59e0b; }
.sender, .message-copy { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.message-copy { color: #9a8ea1; }
.message-copy strong { color: #6d5d79; }
.message-row time { color: #988ca2; text-align: right; font-size: 11px; }
.compose-modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(33 20 48 / 22%); backdrop-filter: blur(3px); }
.compose-modal[hidden] { display: none; }
.compose-card { width: min(100%, 520px); overflow: hidden; background: #fff; border: 1px solid #e7ddf5; border-radius: 15px; box-shadow: 0 18px 50px rgb(60 36 88 / 25%); }
.compose-titlebar { display: flex; justify-content: space-between; align-items: center; padding: 14px 17px; color: #fff; background: linear-gradient(135deg, #5b21b6, #9333ea); font-size: 14px; }
.compose-titlebar button { color: #fff; background: transparent; font-size: 21px; }
.compose-card label { display: flex; align-items: center; gap: 13px; padding: 12px 17px 0; color: #887a95; font-size: 12px; }
.compose-card label input { flex: 1; min-width: 0; padding: 5px 0; color: #342240; border: 0; border-bottom: 1px solid #eee7f5; outline: 0; }
.compose-card textarea { width: calc(100% - 34px); min-height: 150px; margin: 14px 17px 7px; resize: vertical; padding: 8px 0; color: #342240; border: 0; outline: 0; font-size: 13px; }
.compose-actions { display: flex; gap: 8px; padding: 12px 17px; border-top: 1px solid #f0ebf5; }
.compose-actions button { padding: 8px 14px; color: #74647e; background: #f6f1fb; border-radius: 7px; font-size: 12px; }
.compose-actions .send-button { color: #fff; background: #7c3aed; }

@media (max-width: 760px) {
  .mail-app { width: calc(100% - 20px); margin-top: 14px; border-radius: 16px; }
  .mail-topline { flex-wrap: wrap; gap: 11px; padding: 14px; }
  .mail-brand { min-width: auto; font-size: 16px; }
  .mail-search { order: 3; flex-basis: 100%; max-width: none; }
  .mail-layout { display: block; }
  .mail-sidebar { padding: 12px 10px; border-right: 0; border-bottom: 1px solid #eee8f8; }
  .compose-button { width: 133px; margin: 0 0 10px; }
  .mail-folders { display: flex; overflow-x: auto; gap: 4px; }
  .mail-folder { min-width: max-content; grid-template-columns: 20px auto auto; padding: 8px 10px; }
  .mail-labels { display: none; }
  .inbox-heading { padding: 19px 15px 14px; }
  .inbox-toolbar { padding: 0 15px; }
  .message-row { grid-template-columns: 18px 20px minmax(0, 1fr) 62px; padding: 11px 15px; gap: 5px; }
  .message-copy { grid-column: 3 / 5; grid-row: 2; margin-top: 3px; }
  .message-row time { grid-column: 4; grid-row: 1; }
}

/* Malt Calendar */
.calendar-app { width: min(100% - 34px, 1180px); min-height: 560px; margin: 25px auto 48px; overflow: hidden; color: #30243f; background: #fbf9ff; border: 1px solid #e6def5; border-radius: 22px; box-shadow: 0 12px 34px rgb(91 33 182 / 10%); }
.calendar-app[hidden] { display: none; }
.calendar-topline { min-height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; background: #fff; border-bottom: 1px solid #eee8f8; }
.calendar-brand { display: flex; align-items: center; gap: 11px; color: #4c1d95; }
.calendar-brand > div { display: grid; gap: 3px; }
.calendar-brand strong { font-size: 20px; letter-spacing: -.5px; }
.calendar-brand span:not(.malt-logo) { color: #94859e; font-size: 11px; }
.calendar-logo { width: 38px; height: 38px; border-radius: 11px 11px 14px 14px; transform: rotate(-5deg); box-shadow: 0 4px 10px rgb(91 33 182 / 20%); }
.calendar-logo .logo-stem { left: 17px; top: 9px; width: 3px; height: 21px; }
.calendar-logo .logo-leaf { width: 11px; height: 7px; }
.calendar-logo .leaf-one { left: 10px; top: 10px; }
.calendar-logo .leaf-two { left: 18px; top: 16px; }
.calendar-logo .leaf-three { left: 9px; top: 23px; }
.calendar-back, .today-button { color: #6d28d9; background: #f3edff; border-radius: 8px; padding: 9px 12px; font-size: 12px; }
.calendar-back:hover, .today-button:hover { background: #eaddff; }
.calendar-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: 478px; }
.calendar-sidebar { padding: 25px 16px; background: #f8f4ff; border-right: 1px solid #eee8f8; }
.calendar-mini-card { margin: 24px 7px 0; padding: 14px 12px; background: #fff; border: 1px solid #eee6f8; border-radius: 12px; }
.calendar-mini-card > p { margin: 0 0 13px; color: #a093b0; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
#upcoming-events { display: grid; gap: 10px; color: #8a7897; font-size: 11px; }
#upcoming-events > span { color: #a79ab0; }
.upcoming-item { display: grid; gap: 3px; padding-left: 9px; border-left: 3px solid #a855f7; }
.upcoming-item b { color: #6d28d9; font-size: 10px; }
.upcoming-item span { color: #5f4e6c; line-height: 1.3; }
.calendar-tip { display: grid; gap: 6px; margin: 27px 9px 0; color: #887994; font-size: 11px; line-height: 1.4; }
.calendar-tip strong { color: #6d28d9; font-size: 12px; }
.calendar-pane { min-width: 0; padding: 23px 25px 28px; background: #fff; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calendar-heading > div { display: flex; align-items: center; gap: 4px; }
.calendar-heading h2 { min-width: 180px; margin: 0 10px; color: #342240; font-size: 23px; letter-spacing: -.6px; }
.month-nav { width: 28px; height: 28px; color: #7c3aed; background: #f6f1ff; border-radius: 7px; font-size: 22px; line-height: 1; }
.month-nav:hover { background: #eaddff; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { color: #a092aa; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-align: center; text-transform: uppercase; }
.calendar-weekdays span { padding: 8px 0; }
.calendar-grid { overflow: hidden; border-top: 1px solid #eee8f7; border-left: 1px solid #eee8f7; border-radius: 10px; }
.calendar-day { min-height: 77px; overflow: hidden; padding: 8px 7px; background: #fff; border-right: 1px solid #eee8f7; border-bottom: 1px solid #eee8f7; }
.calendar-day:hover { background: #fdfaff; }
.calendar-day.muted-day { color: #c7bdcf; background: #fdfcff; }
.day-number { display: inline-grid; width: 24px; height: 24px; place-items: center; color: #756481; border-radius: 50%; font-size: 11px; }
.calendar-day.today .day-number { color: #fff; background: #7c3aed; font-weight: 700; }
.event-chip { width: 100%; display: block; overflow: hidden; margin-top: 5px; padding: 4px 5px; color: #5b21b6; background: #f0e9ff; border-radius: 4px; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.event-chip:hover { background: #e3d4ff; }
.event-card label { padding-top: 10px; }
.event-card label input { padding: 7px 0; }
@media (max-width: 760px) {
  .calendar-app { width: calc(100% - 20px); margin-top: 14px; border-radius: 16px; }
  .calendar-topline { padding: 14px; }
  .calendar-brand strong { font-size: 16px; }
  .calendar-brand span:not(.malt-logo) { font-size: 10px; }
  .calendar-layout { display: block; }
  .calendar-sidebar { padding: 12px 10px; border-right: 0; border-bottom: 1px solid #eee8f8; }
  .calendar-mini-card, .calendar-tip { display: none; }
  .calendar-pane { padding: 18px 10px 20px; }
  .calendar-heading h2 { min-width: 135px; margin-inline: 5px; font-size: 18px; }
  .calendar-day { min-height: 64px; padding: 5px 3px; }
  .calendar-weekdays { font-size: 8px; }
  .day-number { width: 21px; height: 21px; font-size: 10px; }
  .event-chip { padding: 3px; font-size: 8px; }
}

.search-categories { display: flex; justify-content: center; gap: 7px; margin: 15px 0 0; }
.search-category { padding: 8px 15px; color: #5f536e; background: #f7f4fb; border: 1px solid #ece6f4; border-radius: 999px; font-size: 12px; transition: color 150ms ease, background 150ms ease, border-color 150ms ease; }
.search-category:hover { color: #5b21b6; background: #f0e9ff; }
.search-category.active { color: #fff; background: linear-gradient(135deg, #6d28d9, #8b5cf6); border-color: transparent; box-shadow: 0 3px 8px rgb(91 33 182 / 18%); }
.search-category:focus-visible, .site-search-row input:focus-visible, .more-results-button:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.site-search-row { width: 100%; display: flex; align-items: center; gap: 13px; margin-top: 15px; color: #5f536e; font-size: 12px; }
.site-search-row label { flex: 0 0 auto; }
.site-search-row input { flex: 1; min-width: 0; height: 35px; padding: 0 11px; color: #30243f; background: #fff; border: 1px solid #e3dce9; border-radius: 8px; font-size: 12px; outline: none; }
.site-search-row input:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgb(124 58 237 / 10%); }
.site-search-row input::placeholder { color: #a99db4; }
.search-operator-help, .search-coverage-note { width: 100%; margin: 7px 0 0; color: #82778d; font-size: 10px; line-height: 1.5; text-align: center; }
.search-operator-help code { padding: 1px 3px; color: #5b21b6; background: #f5f0ff; border-radius: 3px; font-size: 10px; }
.provider-handoffs { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 11px; color: #8a7e94; font-size: 10px; }
.provider-handoffs a { color: #6d28d9; font-weight: 600; }
.provider-handoffs a:hover { text-decoration: underline; }
.search-coverage-note { margin-top: 8px; }
.search-hero.results-mode .search-categories { margin-top: 10px; }
.results-provider-note { margin: 5px 0 0; color: #8a7e94; font-size: 10px; line-height: 1.4; }
.answer-card { margin: 0 0 21px; padding: 18px 20px; color: #38264a; background: linear-gradient(135deg, #fbf8ff, #fff); border: 1px solid #e8def4; border-radius: 14px; box-shadow: 0 5px 16px rgb(91 33 182 / 5%); }
.answer-card[hidden] { display: none; }
.answer-card-topline { display: flex; align-items: center; gap: 6px; color: #6d28d9; font-size: 11px; font-weight: 700; }
.answer-mark { font-size: 15px; }
.answer-card h2 { margin: 7px 0 8px; color: #342240; font-size: 18px; letter-spacing: -.2px; }
.answer-copy { margin: 0; color: #4d4157; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-source-list { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; }
.answer-source-list:empty { display: none; }
.answer-source-list a { max-width: 100%; overflow: hidden; padding: 5px 9px; color: #5b21b6; background: #f1eaff; border-radius: 999px; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; }
.answer-source-list a:hover { color: #3f167f; background: #e7d9ff; text-decoration: underline; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 14px; }
.results-grid .result-card { min-width: 0; padding: 0; overflow: hidden; background: #fff; border: 1px solid #ece6f4; border-radius: 12px; }
.result-media { position: relative; display: block; overflow: hidden; background: #f6f2fa; }
.result-media img { display: block; width: 100%; height: 154px; object-fit: cover; }
.result-card--images .result-media img { height: 174px; object-fit: contain; }
.result-media--video::after { content: "▶"; position: absolute; top: 50%; left: 50%; display: grid; width: 39px; height: 39px; place-items: center; padding-left: 3px; color: #fff; background: rgb(49 29 68 / 76%); border: 1px solid rgb(255 255 255 / 70%); border-radius: 50%; transform: translate(-50%, -50%); }
.result-copy { min-width: 0; }
.results-grid .result-copy { padding: 11px 12px 13px; }
.results-grid .result-title { font-size: 15px; }
.result-card--news.result-card--has-media { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: start; gap: 17px; }
.result-card--news .result-media img { height: 100px; object-fit: cover; border-radius: 8px; }
.more-results-button { display: block; min-width: 150px; margin: 23px auto 0; padding: 10px 16px; color: #5b21b6; background: #f3edff; border: 1px solid #e8ddfa; border-radius: 999px; font-size: 12px; font-weight: 600; }
.more-results-button:hover:not(:disabled) { background: #eaddff; }
.more-results-button:disabled { cursor: wait; opacity: .72; }
.more-results-button[hidden] { display: none; }

@media (max-width: 640px) {
  .search-categories { gap: 5px; margin-top: 13px; }
  .search-category { padding: 8px 12px; font-size: 11px; }
  .site-search-row { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 13px; }
  .site-search-row input { width: 100%; flex: none; }
  .provider-handoffs { gap: 7px; }
  .search-operator-help, .search-coverage-note { font-size: 9px; }
  .result-card--news.result-card--has-media { grid-template-columns: 112px minmax(0, 1fr); gap: 11px; }
  .result-card--news .result-media img { height: 82px; }
  .results-provider-note { max-width: 250px; }
}

@media (max-width: 390px) {
  .search-category { padding-inline: 10px; }
  .results-grid { grid-template-columns: 1fr; }
}

/* Website-content assistant */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.assistant-launcher { position: fixed; z-index: 8; right: 22px; bottom: 194px; display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px; color: #fff; background: linear-gradient(135deg, #5b21b6, #8b5cf6); border-radius: 999px; box-shadow: 0 8px 22px rgb(91 33 182 / 28%); font-size: 13px; font-weight: 700; transition: transform 160ms ease, box-shadow 160ms ease; }
.assistant-launcher:hover { transform: translateY(-2px); box-shadow: 0 11px 25px rgb(91 33 182 / 34%); }
.assistant-launcher:focus-visible, .assistant-panel button:focus-visible, .assistant-form input:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; }
.assistant-launcher svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.assistant-launcher[hidden], .assistant-panel[hidden] { display: none; }
.assistant-panel { position: fixed; z-index: 9; right: 22px; bottom: 258px; width: min(390px, calc(100vw - 28px)); height: min(460px, calc(100vh - 290px)); min-height: 270px; display: flex; flex-direction: column; overflow: hidden; color: #342240; background: #fff; border: 1px solid #e7ddf5; border-radius: 18px; box-shadow: 0 18px 54px rgb(41 24 57 / 22%); }
.assistant-heading { flex: 0 0 auto; min-height: 66px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(110deg, #fbf8ff, #fff); border-bottom: 1px solid #eee8f8; }
.assistant-heading-mark { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #5b21b6, #a855f7); border-radius: 12px; }
.assistant-heading-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.assistant-heading-copy { min-width: 0; flex: 1; }
.assistant-heading-copy h2 { margin: 0; color: #3b2850; font-size: 15px; }
.assistant-heading-copy p { margin: 3px 0 0; color: #8a7c96; font-size: 11px; }
.assistant-new-chat, .assistant-close { width: 30px; height: 30px; display: grid; place-items: center; color: #78678a; background: transparent; border-radius: 8px; font-size: 18px; }
.assistant-new-chat:hover, .assistant-close:hover { color: #5b21b6; background: #f3edff; }
.assistant-close { font-size: 23px; font-weight: 300; }
.assistant-privacy { flex: 0 0 auto; margin: 0; padding: 8px 14px; color: #887c92; background: #fcfaff; border-bottom: 1px solid #f3eef8; font-size: 10px; line-height: 1.4; }
.assistant-thread { flex: 1 1 auto; min-height: 65px; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; padding: 15px 13px 10px; overscroll-behavior: contain; }
.assistant-message { max-width: 91%; display: flex; flex-direction: column; align-self: flex-start; gap: 4px; }
.assistant-message--visitor { align-self: flex-end; }
.assistant-message-label { padding-inline: 4px; color: #968aa0; font-size: 9px; }
.assistant-message--visitor .assistant-message-label { text-align: right; }
.assistant-message-bubble { margin: 0; padding: 10px 12px; color: #4a3c55; background: #f6f2fb; border-radius: 4px 13px 13px 13px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message--visitor .assistant-message-bubble { color: #fff; background: linear-gradient(135deg, #6d28d9, #8b5cf6); border-radius: 13px 4px 13px 13px; }
.assistant-message--error .assistant-message-bubble { color: #7f3342; background: #fff1f2; }
.assistant-sources { max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 2px; padding-inline: 3px; }
.assistant-sources-label { flex: 0 0 100%; color: #968aa0; font-size: 9px; }
.assistant-sources a { max-width: 100%; overflow: hidden; padding: 4px 7px; color: #5b21b6; background: #f2eaff; border-radius: 999px; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.assistant-sources a:hover { background: #e8dcff; text-decoration: underline; }
.assistant-retry { align-self: flex-start; margin: 2px 0 0 3px; padding: 5px 9px; color: #6d28d9; background: #f2eaff; border-radius: 999px; font-size: 10px; font-weight: 700; }
.assistant-retry:hover { background: #e9dcff; }
.assistant-pending { align-self: flex-start; padding: 9px 12px; color: #78678a; background: #f6f2fb; border-radius: 4px 13px 13px 13px; font-size: 11px; }
.assistant-typing-indicator { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; vertical-align: middle; }
.assistant-typing-indicator span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: assistant-typing 1s ease-in-out infinite; }
.assistant-typing-indicator span:nth-child(2) { animation-delay: 140ms; }
.assistant-typing-indicator span:nth-child(3) { animation-delay: 280ms; }
@keyframes assistant-typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.assistant-suggestions { flex: 0 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 1px 13px 10px; scrollbar-width: thin; }
.assistant-suggestions[hidden] { display: none; }
.assistant-suggestions button { flex: 0 0 auto; padding: 7px 9px; color: #6d28d9; background: #faf7ff; border: 1px solid #eee6fa; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.assistant-suggestions button:hover { background: #f1e9ff; border-color: #dcc9ff; }
.assistant-form { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; margin: 0 11px; padding: 6px 6px 6px 12px; background: #fbf9fe; border: 1px solid #e9e1f1; border-radius: 14px; }
.assistant-form:focus-within { border-color: #a78bfa; box-shadow: 0 0 0 3px rgb(124 58 237 / 9%); }
.assistant-form input { flex: 1; min-width: 0; height: 34px; color: #342240; background: transparent; border: 0; outline: 0; font-size: 12px; }
.assistant-form input::placeholder { color: #a093ad; }
.assistant-send { width: 33px; height: 33px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #7c3aed; border-radius: 10px; transition: background 150ms ease, opacity 150ms ease; }
.assistant-send:hover:not(:disabled) { background: #6424c8; }
.assistant-send:disabled { cursor: wait; opacity: .55; }
.assistant-send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.assistant-status { flex: 0 0 auto; min-height: 22px; margin: 0; padding: 4px 14px 7px; color: #81748d; font-size: 10px; }
@media (prefers-reduced-motion: reduce) {
  .search-hero.is-searching .status-message::before, .assistant-typing-indicator span { animation: none; }
}
@media (max-width: 640px) {
  .assistant-launcher { right: 12px; bottom: 218px; padding: 12px 15px; }
  .assistant-panel { right: 12px; bottom: 276px; width: min(390px, calc(100vw - 24px)); height: min(460px, calc(100vh - 300px)); }
}
@media (max-height: 620px) {
  .assistant-panel { bottom: 205px; height: min(360px, calc(100vh - 225px)); min-height: 220px; }
  .assistant-launcher { bottom: 150px; }
}
