:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: #1e2c32;
  background: #eaf1f2;
  font-synthesis: none;
  --ink: #1e2c32;
  --muted: #718088;
  --line: rgba(46, 70, 78, 0.12);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --accent: #2d6b67;
  --accent-soft: #dcecea;
  --warm: #c2774f;
  --shadow: 0 18px 55px rgba(53, 82, 89, 0.12);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #eaf1f2; overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; }
.ambient { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(2px); opacity: .55; }
.ambient-one { width: 34vw; height: 34vw; right: -12vw; top: 6vh; background: rgba(181, 216, 205, .58); }
.ambient-two { width: 24vw; height: 24vw; left: -10vw; bottom: 5vh; background: rgba(235, 202, 176, .42); }
.app-shell { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 48px; }
.glass { background: var(--glass); border: 1px solid rgba(255,255,255,.78); box-shadow: var(--shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 24px; }
.brand-lockup, .top-actions, .profile-chip, .hero-row, .panel-heading, .notes-header, .dialog-heading, .dialog-actions { display: flex; align-items: center; }
.brand-lockup { gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: #1f3c3b; color: white; font-weight: 700; box-shadow: 0 7px 15px rgba(31,60,59,.2); }
.eyebrow { margin: 0 0 5px; color: #7e8f94; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font-size: 19px; letter-spacing: .01em; }
h2 { max-width: 620px; margin: 0 0 9px; font-size: clamp(28px, 4vw, 47px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.top-actions { gap: 9px; }
.icon-button, .mini-button, .close-button { display: grid; place-items: center; background: rgba(255,255,255,.48); border: 1px solid var(--line); }
.icon-button { width: 37px; height: 37px; border-radius: 13px; font-size: 18px; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.profile-chip { gap: 8px; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.48); border: 1px solid var(--line); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #55a58d; box-shadow: 0 0 0 4px rgba(85,165,141,.14); }
.hero-row { justify-content: space-between; gap: 28px; padding: 66px 16px 42px; }
.muted { color: var(--muted); font-size: 14px; }
.primary-button, .secondary-button, .danger-button, .filter-button, .today-link { border-radius: 13px; transition: transform .18s ease, background .18s ease; }
.primary-button { padding: 12px 17px; background: var(--accent); color: #fff; box-shadow: 0 10px 22px rgba(45,107,103,.22); font-weight: 650; white-space: nowrap; }
.primary-button:hover, .secondary-button:hover, .danger-button:hover, .filter-button:hover, .icon-button:hover, .mini-button:hover { transform: translateY(-1px); }
.primary-button span { margin-right: 5px; font-size: 17px; }
.view-switcher { display: flex; gap: 4px; width: fit-content; padding: 5px; border-radius: 16px; margin-bottom: 22px; }
.view-tab { padding: 9px 14px; border-radius: 11px; background: transparent; color: var(--muted); font-size: 13px; }
.view-tab.active { background: var(--glass-strong); color: var(--ink); box-shadow: 0 4px 14px rgba(53,82,89,.08); }
.content-grid { display: grid; grid-template-columns: 285px 1fr; gap: 22px; align-items: start; }
.calendar-panel { border-radius: 22px; padding: 21px; }
.panel-heading { justify-content: space-between; margin-bottom: 20px; }
.calendar-actions { display: flex; gap: 5px; }
.mini-button { width: 29px; height: 29px; border-radius: 10px; font-size: 19px; }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.weekday-row { margin-bottom: 8px; color: #94a2a6; font-size: 10px; font-weight: 700; }
.calendar-grid { row-gap: 5px; }
.calendar-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 11px; background: transparent; font-size: 12px; color: #66767b; }
.calendar-day:hover { background: rgba(255,255,255,.7); }
.calendar-day.outside { opacity: .32; }
.calendar-day.selected { background: var(--accent); color: white; box-shadow: 0 6px 14px rgba(45,107,103,.22); }
.calendar-day.today:not(.selected)::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--warm); }
.calendar-day.has-items::before { content: ""; position: absolute; top: 5px; right: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--warm); }
.today-link { width: 100%; padding: 10px; margin-top: 18px; background: rgba(255,255,255,.46); color: var(--accent); font-size: 12px; font-weight: 650; }
.notes-panel { min-width: 0; }
.notes-header { justify-content: space-between; padding: 8px 4px 14px; }
.filter-button { padding: 8px 11px; background: transparent; color: var(--muted); font-size: 12px; }
.notes-list { display: grid; gap: 10px; }
.note-card { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start; padding: 17px 18px; border: 1px solid rgba(255,255,255,.85); border-radius: 18px; background: rgba(255,255,255,.58); box-shadow: 0 9px 28px rgba(53,82,89,.07); transition: transform .18s ease, background .18s ease; }
.note-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.78); }
.note-check { display: grid; place-items: center; width: 25px; height: 25px; margin-top: 1px; border: 1px solid #c0d0d0; border-radius: 9px; background: rgba(255,255,255,.6); color: transparent; }
.note-card.done .note-check { border-color: var(--accent); background: var(--accent); color: white; }
.note-card.done .note-title { text-decoration: line-through; color: #8c9a9e; }
.note-title { margin: 0 0 5px; font-size: 15px; font-weight: 700; }
.note-body { margin: 0 0 9px; color: var(--muted); font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.note-meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; color: #87979b; font-size: 10px; }
.note-tag { padding: 4px 7px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.note-tag.thought { background: #f5e9e1; color: #a46c4b; }
.note-actions { display: flex; gap: 4px; opacity: .7; }
.note-action { width: 27px; height: 27px; border-radius: 8px; background: transparent; color: var(--muted); }
.note-action:hover { background: rgba(255,255,255,.85); color: var(--ink); }
.empty-state { padding: 48px 24px; border-radius: 22px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 15px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.secondary-button { padding: 10px 13px; background: rgba(255,255,255,.62); border: 1px solid var(--line); font-size: 12px; }
.editor-dialog { width: min(100% - 30px, 560px); padding: 0; border: 0; background: transparent; }
.editor-dialog::backdrop { background: rgba(27, 44, 48, .2); backdrop-filter: blur(5px); }
.editor-card { padding: 24px; border-radius: 24px; }
.dialog-heading { justify-content: space-between; margin-bottom: 22px; }
.close-button { width: 30px; height: 30px; border-radius: 10px; font-size: 21px; }
.title-input, textarea, select, input[type="date"] { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.62); color: var(--ink); outline: 0; }
.title-input { padding: 14px; margin-bottom: 10px; font-size: 18px; font-weight: 700; }
textarea { min-height: 150px; padding: 14px; resize: vertical; line-height: 1.55; }
.title-input:focus, textarea:focus, select:focus, input[type="date"]:focus { border-color: rgba(45,107,103,.55); box-shadow: 0 0 0 4px rgba(45,107,103,.1); }
.editor-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.select-wrap { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 650; }
select, input[type="date"] { padding: 11px 12px; }
.dialog-actions { gap: 8px; margin-top: 22px; }
.dialog-spacer { flex: 1; }
.danger-button { padding: 10px 12px; background: #f8e6e3; color: #a45f55; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 5; padding: 11px 15px; border-radius: 13px; background: #1f3c3b; color: white; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: all .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) {
  .app-shell { width: min(100% - 24px, 600px); padding-top: 12px; }
  .topbar { border-radius: 18px; }
  .profile-chip span:last-child { display: none; }
  .hero-row { display: block; padding: 48px 8px 28px; }
  .hero-row .primary-button { margin-top: 20px; }
  .view-switcher { width: 100%; overflow-x: auto; }
  .view-tab { flex: 1; min-width: max-content; padding-inline: 11px; }
  .content-grid { grid-template-columns: 1fr; }
  .calendar-panel { padding: 16px; }
  .calendar-grid { gap: 4px; }
  .note-card { grid-template-columns: 27px 1fr; gap: 11px; }
  .note-actions { grid-column: 2; justify-content: flex-end; margin-top: -7px; }
  .notes-header { align-items: flex-end; }
}
