:root {
  --ink: #10131a;
  --muted: #747d8d;
  --blue: #1677f0;
  --blue-soft: #edf5ff;
  --line: #e4e8ef;
  --canvas: #f4f6fa;
  --surface: #fff;
  --yellow: #f4b740;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.profile-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
}

.profile-brand img { width: 122px; display: block; }
.profile-top-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }

.quiet-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
}

.primary-button {
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.login-page {
  min-height: calc(100vh - 72px);
  padding: clamp(32px, 8vw, 110px);
  display: grid;
  grid-template-columns: 1.1fr minmax(320px, 470px);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(22,119,240,.13), transparent 32%),
    #fff;
}

.login-copy h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(52px, 7vw, 96px);
  line-height: .95;
  letter-spacing: -.055em;
}

.login-copy > p:last-child { max-width: 580px; color: var(--muted); font-size: 19px; line-height: 1.6; }

.login-card {
  padding: clamp(25px, 4vw, 42px);
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(35,48,74,.1);
}

.login-card h2 { margin: 0 0 8px; font-size: 32px; }
.auth-description { margin: -10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.auth-description a { color: var(--blue); font-weight: 800; }
.auth-mode-switch { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 12px; background: #f0f3f7; }
.auth-mode-switch button { min-height: 38px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.auth-mode-switch button.active { color: var(--blue); background: #fff; box-shadow: 0 3px 12px rgba(35,48,74,.08); }
.login-card label { display: grid; gap: 8px; color: #424a58; font-size: 13px; font-weight: 750; }
.login-card input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.login-card input:focus { border-color: #8fc2ff; box-shadow: 0 0 0 4px rgba(22,119,240,.1); }
.form-message { min-height: 20px; margin: 0; color: #c53c50; font-size: 13px; }
.form-message.success { color: #18865f; }

.profile-shell {
  width: 100%;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}

.profile-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  align-self: start;
  padding: 30px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.identity-card { display: flex; align-items: center; gap: 13px; }
.identity-card h1 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.identity-card > div:last-child > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.profile-avatar {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 16px; color: #fff; background: var(--blue); font-weight: 900;
}

.profile-nav { display: grid; gap: 7px; }
.profile-nav button, .profile-nav a {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 11px;
  display: flex; align-items: center; gap: 12px; color: #68748a; background: transparent;
  text-align: left; text-decoration: none; font-weight: 650;
}
.profile-nav button:hover, .profile-nav button.active, .profile-nav a:hover { color: var(--blue); background: var(--blue-soft); }
.profile-nav-icon { width: 20px; flex: 0 0 20px; text-align: center; font-size: 18px; }

.sidebar-stats { margin-top: auto; display: grid; gap: 10px; }
.sidebar-stats article { padding: 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; }
.sidebar-stats span { color: var(--muted); font-size: 12px; }
.sidebar-stats strong { font-size: 13px; }

.profile-main { min-width: 0; max-width: 1500px; width: 100%; padding: clamp(24px, 4vw, 52px); }
.section-heading { margin-bottom: 25px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 3vw, 42px); letter-spacing: -.045em; }

.mood-widget {
  margin-bottom: 20px; padding: 20px; border: 1px solid var(--line);
  border-radius: 18px; background: #fff; box-shadow: 0 10px 35px rgba(35,48,74,.04);
}
.mood-widget-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.mood-widget-head h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.range-picker { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; border-radius: 11px; background: #f0f3f7; }
.range-picker button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.range-picker button.active { color: var(--blue); background: #fff; box-shadow: 0 2px 8px rgba(35,48,74,.08); }
.mood-chart-layout { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; align-items: center; }
.mood-chart { min-width: 0; min-height: 190px; }
.mood-chart svg { width: 100%; height: 190px; overflow: visible; }
.chart-grid-line { stroke: #e7ebf0; stroke-width: 1; }
.chart-axis-label { fill: #8b94a3; font-size: 10px; font-weight: 700; }
.mood-line { fill: none; stroke: url(#moodLineGradient); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.mood-chart-empty { min-height: 190px; display: grid; place-items: center; color: var(--muted); }
.mood-summary { padding: 18px; display: grid; gap: 5px; border-radius: 15px; background: #f6f8fb; }
.mood-summary span, .mood-summary small { color: var(--muted); font-size: 11px; }
.mood-summary strong { font-size: 29px; letter-spacing: -.04em; }

.calendar-card, .day-panel, .credit-card, .plan-tile, .journal-widget {
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  box-shadow: 0 10px 35px rgba(35,48,74,.04);
}
.calendar-card { min-height: 0; padding: 18px 20px 16px; display: flex; flex-direction: column; }
.calendar-head {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.calendar-head h3 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.calendar-nav {
  padding: 3px;
  display: inline-flex;
  gap: 3px;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #f7faff;
}
.calendar-nav button {
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #4d6178;
  background: transparent;
  font-size: 20px;
  line-height: 1;
}
.calendar-nav button:hover {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 3px 10px rgba(31,42,68,.06);
}
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-weekdays { margin: 14px 0 6px; padding: 0 2px; color: #9299a5; font-size: 9px; font-weight: 850; text-align: center; text-transform: uppercase; }
.calendar-grid { grid-auto-rows: 54px; align-content: start; }
.calendar-day {
  position: relative; min-width: 0; border: 0; border-radius: 10px;
  color: #343a45; background: transparent; font-size: 13px; font-weight: 750; transition: transform .16s ease, background .16s ease;
}
.calendar-day:hover { background: #f1f4f8; transform: translateY(-1px); }
.calendar-day.selected { color: #fff; background: var(--blue); }
.calendar-day.outside { color: #c2c6cd; }
.calendar-day.today { box-shadow: inset 0 0 0 2px #a8ceff; }
.calendar-day .day-dots { position: absolute; left: 50%; bottom: 5px; display: flex; gap: 3px; transform: translateX(-50%); }
.calendar-day .day-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9aabc0; }
.calendar-day .day-dots .mood-dot { background: var(--mood-color); box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.calendar-day .day-dots .insight-dot { background: #8767de; }
.calendar-day .day-dots .period-dot { border-radius: 2px; background: #ee8b45; }
.calendar-favorite { position: absolute; top: 4px; right: 6px; color: var(--yellow); font-size: 9px; }
.calendar-day.selected .calendar-favorite { color: #fff3b9; }
.calendar-legend {
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 11px;
  border: 1px solid #edf1f6;
  border-radius: 13px;
  background: #fafcff;
  color: var(--muted);
  font-size: 10px;
}
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 7px; height: 7px; border-radius: 50%; background: #9aabc0; }
.calendar-legend .has-insight { background: #8767de; }
.calendar-legend .has-period { border-radius: 2px; background: #ee8b45; }
.calendar-legend .has-favorite { width: auto; height: auto; color: var(--yellow); background: transparent; font-style: normal; font-size: 12px; }
.calendar-legend .mood-scale { gap: 4px; }
.calendar-legend .mood-low { background: #e05252; }
.calendar-legend .mood-mid { background: #e5b93f; }
.calendar-legend .mood-high { background: #38a868; }

.day-panel { min-height: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.day-panel-head { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.day-panel-head h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.selected-day-heading { display: flex; align-items: center; gap: 14px; }
.selected-day-emoji {
  width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto;
  border: 2px solid var(--day-mood-color, #d9dee7); border-radius: 16px;
  background: color-mix(in srgb, var(--day-mood-color, #d9dee7) 12%, white);
  font-size: 24px;
}
.selected-day-mood { margin: 5px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.favorite-button {
  width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px;
  color: #8b94a3; background: #fff; font-size: 22px; transition: .16s ease;
}
.favorite-button:hover { color: var(--yellow); border-color: #f0d289; transform: translateY(-1px); }
.favorite-button.active { color: #d79c19; border-color: #f0d289; background: #fff9e9; }
.day-preview { min-height: 0; padding: 16px 18px 18px; display: flex; flex: 1; flex-direction: column; gap: 12px; }
.preview-copy { padding: 14px 15px; border-radius: 14px; background: linear-gradient(135deg, #f5f9ff, #f8f6ff); }
.preview-copy p { margin: 8px 0 0; color: #4d5665; font-size: 13px; line-height: 1.55; }
.day-content-menu { display: grid; gap: 8px; }
.day-content-menu button {
  min-width: 0; padding: 9px 11px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); background: #fff; text-align: left; transition: .16s ease;
}
.day-content-menu button:hover { border-color: #b7d7ff; background: #f8fbff; transform: translateX(2px); }
.day-content-menu button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.day-content-menu strong { font-size: 13px; }
.day-content-menu small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.day-content-menu i, .widget-row i { color: #a0a8b5; font-style: normal; }
.content-icon {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  color: var(--blue); background: var(--blue-soft); font-size: 13px; font-weight: 900;
}
.open-day-button {
  width: 100%; min-height: 45px; margin-top: auto; padding: 0 16px; border: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; color: #fff; background: var(--ink); font-weight: 800;
}
.open-day-button:hover { background: var(--blue); }
.day-preview-empty { margin: auto; max-width: 310px; text-align: center; }
.day-preview-empty span { font-weight: 850; }
.day-preview-empty p { color: var(--muted); line-height: 1.55; }
.day-content { padding: 21px; display: grid; gap: 15px; }
.content-card { padding: 19px; display: grid; gap: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfe; }
.content-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; }
.content-card-head > div { min-width: 0; }
.content-type { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.content-card h3 { max-width: 850px; margin: 5px 0 0; font-size: clamp(19px, 2vw, 25px); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.mood-badge { padding: 7px 10px; white-space: nowrap; border-radius: 999px; color: #455064; background: #edf1f6; font-size: 12px; font-weight: 850; }
.reflection { max-width: 850px; color: #454d5a; font-size: 16px; line-height: 1.75; }
.reflection p { margin: 0 0 1em; }
.reflection p:last-child { margin-bottom: 0; }
.content-details { display: grid; gap: 13px; padding-top: 4px; }
.detail-section { padding-top: 13px; border-top: 1px solid var(--line); }
.detail-section h4, .pattern-reader-section h4 { margin: 0 0 9px; font-size: 12px; }
.detail-section ul, .pattern-reader-section ul { margin: 0; padding-left: 19px; display: grid; gap: 7px; color: #4d5665; line-height: 1.55; }
.memory-anchor { padding: 14px; border: 0; border-radius: 12px; background: #fff8e7; }
.memory-anchor p { margin: 0; color: #65542b; line-height: 1.55; }
.personal-note { padding: 14px; border: 0; border-radius: 12px; background: #edf6ff; }
.personal-note p, .insight-coverage p { margin: 0 0 .8em; color: #40536b; line-height: 1.65; }
.personal-note p:last-child { margin-bottom: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span { padding: 6px 9px; border-radius: 999px; color: #455064; background: #edf1f6; font-size: 11px; font-weight: 720; }
.pattern-block { padding-top: 5px; }
.pattern-block h4 { margin: 0 0 9px; font-size: 12px; }
.pattern-reader { overflow: hidden; border: 1px solid #ded6f8; border-radius: 13px; background: #faf8ff; }
.pattern-reader-title { padding: 11px 14px; color: #684cb1; background: #f0ebff; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.pattern-reader-section { padding: 13px 14px; border-top: 1px solid #e6e0f7; }
.pattern-reader-section:first-of-type { border-top: 0; }
.empty-state { padding: 40px 20px; color: var(--muted); text-align: center; }

.journal-widgets { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.journal-widget { min-width: 0; padding: 20px; }
.widget-heading { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.widget-heading h3 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.widget-count { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 850; }
.widget-list { display: grid; gap: 8px; }
.widget-row {
  width: 100%; min-width: 0; padding: 10px; display: grid; grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center; gap: 11px; border: 0; border-radius: 12px; color: var(--ink); background: #f7f9fc;
  text-align: left; transition: .16s ease;
}
.widget-row:hover { background: #eef5ff; transform: translateY(-1px); }
.widget-row > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.widget-row > span:nth-child(2) strong, .widget-row > span:nth-child(2) small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-row > span:nth-child(2) strong { font-size: 13px; }
.widget-row > span:nth-child(2) small { color: var(--muted); font-size: 11px; }
.widget-date { width: 43px; height: 43px; display: grid; place-content: center; border-radius: 11px; color: var(--blue); background: #fff; text-align: center; }
.widget-date strong { font-size: 16px; line-height: 1; }
.widget-date small { margin-top: 3px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.widget-row > i { color: var(--yellow); }
.insight-row > i { color: #a0a8b5; }
.widget-empty { min-height: 112px; padding: 18px; display: grid; place-content: center; gap: 6px; border-radius: 12px; color: var(--muted); background: #f7f9fc; text-align: center; }
.widget-empty span { color: var(--yellow); font-size: 24px; }
.widget-empty p { max-width: 360px; margin: 0; font-size: 12px; line-height: 1.55; }
.widget-upgrade { padding: 18px; display: grid; gap: 6px; border: 1px solid #cfe2fb; border-radius: 13px; background: #f7fbff; }
.widget-upgrade span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.widget-upgrade p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.profile-news-section { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 35px rgba(35,48,74,.04); }
.profile-news-heading { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.profile-news-heading h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.profile-news-heading a { color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; }
.news-carousel { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 10px; }
.news-window { min-width: 0; overflow: hidden; }
.news-track { --news-index: 0; --news-gap: 12px; --news-width: calc((100% - (var(--news-gap) * 2)) / 3); display: flex; gap: var(--news-gap); transform: translateX(calc(var(--news-index) * (var(--news-width) + var(--news-gap)) * -1)); transition: transform .45s cubic-bezier(.2,.8,.2,1); touch-action: pan-y; }
.news-carousel.single-news .news-track { justify-content: center; transform: none; }
.news-carousel.single-news .news-card { min-width: min(100%, 340px); max-width: 340px; }
.news-carousel.single-news .news-arrow, .news-carousel.single-news .news-dots { visibility: hidden; }
.news-card { position: relative; min-width: var(--news-width); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; color: inherit; background: #fff; cursor: pointer; text-decoration: none; }
.news-card > * { pointer-events: none; }
.news-card:focus-visible { outline: 3px solid rgba(0, 122, 255, .25); outline-offset: 3px; }
.news-card-image { aspect-ratio: 16/9; display: block; overflow: hidden; background: var(--blue-soft); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-card-image img { transform: scale(1.035); }
.news-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,var(--blue),#7bbaff); font-size: 20px; font-weight: 900; }
.news-card-body { padding: 14px; }
.news-card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.news-card-meta span { color: var(--blue); }
.news-card h3 { margin: 9px 0 7px; font-size: 15px; line-height: 1.25; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card p { min-height: 52px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.news-read-link { margin-top: 12px; display: flex; justify-content: space-between; color: var(--ink); font-size: 11px; font-weight: 800; text-decoration: none; }
.news-read-link span { color: var(--blue); }
.news-arrow { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-size: 22px; }
.news-arrow:hover:not(:disabled) { color: var(--blue); border-color: #a8ceff; }
.news-arrow:disabled { opacity: .3; cursor: default; }
.news-dots { grid-column: 1/-1; display: flex; justify-content: center; gap: 6px; }
.news-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: #ccd2dc; }
.news-dots button.active { width: 19px; background: var(--blue); }
.news-empty { width: 100%; padding: 36px; color: var(--muted); text-align: center; }

@media (max-width: 1200px) and (min-width: 721px) {
  .news-track { --news-width: calc((100% - var(--news-gap)) / 2); }
}

.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.plan-tile { padding: 20px; }
.plan-tile h3 { margin: 10px 0 7px; }
.plan-tile p, .paywall-note { color: var(--muted); line-height: 1.55; }
.plan-tile.current { border-color: #a8ceff; background: #f6faff; }
.plan-tile button { width: 100%; margin-top: 14px; }

.credit-card { margin-bottom: 18px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.credit-card div { display: grid; gap: 6px; }
.credit-card span { color: var(--muted); font-size: 12px; }
.credit-card strong { font-size: 25px; }
.credit-progress { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 999px; background: #e9edf3; }
.credit-progress span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--blue); }
.paywall-note { font-size: 13px; }

.feedback-card {
  max-width: 720px;
  padding: 0;
  display: grid;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(35,48,74,.07);
}

.feedback-card-intro {
  padding: clamp(22px, 4vw, 34px);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #5b63e8);
}

.feedback-card-intro span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .75;
}

.feedback-card-intro h3 {
  max-width: 560px;
  margin: 10px 0 8px;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -.045em;
}

.feedback-card-intro p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}

.feedback-field-grid {
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
  gap: 14px;
}

.feedback-card label {
  display: grid;
  gap: 8px;
  color: #3c4656;
  font-size: 13px;
  font-weight: 750;
}

.feedback-card select,
.feedback-card input,
.feedback-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
}

.feedback-card > label {
  padding: 0 22px;
}

.feedback-card select:focus,
.feedback-card input:focus,
.feedback-card textarea:focus {
  border-color: #8fc2ff;
  box-shadow: 0 0 0 4px rgba(22,119,240,.08);
}

.feedback-card textarea {
  min-height: 150px;
  resize: vertical;
}

.feedback-card .primary-button {
  margin: 0 22px;
}

.feedback-card .form-message {
  min-height: 20px;
  margin: -4px 22px 22px;
}

.insights-feed { display: grid; gap: 18px; }
.insight-upgrade-card {
  max-width: 620px; margin: 30px auto; padding: clamp(28px, 5vw, 54px);
  border: 1px solid #cfe2fb; border-radius: 22px; background: #fff;
  text-align: center; box-shadow: 0 20px 60px rgba(35,48,74,.07);
}
.insight-upgrade-card .upgrade-icon {
  width: 62px; height: 62px; margin: 0 auto 20px; display: grid; place-items: center;
  border-radius: 18px; color: #fff; background: var(--blue); font-size: 28px; font-weight: 900;
}
.insight-upgrade-card h3 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.insight-upgrade-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.insight-upgrade-card button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; color: #fff; background: var(--blue); font-weight: 800; opacity: 1; }
.insight-feed-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; }
.insight-feed-item .content-card { min-width: 0; }
.insight-feed-date { position: sticky; top: 96px; display: grid; gap: 5px; padding: 14px 0; }
.insight-feed-date span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.insight-feed-date strong { font-size: 15px; }
.insight-feed-date small { color: var(--muted); line-height: 1.45; }

.reader-open { overflow: hidden; }
.reader-overlay {
  position: fixed; inset: 0; z-index: 90; padding: 24px; display: grid; place-items: center;
  background: rgba(21,27,38,.48); backdrop-filter: blur(12px); animation: readerFade .18s ease;
}
.reader-panel {
  width: min(1040px, 100%); max-height: calc(100vh - 48px); overflow: hidden;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr); border: 1px solid rgba(255,255,255,.6);
  border-radius: 22px; background: #fff; box-shadow: 0 32px 100px rgba(16,24,40,.24);
  animation: readerRise .22s ease;
}
.reader-head { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.reader-day { min-width: 0; display: flex; align-items: center; gap: 14px; }
.reader-day h2 { max-width: 720px; margin: 0; overflow: hidden; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.reader-actions { display: flex; align-items: center; gap: 8px; }
.reader-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: #5c6573; background: #fff; font-size: 27px; line-height: 1; }
.reader-tabs { padding: 10px 24px; display: flex; gap: 7px; overflow-x: auto; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.reader-tabs button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; white-space: nowrap; font-size: 12px; font-weight: 800; }
.reader-tabs button:hover, .reader-tabs button.active { color: var(--blue); background: var(--blue-soft); }
.reader-content { min-height: 0; padding: 26px; overflow-y: auto; background: #f6f8fb; }
.reader-content > .content-card { max-width: 880px; margin: 0 auto; padding: clamp(20px, 4vw, 34px); background: #fff; }
.reader-overview { max-width: 880px; margin: 0 auto; display: grid; gap: 18px; }
.reader-summary { padding: clamp(22px, 4vw, 36px); border-radius: 18px; color: #fff; background: linear-gradient(135deg, #1677f0, #6557d8); }
.reader-summary span { font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.reader-summary p { max-width: 760px; margin: 12px 0 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.55; }
.reader-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reader-overview-grid button {
  min-width: 0; padding: 18px; display: grid; grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px 12px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; text-align: left;
}
.reader-overview-grid button:hover { border-color: #a8ceff; box-shadow: 0 10px 28px rgba(35,48,74,.07); }
.reader-overview-grid .content-icon { grid-row: 1 / 4; width: 42px; height: 42px; }
.reader-overview-grid .content-type { align-self: end; }
.reader-overview-grid strong, .reader-overview-grid small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.reader-overview-grid small { color: var(--muted); line-height: 1.45; }
@keyframes readerFade { from { opacity: 0; } }
@keyframes readerRise { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: 360px;
  padding: 13px 16px; opacity: 0; pointer-events: none; border-radius: 11px;
  color: #fff; background: #151a23; transform: translateY(10px); transition: .18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #bd3c50; }

@media (max-width: 1050px) {
  .profile-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .calendar-card, .day-panel { min-height: 0; }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .profile-top-actions span { display: none; }
  .login-page { grid-template-columns: 1fr; padding: 35px 18px; }
  .login-copy h1 { font-size: 52px; }
  .profile-shell { display: block; }
  .profile-sidebar { position: static; width: auto; height: auto; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-nav { grid-template-columns: repeat(2, 1fr); }
  .profile-nav button { justify-content: center; padding: 8px; text-align: center; font-size: 11px; }
  .profile-nav a { justify-content: center; padding: 8px; font-size: 11px; }
  .profile-nav-icon { display: none; }
  .sidebar-stats { display: none; }
  .profile-main { padding: 22px 14px 40px; }
  .mood-widget-head, .mood-chart-layout { grid-template-columns: 1fr; display: grid; }
  .mood-summary { grid-template-columns: auto auto; align-items: center; }
  .day-panel { min-height: 0; }
  .journal-widgets { grid-template-columns: 1fr; }
  .profile-news-heading { align-items: start; }
  .news-carousel { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 6px; }
  .news-track { --news-width: 100%; }
  .news-arrow { width: 36px; height: 36px; }
  .news-card p { min-height: 0; }
  .plans-grid { grid-template-columns: 1fr; }
  .insight-feed-item { grid-template-columns: 1fr; gap: 6px; }
  .insight-feed-date { position: static; padding: 0; }
  .content-card-head { grid-template-columns: 1fr; }
  .mood-badge { justify-self: start; }
  .calendar-card { padding: 14px; }
  .calendar-grid { grid-auto-rows: 46px; }
  .section-heading { align-items: start; }
  .reader-overlay { padding: 0; }
  .reader-panel { width: 100%; max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
  .reader-head { padding: 14px; }
  .reader-head .selected-day-emoji { width: 46px; height: 46px; border-radius: 14px; font-size: 23px; }
  .reader-day h2 { max-width: 48vw; font-size: 19px; }
  .reader-tabs { padding: 9px 14px; }
  .reader-content { padding: 14px; }
  .reader-overview-grid { grid-template-columns: 1fr; }
  .feedback-field-grid {
    grid-template-columns: 1fr;
  }
  body.reader-open .chat-panel,
  body.reader-open .chat-launcher {
    opacity: 0;
    pointer-events: none;
  }
}

/* Customizable journal dashboard */
.section-actions { display: flex; align-items: center; gap: 9px; }
.compact { min-height: 38px; padding: 0 14px; }
.customizable-widgets {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.dashboard-widget {
  min-width: 0;
  min-height: 260px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(35,48,74,.04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.dashboard-widget.core-widget {
  padding: 0;
  min-height: 0;
}
.dashboard-widget.core-widget.calendar-card {
  padding: 18px 20px 16px;
}
.dashboard-widget.core-widget.day-panel {
  padding: 0;
}
.dashboard-widget.widget-wide { grid-column: 1 / -1; min-height: 0; }
.dashboard-widget.mood-widget,
.dashboard-widget.profile-news-section { margin: 0; }
.widget-chrome {
  min-height: 52px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.widget-title { min-width: 0; }
.widget-title .eyebrow { margin-bottom: 6px; }
.widget-title h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.widget-controls { min-height: 32px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.widget-controls > a { color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.dashboard-widget .widget-list { flex: 1; align-content: start; }
.dashboard-widget .widget-empty,
.dashboard-widget .widget-upgrade { min-height: 204px; }
.mood-widget-tools { display: flex; justify-content: flex-end; }
.mood-widget .mood-chart-layout { flex: 1; margin-top: 13px; }
.profile-news-section .news-carousel { flex: 1; }

.widget-customizer {
  margin-top: 20px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #bcd9ff;
  border-radius: 15px;
  background: #f6faff;
}
.widget-customizer > div:first-child { display: grid; gap: 4px; }
.widget-customizer strong { font-size: 13px; }
.widget-customizer span { color: var(--muted); font-size: 11px; }
.hidden-widget-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.hidden-widget-buttons button,
.widget-edit-controls button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #cfe0f6;
  border-radius: 8px;
  color: #46617f;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.dashboard-widget.is-customizing {
  border-color: #9dc9ff;
  box-shadow: 0 12px 36px rgba(22,119,240,.09);
}
.dashboard-widget.is-dragging { opacity: .5; transform: scale(.99); }
.dashboard-widget.drag-target { border-color: var(--blue); }
.widget-edit-controls { display: flex; align-items: center; gap: 5px; }
.widget-edit-controls .widget-grip { cursor: grab; font-size: 15px; }
.widget-edit-controls .widget-hide { color: #a64155; }

.content-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.share-journal-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfe0f6;
  border-radius: 9px;
  color: var(--blue);
  background: #fff;
  font-size: 11px;
  font-weight: 850;
}
.share-journal-button:hover { border-color: #8fc2ff; background: var(--blue-soft); }

/* Messages */
.chat-launcher {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 60;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 19px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 42px rgba(22,119,240,.32);
  font-size: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease;
}
body.profile-ready .chat-launcher {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher strong {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #d94c60;
  font-size: 10px;
}
.chat-panel {
  position: fixed;
  right: 25px;
  bottom: 96px;
  z-index: 55;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 130px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(26,37,58,.22);
}
.chat-panel-head {
  min-height: 72px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.chat-panel-head h3 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.chat-panel-head .eyebrow { margin-bottom: 3px; font-size: 9px; }
.chat-panel-head > div:last-child { display: flex; gap: 6px; }
.chat-panel-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #566173;
  background: #fff;
  font-size: 20px;
}
.chat-contact-form {
  position: absolute;
  inset: 72px 0 auto;
  z-index: 2;
  padding: 16px;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 28px rgba(35,48,74,.08);
}
.chat-contact-form label { display: grid; gap: 7px; color: #4b5565; font-size: 11px; font-weight: 800; }
.chat-contact-form input,
.chat-composer input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.chat-contact-form input:focus,
.chat-composer input:focus { border-color: #8fc2ff; box-shadow: 0 0 0 3px rgba(22,119,240,.08); }
.chat-contact-form p { min-height: 16px; margin: 0; color: #b23f52; font-size: 11px; }
.chat-conversation-list { min-height: 0; padding: 9px; overflow-y: auto; }
.chat-conversation {
  width: 100%;
  padding: 11px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.chat-conversation:hover { background: #f3f7fc; }
.chat-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #6e61df);
  font-size: 12px;
  font-weight: 900;
}
.chat-conversation-copy { min-width: 0; display: grid; gap: 4px; }
.chat-conversation-copy strong,
.chat-conversation-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conversation-copy strong { font-size: 13px; }
.chat-conversation-copy small { color: var(--muted); font-size: 11px; }
.unread-pill { min-width: 21px; height: 21px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--blue); font-size: 9px; font-weight: 900; }
.chat-empty { height: 100%; padding: 34px; display: grid; place-content: center; gap: 7px; color: var(--muted); text-align: center; }
.chat-empty strong { color: var(--ink); }
.chat-empty p { margin: 0; font-size: 12px; line-height: 1.55; }
.chat-thread { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.chat-thread-toolbar {
  min-height: 42px;
  padding: 6px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.chat-thread-toolbar button { border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 800; }
.chat-thread-toolbar .danger-text-button { color: #b34054; }
.chat-messages { min-height: 0; padding: 14px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; background: #f6f8fb; }
.chat-message { max-width: 84%; align-self: flex-start; display: grid; gap: 4px; }
.chat-message.mine { align-self: flex-end; }
.chat-bubble { padding: 10px 12px; border-radius: 14px 14px 14px 4px; color: #374151; background: #fff; box-shadow: 0 2px 9px rgba(35,48,74,.06); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-message.mine .chat-bubble { border-radius: 14px 14px 4px; color: #fff; background: var(--blue); }
.chat-message footer { padding: 0 3px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-message time { color: #929aa8; font-size: 9px; }
.chat-message footer button { border: 0; color: #9a6470; background: transparent; font-size: 9px; font-weight: 800; }
.chat-message.mine footer { flex-direction: row-reverse; }
.chat-message.mine time { text-align: right; }
.shared-journal-card {
  min-width: 230px;
  width: 100%;
  padding: 11px;
  display: grid;
  gap: 6px;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}
.chat-message.mine .shared-journal-card { color: var(--ink); }
.shared-journal-card span { color: var(--blue); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.shared-journal-card strong { font-size: 12px; line-height: 1.35; }
.shared-journal-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.shared-journal-card i { color: var(--blue); font-size: 9px; font-style: normal; font-weight: 850; }
.shared-journal-card:hover { box-shadow: inset 0 0 0 1px #a8ceff; }
.pending-share {
  margin: 8px 11px 0;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  background: #f5faff;
  font-size: 11px;
}
.pending-share button { border: 0; color: #a64155; background: transparent; font-weight: 900; }
.chat-composer {
  padding: 10px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  grid-template-areas: "attach input send" "expiry expiry expiry";
  gap: 7px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-composer input { grid-area: input; }
.chat-composer select {
  grid-area: expiry;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 750;
}
.chat-composer button { width: 42px; height: 42px; border: 0; border-radius: 11px; font-size: 18px; font-weight: 900; }
.chat-attach-button { grid-area: attach; color: var(--blue); background: var(--blue-soft); }
.chat-send-button { grid-area: send; color: #fff; background: var(--blue); }
.chat-thread { position: relative; }
.attachment-browser {
  position: absolute;
  inset: 0;
  z-index: 4;
  min-height: 0;
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 11px;
  background: #fff;
}
.attachment-browser header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.attachment-browser h4 { margin: 0; font-size: 17px; }
.attachment-browser header button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  font-size: 21px;
}
.attachment-browser > input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.attachment-browser > input:focus { border-color: #8fc2ff; box-shadow: 0 0 0 3px rgba(22,119,240,.08); }
.attachment-filters { display: flex; gap: 6px; }
.attachment-filters button {
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: #f0f3f7;
  font-size: 10px;
  font-weight: 800;
}
.attachment-filters button.active { color: var(--blue); background: var(--blue-soft); }
.attachment-results { min-height: 0; display: grid; align-content: start; gap: 7px; overflow-y: auto; }
.attachment-result {
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}
.attachment-result:hover { border-color: #a8ceff; background: #f8fbff; }
.attachment-result > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.attachment-result small { color: var(--blue); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.attachment-result strong,
.attachment-result i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-result strong { font-size: 12px; }
.attachment-result i { color: var(--muted); font-size: 9px; font-style: normal; }
.attachment-result b { color: var(--blue); font-size: 18px; }
.attachment-empty { padding: 34px 14px; color: var(--muted); text-align: center; font-size: 12px; }
.inbox-row .chat-avatar { width: 43px; height: 43px; }
.inbox-row > i { color: #a0a8b5; }

@media (max-width: 900px) {
  .customizable-widgets { grid-template-columns: 1fr; }
  .dashboard-widget.widget-wide { grid-column: auto; }
  .widget-customizer { grid-template-columns: 1fr auto; }
  .hidden-widget-buttons { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}

@media (max-width: 720px) {
  .section-actions { width: 100%; }
  .section-actions button { flex: 1; }
  .section-heading { flex-wrap: wrap; }
  .dashboard-widget { min-height: 0; padding: 16px; }
  .dashboard-widget.core-widget.calendar-card { padding: 14px; }
  .dashboard-widget.core-widget.day-panel { padding: 0; }
  .dashboard-widget .widget-empty,
  .dashboard-widget .widget-upgrade { min-height: 150px; }
  .widget-customizer { grid-template-columns: 1fr; }
  .hidden-widget-buttons { grid-column: auto; grid-row: auto; justify-content: flex-start; }
  .chat-launcher { right: 16px; bottom: 16px; }
  .chat-panel { inset: 72px 0 0; width: 100%; height: calc(100vh - 72px); border: 0; border-radius: 0; }
  .toast { right: 16px; bottom: 84px; }
}
