* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
  --text: #162033;
  --muted: #5f6f89;
  --line: #d6deea;
  --line-strong: #bcc9db;
  --panel: #f7f9fc;
  --panel-2: #eef3f9;

  --primary: #58cfd4;
  --primary-soft: #eefcfb;
  --primary-strong: #35b8bf;

  --secondary: #ee9fce;
  --secondary-soft: #fff2fa;
  --secondary-strong: #e484bd;

  --accent-deep: #4d78c9;
  --accent-soft: #eef4ff;
  --accent-border: #89a8ea;

  --today: #fff7ed;
  --today-line: #fb923c;

  --danger: #dc2626;
  --danger-soft: #fff5f5;
  --success: #0f766e;
  --success-soft: #ecfeff;

  --shadow: 0 10px 28px rgba(27, 39, 94, 0.08);
  --shadow-card: 0 8px 20px rgba(26, 44, 98, 0.08);
  --focus-ring: 0 0 0 4px rgba(88, 207, 212, 0.16);

  --brand-blue-deep: #4fc7cc;
  --brand-pink-deep: #eb8dc6;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: linear-gradient(180deg, #edf6fa 0%, #fbfcff 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

body.standalone {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}

.main-content {
  display: block;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.hero {
  margin-bottom: 18px;
}

.hero-main {
  min-width: 0;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(121, 223, 224, 0.18);
}

.brand-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  min-width: 0;
  flex: 1;
}

.brand-kicker {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}

.brand-title-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 52px;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.brand-title-part {
  display: inline-block;
}

.brand-title-left {
  color: var(--brand-blue-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.brand-title-right {
  color: var(--brand-pink-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.brand-subtitle {
  font-size: 13px;
  color: #7b8ca5;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sub {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 860px;
}

.brand-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #d8e7ef;
  color: #60728d;
  font-size: 12px;
  font-weight: 700;
}

.auth-panel {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  margin-bottom: 18px;
  border-color: #cdeff0;
  background: linear-gradient(135deg, #f7ffff 0%, #fff7fc 100%);
}

.auth-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary-strong);
  margin-bottom: 8px;
}

.auth-title {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.auth-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.auth-panel-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-method-tab {
  height: 50px;
  border-radius: 999px;
  border: 1px solid #d8e7ef;
  background: #ffffff;
  color: #6b7a90;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
}

.auth-method-tab:hover {
  background: #f8fbff;
  transform: none;
}

.auth-method-primary {
  background: linear-gradient(135deg, rgba(88, 207, 212, 0.16) 0%, rgba(238, 159, 206, 0.16) 100%);
  color: var(--text);
  border-color: #bfecee;
}

.auth-method-tab.email-open {
  background: linear-gradient(135deg, rgba(88, 207, 212, 0.16) 0%, rgba(238, 159, 206, 0.16) 100%);
  color: var(--text);
  border-color: #bfecee;
}

.auth-method-pane {
  margin-top: 12px;
  border: 1px solid #d9e9ef;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: 16px;
}

.email-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.login-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.auth-pane-caption {
  font-size: 13px;
  color: #73849d;
  line-height: 1.7;
  margin-top: 12px;
}

.auth-error-box {
  border: 1px solid #fecaca;
  background: #fff7f7;
  color: #b91c1c;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}

.composer {
  padding: 20px;
  margin-bottom: 18px;
}

.composer-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}

.composer-title {
  font-size: 28px;
  line-height: 1.15;
}

.composer-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.composer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(280px, 0.95fr) 140px 240px 122px;
  gap: 12px;
  align-items: center;
}

.date-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

input,
select,
button,
textarea {
  border-radius: 14px;
  border: 1px solid #ccd7ea;
  background: white;
  color: var(--text);
  font-size: 15px;
}

input,
select {
  height: 54px;
  padding: 0 14px;
  min-width: 0;
}

textarea {
  padding: 10px 12px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8a98ad;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: none;
  border-color: #8bdde0;
  box-shadow: var(--focus-ring);
}

button {
  height: 54px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
  box-shadow: 0 10px 20px rgba(88, 207, 212, 0.22);
}

button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--secondary-strong) 100%);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.primary-cta {
  min-width: 122px;
}

.secondary-btn {
  min-width: 160px;
  height: 48px;
  border-radius: 14px;
}

.auth-email-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  box-shadow: 0 10px 20px rgba(88, 207, 212, 0.22);
}

.auth-email-btn:hover {
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--secondary-strong) 100%);
}

.ghost-pink {
  background: linear-gradient(135deg, #fff8fc 0%, #fff3fa 100%);
  color: var(--secondary-strong);
  border: 1px solid #f3cfe5;
  box-shadow: none;
}

.ghost-pink:hover {
  background: linear-gradient(135deg, #fff1f8 0%, #ffeaf5 100%);
  color: var(--secondary-strong);
}

.error-box {
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid #fecaca;
  color: #b91c1c;
  background: #fff7f7;
  line-height: 1.6;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(640px, 1.18fr) minmax(380px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.left-rail {
  position: sticky;
  top: 20px;
}

.right-main {
  min-width: 0;
}

.calendar-card,
.side-card,
.ad-card {
  padding: 18px;
}

.calendar-card {
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.side-card {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  min-height: 240px;
}

.bottom-ad-card {
  margin-top: 18px;
}

.ad-card {
  border: 1px dashed #d6deea;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.ad-card-label {
  font-size: 12px;
  font-weight: 800;
  color: #7b8ca5;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.ad-slot-placeholder {
  min-height: 90px;
  border-radius: 16px;
  border: 1px dashed #cfd8ea;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b98ad;
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head h2 {
  font-size: 30px;
  line-height: 1.15;
  word-break: keep-all;
}

.panel-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meta-pill {
  background: #f0fbfb;
  color: var(--primary-strong);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid #cdeff0;
  white-space: nowrap;
}

.progress-wrap {
  width: 100%;
  height: 10px;
  background: #e7edf7;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.focus-hero {
  border: 1px solid #d8eef5;
  background: linear-gradient(180deg, #f7ffff 0%, #fff5fb 100%);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px rgba(88, 207, 212, 0.1);
}

.focus-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.focus-badge {
  font-size: 12px;
  color: #54b5bc;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.focus-hero h2 {
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 6px;
  word-break: break-word;
}

.focus-sub {
  font-size: 13px;
  color: var(--muted);
  word-break: break-word;
}

.focus-progress {
  margin-top: 14px;
  margin-bottom: 0;
}

.scope-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scope-chip {
  height: auto;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d8e7ef;
  background: #f8fbff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

.scope-chip:hover {
  background: #f2fbfb;
}

.scope-chip.active {
  background: #eefcfb;
  color: var(--primary-strong);
  border-color: #bfecee;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 16px;
}

.calendar-header h2 {
  font-size: 34px;
  line-height: 1.15;
}

.calendar-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.weekday-row div {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.day-cell {
  width: 100%;
  min-width: 0;
  height: 112px;
  border-radius: 18px;
  border: 1px solid #dbe4f0;
  background: white;
  padding: 10px;
  text-align: left;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  box-shadow: 0 4px 10px rgba(70, 86, 180, 0.04);
}

.day-cell:hover {
  border-color: #9fd3df;
  box-shadow: 0 6px 14px rgba(88, 207, 212, 0.12);
  transform: translateY(-1px);
}

.day-cell.active {
  border: 2px solid var(--accent-border);
  background: linear-gradient(180deg, #f5f9ff 0%, #eef4ff 100%);
  box-shadow: 0 8px 18px rgba(77, 120, 201, 0.18);
}

.day-cell.today {
  background: var(--today);
  border: 2px solid var(--today-line);
}

.day-cell.today.active {
  background: linear-gradient(180deg, #fff7ed 0%, #eef4ff 100%);
  border: 2px solid var(--accent-border);
}

.day-cell.outside {
  opacity: 0.45;
  background: #f8fafc;
}

.day-cell.has-items .day-count {
  background: #eefdff;
  color: var(--primary-strong);
}

.day-number {
  font-size: 15px;
  font-weight: 700;
}

.day-preview {
  font-size: 12px;
  color: #7b8ca5;
  line-height: 1.45;
  min-height: 32px;
  margin-top: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.day-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.day-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.task-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid var(--line-strong);
  border-left: 4px solid #cfe7ea;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.task-card.step-card {
  background: linear-gradient(180deg, #ffffff 0%, #faffff 100%);
  border-left-color: #9cdfe2;
}

.task-card.done {
  opacity: 0.72;
}

.task-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 6px;
  min-width: 0;
}

.card-main {
  flex: 1;
  min-width: 0;
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.main-check,
.step-check {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
}

.complete-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #6b7a90;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
}

.complete-toggle.compact {
  font-size: 12px;
  font-weight: 600;
  align-items: flex-start;
  padding-top: 2px;
}

.complete-toggle-text {
  line-height: 1;
}

.title-stack {
  flex: 1;
  min-width: 0;
}

.scope-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.scope-badge.private {
  background: #eefcfb;
  color: var(--primary-strong);
}

.scope-badge.work {
  background: #fff2fa;
  color: var(--secondary-strong);
}

.controls-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  min-width: 220px;
  padding-left: 12px;
  border-left: 1px solid #e3eaf4;
}

.inline-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ai-group {
  max-width: 280px;
}

.tiny-btn {
  height: auto;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 10px;
  border: 1px solid #d8e7ef;
  background: #f8fbff;
  color: var(--text);
  box-shadow: none;
}

.tiny-btn:hover {
  background: #f2fbfb;
  transform: none;
}

.tiny-btn.danger {
  color: var(--danger);
  border-color: #fecaca;
  background: var(--danger-soft);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e4ebf4;
}

.step-item {
  display: flex;
  gap: 10px;
  background: var(--panel);
  border: 1px solid #d9e4f2;
  border-radius: 16px;
  padding: 12px;
  min-width: 0;
}

.step-item:nth-child(even) {
  background: var(--panel-2);
}

.step-item.done {
  opacity: 0.65;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.step-meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.edit-input,
.edit-textarea {
  width: 100%;
  border: 1px solid #d7e0ee;
  background: #fff;
  color: var(--text);
}

.title-edit {
  height: 46px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid #d2dceb;
  background: #ffffff;
  min-width: 0;
}

.sub-edit {
  min-height: 76px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  background: #fcfdff;
}

.edit-textarea {
  min-height: 78px;
  font-size: 14px;
  line-height: 1.5;
  background: #ffffff;
}

.add-step-btn {
  margin-top: 12px;
}

.empty-text {
  color: #7b8ca5;
  font-size: 14px;
  line-height: 1.7;
  padding: 4px 2px;
  word-break: break-word;
}

.site-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.footer-top-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-install-link,
.footer-logout-link {
  height: auto;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #d8e7ef;
  background: #ffffff;
  color: #5f6f89;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.footer-install-link:hover,
.footer-logout-link:hover {
  background: #f8fbff;
  color: var(--primary-strong);
  transform: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 10px;
  border-top: 1px solid #dde5f2;
}

.footer-links a {
  color: #5f6f89;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-strong);
}

.footer-copy {
  text-align: center;
  color: #8a98ad;
  font-size: 12px;
}

.info-page-body {
  background: linear-gradient(180deg, #edf6fa 0%, #fbfcff 100%);
  color: var(--text);
  min-height: 100vh;
}

.info-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.info-header {
  margin-bottom: 18px;
}

.info-header-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.info-header-link:hover {
  text-decoration: none;
}

.info-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(121, 223, 224, 0.18);
}

.info-header-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-header-text strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}

.info-header-text span {
  color: var(--muted);
  font-size: 13px;
}

.info-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px 22px;
}

.info-card h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.info-card h2 {
  font-size: 20px;
  line-height: 1.35;
  margin-top: 22px;
  margin-bottom: 10px;
}

.info-card p,
.info-card li {
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

.info-card ul {
  padding-left: 20px;
}

.info-card a {
  color: var(--accent-deep);
}

.info-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #dde5f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.info-back-home {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3fcfc 0%, #fff4fa 100%);
  border: 1px solid #d8e7ef;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.info-back-home:hover {
  text-decoration: none;
  background: linear-gradient(135deg, #edfafa 0%, #fff0f8 100%);
}

.info-footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.info-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #dde5f2;
  color: #5f6f89;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.info-footer-links a:hover {
  text-decoration: none;
  color: var(--primary-strong);
  background: #f2fbfb;
}

.install-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.28);
  backdrop-filter: blur(2px);
  z-index: 90;
}

.install-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 720px);
  background: #ffffff;
  border: 1px solid #d8e7ef;
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 40px rgba(27, 39, 94, 0.18);
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  z-index: 100;
}

.install-sheet-handle {
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: #d8e1ef;
  margin: 0 auto 14px;
}

.install-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.install-close-btn {
  min-width: 88px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f8fbff;
  color: #5f6f89;
  border: 1px solid #dde5f2;
  box-shadow: none;
}

.install-close-btn:hover {
  background: #f2fbfb;
  color: var(--primary-strong);
  transform: none;
}

.install-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary-strong);
  margin-bottom: 6px;
}

.install-title {
  font-size: 24px;
  line-height: 1.2;
}

.install-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.install-list {
  margin-top: 10px;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.9;
  font-size: 14px;
}

@media (max-width: 1240px) {
  .composer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .left-rail {
    position: static;
  }
}

@media (max-width: 980px) {
  .auth-panel {
    grid-template-columns: 1fr;
  }

  .email-auth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding: 16px 14px 28px;
  }

  .site-footer {
    padding: 0 14px 26px;
  }

  .brand-top,
  .calendar-header,
  .panel-head,
  .task-card-head,
  .focus-hero-head,
  .install-sheet-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-wrap {
    gap: 12px;
  }

  .brand-mark {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .brand-title-logo {
    font-size: 42px;
  }

  .calendar-grid {
    gap: 8px;
  }

  .day-cell {
    height: 88px;
    padding: 8px;
    border-radius: 14px;
  }

  .sub {
    font-size: 15px;
    line-height: 1.75;
    max-width: 100%;
  }

  .auth-title,
  .panel-head h2,
  .calendar-header h2,
  .composer-title,
  .install-title {
    font-size: 26px;
  }

  .focus-hero h2 {
    font-size: 24px;
  }

  .step-meta-row,
  .auth-method-tabs {
    grid-template-columns: 1fr;
  }

  .controls-stack {
    min-width: unset;
    align-items: stretch;
    border-left: none;
    padding-left: 0;
    padding-top: 10px;
    border-top: 1px solid #e3eaf4;
  }

  .card-topline {
    flex-wrap: wrap;
  }

  .panel-head-right,
  .inline-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 14px 12px 24px;
  }

  .hero {
    margin-bottom: 14px;
  }

  .auth-panel,
  .composer,
  .calendar-card,
  .side-card,
  .focus-hero,
  .ad-card,
  .info-card {
    padding: 14px;
    border-radius: 18px;
  }

  .brand-top {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    align-items: start;
  }

  .brand-mark {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
    border-radius: 26px;
  }

  .brand-copy {
    width: 100%;
  }

  .brand-kicker {
    font-size: 12px;
    margin-top: 2px;
  }

  .brand-title-logo {
    font-size: 56px;
    line-height: 0.95;
    margin-bottom: 8px;
  }

  .brand-subtitle {
    font-size: 14px;
  }

  .sub {
    font-size: 15px;
    line-height: 1.72;
    margin-top: 2px;
  }

  input,
  select,
  button {
    height: 50px;
  }

  .tiny-btn,
  .scope-chip {
    min-height: 34px;
    padding: 8px 10px;
  }

  .weekday-row {
    gap: 6px;
  }

  .calendar-grid {
    gap: 6px;
  }

  .day-cell {
    height: 82px;
  }

  .day-preview {
    min-height: 28px;
    font-size: 11px;
  }

  .day-count {
    min-width: 36px;
    height: 24px;
    font-size: 11px;
  }

  .auth-title,
  .panel-head h2,
  .calendar-header h2,
  .composer-title,
  .install-title,
  .info-card h1 {
    font-size: 23px;
  }

  .focus-hero h2 {
    font-size: 22px;
  }

  .complete-toggle {
    font-size: 12px;
    gap: 6px;
  }

  .complete-toggle.compact {
    font-size: 11px;
  }

  .footer-top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-install-link,
  .footer-logout-link {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-links a {
    width: 100%;
    max-width: 260px;
    text-align: center;
    background: #f8fbff;
    border: 1px solid #dde5f2;
    padding: 10px 0;
    font-size: 13px;
    border-radius: 12px;
  }

  .composer-grid {
    grid-template-columns: 1fr;
  }

  .login-actions {
    flex-direction: column;
  }

  .secondary-btn {
    width: 100%;
    min-width: 0;
  }

  .info-shell {
    padding: 16px 12px 24px;
  }

  .info-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .info-back-home {
    justify-content: center;
  }

  .info-footer-links {
    flex-direction: column;
  }

  .info-footer-links a {
    justify-content: center;
    min-height: 44px;
  }

  .install-sheet {
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
  }
}
