/* Putdel's Creator Diary · customer-owned Expert design.
   A quiet paper diary, drawn from the customer's baby-blue and pink reference. */
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('/assets/fonts/caveat.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root, html[data-theme="coquette"] {
  --paper: #fcfbf9;
  --white: #fff;
  --ink: #426080;
  --muted: #7d8da5;
  --rose: #db83a7;
  --rose-dark: #a95177;
  --pink: #fff0f5;
  --pink-2: #f7c7db;
  --blue: #a9d2fb;
  --blue-soft: #edf7ff;
  --blue-ink: #5287bb;
  --sage: #e9f6f0;
  --sage-ink: #4d917c;
  --lilac: #f1edfc;
  --lilac-ink: #8370b5;
  --peach: #fff5e4;
  --peach-ink: #a9864c;
  --line: #e3ebf4;
  --radius: 16px;
  --sans: 'Nunito', 'Segoe UI', Arial, sans-serif;
  --serif: 'Nunito', 'Segoe UI', Arial, sans-serif;
  --hand: 'Caveat', 'Nunito', cursive;
  --sidebar-width: 224px;
  --glass: #fff;
  --glass-edge: #e3ebf4;
  --glass-shadow: none;
}
html, html[data-theme="coquette"] {
  background: var(--paper);
  scrollbar-color: #c5d8eb #f8faff;
}
body {
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  overflow-x: clip;
}
body::before, html[data-theme="coquette"] body::before { display: none; }
button, input, select, textarea { font-family: var(--sans); }
button { letter-spacing: 0; }
button:focus-visible, a:focus-visible {
  outline: 3px solid #86baf0;
  outline-offset: 3px;
}
input:focus, textarea:focus, select:focus { outline-color: #a3c9f1; }
svg { stroke-width: 1.6; }

/* Diary navigation. The original workspace remains fully functional. */
.sidebar {
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  border: 0;
  border-right: 1px solid #e0e9f3;
  border-radius: 0;
  padding: 21px 16px 17px;
  background: #fdfcfb !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow-y: auto;
  scrollbar-width: thin;
}
.brand { padding: 2px 13px 19px; }
.brand-line { gap: 8px; }
.brand-name, html[data-theme="coquette"] .brand-name {
  color: #6395c8;
  font: 900 23px/1.2 var(--sans);
  letter-spacing: -.5px;
}
.brand .bow { font-size: 22px; color: #e7a1c0; }
.brand-sub { color: #95a3b8; font-size: 10px; letter-spacing: 1.1px; margin: 5px 0 0; text-transform: none; }
.nav-label { font-size: 9px; letter-spacing: 1.1px; color: #94a1b5; padding: 0 12px; margin-bottom: 10px; }
.nav { gap: 6px; }
.nav button {
  padding: 10px 11px;
  min-height: 44px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #6381a4;
  font-size: 12px;
  font-weight: 600;
}
.nav button > span[data-icon] {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #edf5fc;
  color: #759bc0;
  flex-shrink: 0;
}
.nav button:nth-child(even) > span[data-icon] { background: #fff0f5; color: #c88ca9; }
.nav button > span[data-icon] svg { width: 20px; height: 20px; }
.nav button:hover { background: #f0f6fd; }
.nav button.active { background: #fceef3; color: #52749a; border-color: #f8e4ed; font-weight: 800; box-shadow: none; }
.nav button.active > span[data-icon] { color: #b981a1; background: #fff8fa; }
.nav .nav-count { background: #fff; color: #8f9eb2; border: 1px solid #e8eef5; font-size: 10px; border-radius: 6px; min-width: 20px; }
.nav-divider { background: #e8edf4; margin: 17px 10px; }
.sidebar-note {
  margin: 24px 12px 18px;
  padding: 22px 13px 17px;
  border: 1px solid #e0eaf5;
  border-radius: 18px 15px 19px 13px;
  background: #fffdfb;
  box-shadow: 2px 3px 0 #f0f5fa;
  transform: rotate(-3deg);
}
.sidebar-note .bow { background: #fffdfb; color: #e3a0bc; font-size: 29px; }
.sidebar-note-bow { position: absolute; width: 53px; height: 51px; object-fit: contain; top: -22px; right: -14px; transform: rotate(10deg); }
.sidebar-note > span { color: #87a3c6; font-size: 19px; display: block; margin-top: 6px; }
.sidebar-note p { color: #6385ac; font: 700 24px/1.15 var(--hand); letter-spacing: .4px; }
.sidebar-note small { color: #96a1b4; font-size: 9px; letter-spacing: .3px; text-transform: none; margin-top: 8px; }
.sidebar-bottom { padding-top: 12px; margin-top: auto; }
.storage-btn { color: #8193aa; font-size: 10px; padding: 11px 8px; border-top-color: #e8edf4; }
.account { padding: 7px 8px 0; gap: 10px; }
.account .avatar { width: 34px; height: 34px; border: 2px solid #fff; background: #edf5ff; box-shadow: 0 0 0 1px #dce7f2; }
.account b { color: #557394; font-size: 12px; font-weight: 800; }
.account span { color: #95a0b3; font-size: 10px; }
.workspace { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); max-width: none; }
.topbar { height: 62px; padding: 0 28px; background: #fcfcfd; border-bottom: 1px solid #e7eef5; }
.crumb { font-size: 11px; color: #96a4b8; gap: 9px; }
.crumb span:last-child { color: #6682a5; font-weight: 700; }
.crumb svg { width: 15px; height: 15px; }
.today { font-size: 10px; color: #8b9bb2; }
.top-right { gap: 10px; }
.icon-btn { width: 33px; height: 33px; border: 1px solid #e1eaf3; border-radius: 11px; background: #fff; box-shadow: none; color: #7c9ec1; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: #f0f6fd; }
.mobile-menu { display: none; }
.main {
  padding: 24px 28px 27px;
  max-width: 1480px;
  margin: auto;
  background-image: radial-gradient(#d9e5f0 0.55px, transparent .55px);
  background-size: 17px 17px;
}
.intro, body:not([data-current-view="dashboard"]) .intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  gap: 18px;
  padding: 0;
  margin-bottom: 20px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
}
.intro::after { display: none; }
.creator-portrait { display: none !important; }
.intro .eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.1px; color: #a497b0; margin-bottom: 3px; }
.intro h1, body:not([data-current-view="dashboard"]) .intro h1, html[data-theme="coquette"] .intro h1 {
  color: #547aa5;
  font: 800 26px/1.25 var(--sans);
  letter-spacing: -.5px;
}
.intro h1 em, html[data-theme="coquette"] .intro h1 em { color: #d78fad; font: inherit; display: inline; }
.intro p, body:not([data-current-view="dashboard"]) .intro p { font-size: 11px; color: #8f9db1; line-height: 1.5; margin-top: 4px; max-width: none; }
.btn { min-height: 39px; border-radius: 10px; padding: 9px 14px; font-size: 12px; font-weight: 700; box-shadow: none; }
.btn-primary, html[data-theme="coquette"] .btn-primary, html[data-theme="coquette"] .intro .btn-primary {
  color: #4c7198;
  background: #dfedfc;
  border: 1px solid #c6def6;
  box-shadow: 0 3px 0 #eaf2fb;
}
.btn-primary:hover, html[data-theme="coquette"] .btn-primary:hover { background: #d2e6fb; }
.btn-soft { background: #fff1f6; border: 1px solid #f3dbe6; color: #b07695; }
.btn-plain { border-color: #dde8f2; background: #fff; color: #6483a7; }
.preview-banner { margin: -7px 0 17px; color: #9a93a5; font-size: 10px; }
.preview-banner button { color: #8f86a8; font-size: 10px; }
.main-footer { color: #9daabb; font-size: 9px; letter-spacing: .2px; gap: 14px; padding-top: 10px; margin-top: 19px; }
.main-footer .bow { color: #d5a3bc; }

/* A small greeting followed by four clearly separated totals. */
#stats {
  display: grid;
  grid-template-columns: 1.44fr repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.diary-welcome, .diary-stat {
  min-width: 0;
  min-height: 117px;
  background: #fff;
  border: 1px solid #e1eaf3;
  border-radius: 14px;
  box-shadow: 0 2px 0 #eff3f8;
}
.diary-welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 20px;
  background: #f0f8ff;
  border-color: #e0edf9;
}
.diary-welcome::before {
  content: none;
  position: absolute;
  left: -6px;
  top: -15px;
  font: 34px/1 var(--hand);
  letter-spacing: -6px;
  color: #eeb1cc;
  transform: rotate(-18deg);
}
.diary-welcome > img { position: absolute; width: 42px; height: 43px; object-fit: contain; left: -11px; top: -15px; transform: rotate(-17deg); }
.diary-welcome h2, .diary-welcome > b { font: 800 21px/1.25 var(--sans); color: #6292c2; letter-spacing: .2px; }
.diary-welcome p { font-size: 11px; line-height: 1.65; color: #6c86a7; margin-top: 7px; max-width: 240px; }
.diary-welcome small { font-size: 10px; color: #92a9c0; margin-top: 5px; }
.diary-stat { padding: 16px 14px 13px; }
.diary-stat-label { display: flex; align-items: center; gap: 7px; min-height: 22px; font-size: 10px; line-height: 1.4; color: #7089a9; font-weight: 700; }
.diary-stat-label > span[data-icon] { display: grid; place-items: center; }
.diary-stat-label svg { width: 20px; height: 20px; padding: 3px; box-sizing: content-box; border-radius: 8px; background: #f5f9fd; color: #7eabd4; }
.diary-stat.pink .diary-stat-label svg { background: #fff2f7; color: #d593b2; }
.diary-stat.lilac .diary-stat-label svg { background: #f4effd; color: #a394c2; }
.diary-stat.sand .diary-stat-label svg { background: #fff6e7; color: #c9a36c; }
.diary-stat-value { font-size: clamp(17px, 1.55vw, 23px); line-height: 1.2; font-weight: 900; color: #426080; letter-spacing: -.3px; margin: 13px 0 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.diary-stat-foot { color: #7488a0; font-size: 9px; display: flex; gap: 7px; align-items: center; line-height: 1.5; }
.diary-stat-track { height: 7px; flex: 1; min-width: 30px; background: #f3f5f8; border-radius: 8px; overflow: hidden; }
.diary-stat > .diary-stat-track { margin-bottom: 6px; }
.diary-stat-track span { display: block; height: 100%; background: #bfdcfb; border: 1px solid #a4c7ed; border-radius: inherit; }
.diary-stat.pink .diary-stat-track span { background: #f8d1e2; border-color: #efb7cd; }
.diary-stat.lilac .diary-stat-track span { background: #ded7f4; border-color: #cfc3eb; }
.diary-stat.sand .diary-stat-track span { background: #f6e3b9; border-color: #e7d19e; }
.diary-monthly-note { margin: -5px 0 16px; color: #7488a0; font-size: 10px; line-height: 1.6; }
.diary-monthly-note p { margin: 0; }
body[data-current-view="calendar"] .diary-monthly-note, body[data-current-view="invoices"] .diary-monthly-note { display: none; }
body[data-current-view="dashboard"] #contentGrid,
body[data-current-view="dashboard"] #miniSummary,
body[data-current-view="dashboard"] #mobileStats,
body[data-current-view="dashboard"] #mobileCalendar { display: none !important; }

/* The diary's two neat columns, with soft dividers instead of heavy effects. */
.diary-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: 17px; align-items: start; }
.diary-left, .diary-right { display: grid; gap: 15px; min-width: 0; }
.diary-panel { min-width: 0; border: 1px solid #e0e9f3; border-radius: 15px; background: #fff; box-shadow: 0 2px 0 #eff3f8; overflow: hidden; }
.diary-panel-head { min-height: 52px; padding: 13px 17px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf1f6; }
.diary-panel-head h2 { display: flex; align-items: center; gap: 9px; font-size: 16px; line-height: 1.3; font-weight: 800; color: #638ab5; letter-spacing: .1px; }
.diary-panel-head h2 > span[data-icon] { display: grid; place-items: center; width: 25px; height: 25px; background: #f1f7ff; border: 1px solid #e1ebf9; border-radius: 7px; color: #8dacca; transform: rotate(-6deg); }
.diary-panel-head h2 svg { width: 19px; height: 19px; }
.diary-panel-head h2 > svg { color: #9aacca; width: 25px; height: 25px; padding: 3px; border: 1px solid #e1ebf9; border-radius: 7px; background: #f1f7ff; transform: rotate(-6deg); }
.diary-panel-head > button { display: flex; align-items: center; gap: 4px; padding: 5px 0 5px 5px; color: #8398b1; font-size: 10px; font-weight: 600; white-space: nowrap; }
.diary-panel-head > button:hover { color: #547eab; }
.diary-panel-head > button svg { width: 13px; height: 13px; }
.diary-panel-body { padding: 4px 16px 9px; }
.diary-empty { padding: 22px 12px; color: #92a0b4; font-size: 12px; text-align: center; line-height: 1.8; }
.diary-collab-grid > .diary-empty { grid-column: 1 / -1; }

/* The calendar remains interactive and is comfortably legible on a phone. */
.diary-calendar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 1px 8px; }
.diary-calendar-top > b, .diary-calendar-top > span { color: #6687ac; font-weight: 800; font-size: 12px; }
.diary-month-actions { display: flex; align-items: center; gap: 3px; }
.diary-month-actions > span { font-size: 10px; color: #7d96b1; font-weight: 800; margin-right: 3px; white-space: nowrap; }
.diary-month-actions button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #8ca5c1; }
.diary-month-actions button:hover { background: #edf5fd; }
.diary-month-actions svg { width: 15px; height: 15px; }
.diary-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: #edf1f6; border: 1px solid #edf1f6; border-radius: 10px; overflow: hidden; }
.diary-day-name { background: #fcfdff; text-align: center; padding: 9px 0; font-size: 10px; font-weight: 700; color: #7b94b0; }
.diary-day { position: relative; min-width: 0; min-height: 53px; padding: 5px 3px 4px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; background: #fff; border: 0; color: #6d88a9; font-size: 11px; line-height: 1.5; }
.diary-day > span:first-child { min-width: 21px; min-height: 20px; display: grid; place-items: center; border-radius: 50%; }
.diary-day:hover { background: #f2f8ff; }
.diary-day.outside { color: #c4ccda; background: #fefefe; }
.diary-day.today { background: #edf6ff; }
.diary-day.today > span:first-child { background: #bad8f6; color: #436f9c; font-weight: 900; }
.diary-day.selected { box-shadow: inset 0 0 0 1.5px #b2cae9; z-index: 1; }
.diary-day.has-content { background: #fdf7fa; }
.diary-day.has-content:nth-child(3n) { background: #f1f8ff; }
.diary-day.has-content:nth-child(5n) { background: #fffaef; }
.diary-day.has-content:nth-child(4n) { background: #f7f3ff; }
.diary-events { display: flex; gap: 3px; justify-content: center; }
.diary-event { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: #ddecfb; color: #7698bd; font-size: 8px; font-weight: 800; }
.diary-event svg { width: 11px; height: 11px; }
.diary-event.pink { background: #f9daea; color: #bf87a6; }
.diary-event.lilac { background: #eae3fa; color: #9785ba; }
.diary-calendar-legend { padding: 11px 1px 1px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #92a2b6; font-size: 9px; }
.diary-calendar-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.diary-calendar-legend i { width: 6px; height: 6px; border-radius: 3px; display: inline-block; background: #bad5f5; }
.diary-calendar-legend .pink i, .diary-calendar-legend i.pink { background: #f2c2d8; }
.diary-calendar-legend .lilac i, .diary-calendar-legend i.lilac { background: #d8ceee; }

/* Tasks, content, and collaborations retain separate visual meanings. */
.diary-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 59px;
  padding: 10px 1px;
  border-bottom: 1px solid #f0f3f7;
  text-align: left;
}
.diary-task-row:last-child, .diary-content-row:last-child, .diary-followup-row:last-child { border-bottom: 0; }
.diary-task-row:hover, .diary-content-row:hover, .diary-followup-row:hover { background: #fbfdff; }
.diary-task-check { width: 22px; height: 24px; flex: 0 0 22px; display: grid; place-items: center; border: 1px solid #dce7f3; border-radius: 7px; background: #f6faff; color: #9bb2cd; }
.diary-task-check svg { width: 13px; height: 13px; }
.diary-task-copy { min-width: 0; flex: 1; }
.diary-task-copy b, .diary-content-copy b { font-size: 12px; line-height: 1.5; font-weight: 700; display: block; color: #426080; }
.diary-task-copy small, .diary-content-copy small { font-size: 10px; line-height: 1.5; color: #7488a0; display: block; margin-top: 2px; }
.diary-task-date { font-size: 10px; color: #8b9eb7; white-space: nowrap; min-width: 43px; text-align: right; }
.diary-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; padding: 3px 8px; color: #7197bf; background: #eaf4ff; font-size: 9px; line-height: 1.4; white-space: nowrap; font-weight: 700; }
.diary-badge.pink { color: #bd779a; background: #ffedf4; }
.diary-badge.blue { color: #7097c1; background: #eaf4ff; }
.diary-badge.lilac { color: #8e78b3; background: #f0eafd; }
.diary-badge.mint { color: #629c88; background: #eaf6f1; }
.diary-badge.sand { color: #b0925f; background: #fff5e3; }
.diary-content-row, .diary-followup-row { display: flex; align-items: center; gap: 10px; min-height: 66px; width: 100%; padding: 9px 0; border-bottom: 1px solid #eef2f7; text-align: left; }
.diary-brand-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  flex: 0 0 34px;
  background: #eff7ff;
  border: 1px solid #deebfa;
  border-radius: 10px;
  color: #7d9fc2;
  font-size: 11px;
  font-weight: 800;
}
.diary-brand-avatar.pink { background: #ffeff6; border-color: #f7e0eb; color: #ca93af; }
.diary-brand-avatar.lilac { background: #f2edfd; border-color: #e9e0f8; color: #a393be; }
.diary-brand-avatar.sand { background: #fff7e8; border-color: #f3e7cc; color: #bfa36f; }
.diary-brand-avatar.mint { background: #edf7f2; border-color: #dceee5; color: #89aa9c; }
.diary-content-copy { flex: 1; min-width: 0; }
.diary-content-copy small { display: flex; align-items: center; gap: 4px; }
.diary-content-copy small svg { width: 11px; height: 11px; }
.diary-content-date { font-size: 9px; color: #8d9fb6; white-space: nowrap; margin-left: 3px; }
.diary-collab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding: 9px 0 4px; }
.diary-collab-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 119px; padding: 10px 9px; border: 1px solid #e4eef9; border-radius: 10px; background: #f1f8ff; text-align: left; }
.diary-collab-card.pink { background: #fff4f8; border-color: #f8e8ef; }
.diary-collab-card.lilac { background: #f6f2ff; border-color: #eee7fb; }
.diary-collab-card.sand { background: #fff8ed; border-color: #f8ecd7; }
.diary-collab-card:hover { border-color: #c4d9ef; }
.diary-collab-card .diary-brand-avatar { width: 25px; height: 25px; flex-basis: 25px; border-radius: 50%; margin-bottom: 6px; font-size: 8px; background: #dceefe; border-color: #c5dff8; }
.diary-collab-card.pink .diary-brand-avatar { background: #f9d9e8; border-color: #efbfd2; color: #bd7795; }
.diary-collab-card.lilac .diary-brand-avatar { background: #dfd9f5; border-color: #d0c8eb; color: #9987b5; }
.diary-collab-card.sand .diary-brand-avatar { background: #f7e4bc; border-color: #ebd39e; color: #ac8d55; }
.diary-collab-card > b { font-size: 9px; color: #6887a9; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.diary-collab-card > span:not(.diary-brand-avatar) { font-size: 9px; color: #8b9bb3; margin-top: 3px; }
.diary-collab-card > small { color: #7390b0; font-size: 9px; line-height: 1.5; margin-top: 3px; }
.diary-due-pill { flex-shrink: 0; background: #edf5ff; color: #7095bc; border-radius: 12px; padding: 7px 10px; font-size: 9px; font-weight: 700; }
.diary-due-pill.pink { background: #fff0f6; color: #c58cab; }
.diary-due-pill.blue { background: #edf5ff; color: #7396bd; }
.diary-due-pill.mint { background: #eaf6f2; color: #719b8e; }
.diary-quote-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 16px; min-height: 160px; padding: 8px 8px 0; }
.diary-quote { position: relative; background: #fff5f8; border: 1px solid #f7dce9; border-radius: 20px 16px 23px 14px; text-align: center; padding: 23px 16px 19px; transform: rotate(-2deg); box-shadow: 3px 3px 0 #ffeff4; }
.diary-quote small { color: #a785a5; font-size: 10px; font-weight: 800; letter-spacing: .6px; }
.diary-quote h3 { color: #6b87ab; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.diary-quote p { font: 700 21px/1.35 var(--hand); color: #728caf; margin-top: 12px; letter-spacing: .5px; }
.diary-quote > span { display: block; margin-top: 9px; color: #88a5c6; font-size: 18px; }
.quote-bow { position: absolute; width: 47px; height: 44px; left: -12px; top: -14px; object-fit: contain; transform: rotate(-12deg); }
.diary-books { display: block; width: 100%; max-width: 180px; height: 145px; object-fit: contain; margin: auto; }

/* Existing collaboration, payment, invoice, and form views in matching paper. */
.panel, .calendar-panel, .assistant-card, .view-panel, .mobile-status, .mobile-calendar, .stat, .job-row {
  background: #fff !important;
  border: 1px solid #e1eaf3;
  border-radius: 14px;
  box-shadow: 0 2px 0 #eff3f8;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html[data-glass="false"] .panel, html[data-glass="false"] .stat,
html[data-glass="false"] .job-row, html[data-glass="false"] .mobile-status,
html[data-glass="false"] .mobile-calendar { background: #fff !important; }
.content-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
.jobs-panel { border: 0; background: transparent !important; box-shadow: none; }
.panel-head { padding: 0 1px 16px; }
.panel-head h2, .section-title { font-size: 19px; font-weight: 800; color: #6185af; letter-spacing: -.3px; }
.panel-head h2 span { color: #89a0bc; background: #eff6ff; border: 1px solid #e1ecf8; }
.panel-head .small-label { font-size: 10px; color: #93a3b8; }
.search-box { background: #fff; border: 1px solid #dce7f2; border-radius: 11px; box-shadow: none; backdrop-filter: none; }
.search-box svg { color: #8ca7c4; }
.search-box input { color: #607d9e; }
.search-box input::placeholder { color: #9baabe; }
.tabs { padding: 4px; gap: 4px; background: #eff4fa; border: 1px solid #e2eaf4; border-radius: 10px; box-shadow: none; }
.tab, .tabs .tab { color: #86a0bc; font-size: 11px; border-radius: 7px; }
.tab.active { color: #6789ad; background: #fff; border-color: #dfeaf5; box-shadow: 0 1px 2px #d4e1ee44; }
.tab:hover { background: #fff; }
.job-row { padding: 20px; border: 1px solid #e0eaf4 !important; border-radius: 14px; margin-bottom: 10px; }
.job-brand, .job-money b { color: #5c7d9f; }
.job-brand { font-weight: 800; }
.job-brand .diary-badge { vertical-align: middle; margin-left: 5px; font-size: 9px; font-weight: 700; }
.job-desc, .job-meta, .platform-inline, .job-money span { color: #8d9eb5; }
.brand-avatar { box-shadow: none; border: 1px solid #e2eaf3; border-radius: 10px; color: #7b95b4; }
.pill-select { background-color: #fff0f5; color: #b77d9b; border: 1px solid #f4dce7; box-shadow: none; border-radius: 8px; }
.pill-select.done, .pill-select.paid { background-color: #eaf5ef; border-color: #dcebe2; color: #649680; }
.pill-select.wait { background-color: #fff6e7; border-color: #f4e8ce; color: #af9369; }
.contact-btn { background: #f0f7f3; border-color: #e1eee6; color: #87aa97; }
.contact-btn:disabled { background: #f6f8fa; color: #b5c3bb; }
.job-footer { color: #a0aec1; font-size: 10px; }
.row-menu { background: #fff; border: 1px solid #e0eaf4; border-radius: 12px; box-shadow: 0 6px 24px #6686a526; backdrop-filter: none; }
.rail-heading { color: #688bb3; font-weight: 800; }
.rail-heading svg { color: #93acd0; }
.calendar-month, .cal-day { color: #7c98b5; }
.day-label, .cal-legend { color: #95a6bb; }
.cal-day.today { background: #e6f2ff; color: #5684b3; box-shadow: none; }
.cal-day.selected { outline-color: #92b7dc; }
.cal-day.has-visit::after { background: #d89ab6; }
.upcoming { border-top-color: #e8eef6; }
.upcoming-title, .visit-copy span { color: #96a6bb; }
.visit-date { background: #f4f8fe; border-color: #e1eaf5; border-radius: 8px; }
.visit-copy b { color: #7792b0; }
.assistant-card { background: #f4f8ff !important; border-color: #e0eafa; }
.assistant-kicker { color: #97a7c2; }
.assistant-card h3 { color: #7793b7; font-size: 23px; letter-spacing: -.3px; }
.assistant-card p, .assistant-card .assistant-status { color: #91a2bb; }
.assistant-card .btn { background: #fff; border: 1px solid #dfe8f4; border-radius: 10px; box-shadow: none; color: #7b98bb; }
.payment-row h3 { color: #6487af; }
.payment-row p, .payment-amount small { color: #91a2b7; }
.payment-track { background: #eff4fb; }
.payment-track span { background: #abccef; }
.payment-amount b { color: #6687ac; }
.payment-amount button { color: #b885a2; }
.empty h3 { color: #698bb0; font-size: 22px; }
.empty p { color: #8f9fb5; }
dialog, html[data-glass="false"] dialog {
  background: #fff !important;
  border: 1px solid #d8e5f2;
  border-radius: 20px;
  box-shadow: 0 14px 70px #526f9233;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #577696;
}
dialog::backdrop { background: #47648655; backdrop-filter: blur(3px); }
.dialog-head { padding: 23px 25px 19px; }
.dialog-head h2 { color: #6386ad; font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.dialog-head p, .field small { color: #94a3b8; }
.field label { color: #6c89aa; }
.field input, .field textarea, .field select { color: #6483a5; background: #fbfdff; border: 1px solid #dce7f2; border-radius: 10px; box-shadow: none; }
.toggle-row { background: #fafcff; border-color: #e1eaf5; border-radius: 10px; }
.section-divider { color: #aa91ae; }
.form-actions { background: #f8fbff; border-top: 1px solid #e4edf5; backdrop-filter: none; }
.setting-block { background: #fafdff; border-color: #e2ebf6; border-radius: 12px; }
.setting-block b { color: #6385ab; }
.assistant-dialog .dialog-head { background: #eff7ff; border-bottom-color: #dce9f7; }
.chat-message { background: #fbfdff; border: 1px solid #e1eaf4; color: #6b86a5; border-radius: 14px 14px 14px 4px; }
.chat-message.user { background: #fff1f7; border-color: #f3dce8; color: #b0819b; border-radius: 14px 14px 4px 14px; }
.chat-chips button { color: #8b9cbb; background: #f6faff; border-color: #dfe8f6; }
.chat-form { background: #f8fbff; border-color: #e4edf6; backdrop-filter: none; }
.chat-form input { border-radius: 11px; color: #6c86a6; background: #fff; border-color: #dfe9f5; }
.chat-form .btn { border-radius: 10px; }
.chat-status { color: #8eabc5; }
.toast { background: #698aac; border: 1px solid #86a4c2; box-shadow: 0 5px 15px #617c9528; backdrop-filter: none; color: #fff; border-radius: 11px; }
.toast.error { background: #b06e8d; border-color: #c487a4; }
select option { background: #fff; color: #557596; }

/* The assistant stays small, so it never competes with the diary content. */
.indi-companion { width: 95px; right: 17px; bottom: 18px; }
.indi-companion-open { width: 90px; }
.indi-companion-stage { width: 64px; height: 67px; }
.indi-companion-image { width: 64px; height: 64px; image-rendering: auto; filter: drop-shadow(0 3px 2px #a0b3c330); }
.indi-companion-shadow { left: 21px; width: 24px; }
.indi-companion-label, .indi-companion-restore { background: #fffafd; color: #ac83a0; border: 1px solid #ecdbe8; box-shadow: 0 2px 7px #7992a415; font-size: 10px; padding: 6px 10px; min-height: 28px; }
.indi-companion-dot { background: #dca5c0; box-shadow: 0 0 0 2px #fceaf3; }
.indi-companion-collapse { width: 27px; height: 27px; right: -4px; color: #ba93af; }
.indi-companion-collapse svg { background: #fff8fc; border-color: #eddce8; box-shadow: none; }

@media (min-width: 1500px) {
  .main { padding: 25px 40px 30px; }
  .topbar { padding: 0 40px; }
  .diary-stat-value { font-size: 23px; }
}
@media (max-width: 1200px) and (min-width: 901px) {
  :root, html[data-theme="coquette"] { --sidebar-width: 202px; }
  .sidebar { padding: 20px 12px 16px; }
  .nav button { padding: 9px 9px; gap: 8px; font-size: 11px; }
  .brand { padding-left: 10px; }
  .main { padding: 23px 22px 28px; }
  .topbar { padding: 0 22px; }
  #stats { gap: 9px; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
  .diary-welcome { padding: 15px; }
  .diary-welcome h2 { font-size: 18px; }
  .diary-welcome p { font-size: 10px; }
  .diary-stat { padding: 14px 10px 12px; }
  .diary-stat-label { font-size: 9px; gap: 5px; }
  .diary-stat-label svg { width: 16px; height: 16px; }
  .diary-stat-value { font-size: 16px; }
  .diary-stat-foot { font-size: 8px; }
  .diary-panel-head { padding: 12px 13px; }
  .diary-panel-head h2 { font-size: 14px; gap: 7px; }
  .diary-panel-body { padding-left: 13px; padding-right: 13px; }
  .diary-task-row { gap: 7px; }
  .diary-task-copy b, .diary-content-copy b { font-size: 12px; }
  .diary-task-date { font-size: 9px; min-width: 35px; }
  .diary-badge { font-size: 8px; padding: 3px 6px; }
  .diary-collab-card { padding: 9px 7px; }
}
@media (max-width: 900px) {
  .sidebar { inset: 12px auto 12px 12px; width: 247px; z-index: 40; border: 1px solid #dbe7f4; border-radius: 20px; padding: 24px 17px; transform: translateX(calc(-100% - 25px)); box-shadow: 0 10px 45px #617b9533; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 35; background: #627e9855; backdrop-filter: blur(2px); }
  .workspace { width: 100%; margin-left: 0; }
  .topbar { height: 57px; padding: 0 21px; }
  .mobile-menu { display: inline-flex; }
  .main { padding: 23px 21px 30px; }
  #stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .diary-welcome { grid-column: 1 / -1; min-height: 75px; padding: 13px 21px; }
  .diary-welcome h2 { font-size: 20px; }
  .diary-welcome p { max-width: none; margin-top: 4px; }
  .diary-stat-value { font-size: 20px; }
  .diary-stat { min-height: 113px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 250px; }
  .topbar .today { display: none; }
}
@media (max-width: 700px) {
  #stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diary-stat-label { font-size: 11px; }
  .diary-stat-value { font-size: 23px; }
  .diary-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .diary-left, .diary-right { display: contents; }
  .diary-left > .diary-panel:nth-child(1) { order: 2; }
  .diary-right > .diary-panel:nth-child(1) { order: 1; }
  .diary-left > .diary-panel:nth-child(2) { order: 3; }
  .diary-right > .diary-panel:nth-child(2) { order: 4; }
  .diary-left > .diary-panel:nth-child(3) { order: 5; }
  .diary-calendar-panel, #diaryCalendarPanel { order: 2; }
  .diary-tasks-panel, #diaryTasksPanel, .diary-deadline-panel, #diaryDeadlinePanel { order: 1; }
  .diary-content-panel, #diaryContentPanel { order: 3; }
  .diary-followup-panel, #diaryFollowupPanel { order: 4; }
  .diary-collaboration-panel, #diaryCollaborationPanel { order: 5; }
  .diary-quote-layout { order: 6; }
  .content-grid { display: block; }
  .right-rail { margin-top: 18px; display: grid; }
  .diary-day { min-height: 53px; }
  .diary-panel-head h2 { font-size: 15px; }
  .diary-task-copy b, .diary-content-copy b { font-size: 12px; }
  .diary-task-copy small, .diary-content-copy small { font-size: 10px; }
  .diary-task-date { font-size: 10px; }
  .diary-badge { font-size: 9px; }
}
@media (max-width: 760px) {
  .bottom-nav { display: grid; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); min-height: 66px; padding: 6px 8px; border: 1px solid #dce7f3; border-radius: 20px; background: #fff !important; box-shadow: 0 3px 20px #6786a522; backdrop-filter: none; }
  .bottom-nav button { min-height: 49px; border-radius: 13px; color: #8fa1b9; font-size: 9px; gap: 3px; }
  .bottom-nav button.active { background: #fff0f6; border-color: #f6e1eb; color: #bd88a6; box-shadow: none; }
  .bottom-nav .bottom-add { background: #bfd9f5; border: 1px solid #abc7e9; width: 46px; height: 46px; min-height: 46px; border-radius: 14px; color: #557ca4; box-shadow: 0 2px 0 #e1edfa; }
  .bottom-nav button svg { width: 19px; height: 19px; }
  .bottom-nav .bottom-add svg { width: 22px; height: 22px; }
  .main { padding-bottom: 108px; }
  .indi-companion { width: 100px; right: 14px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 76px); }
  .indi-companion-open { width: 100px; }
  .indi-companion-stage { display: none; }
  .indi-companion-label { padding: 7px 11px; font-size: 10px; min-height: 31px; background: #fffafdf5; }
  .indi-companion-collapse { display: none; }
  .indi-companion-restore { min-width: 70px; min-height: 34px; }
  .toast { left: 50%; bottom: 90px; }
  .form-actions { padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
  .field input, .field select, .field textarea { font-size: 16px; }
  .job-controls { padding: 0 0 16px; }
  .job-row { padding: 17px 15px; }
  .job-bottom { margin-left: 0; border-top-color: #eaf0f7; }
  .job-brand { font-size: 13px; }
  .job-desc { font-size: 11px; }
  .job-money b { font-size: 12px; }
  .pill-select { min-height: 36px; }
  .contact-btn { height: 36px; }
}
@media (max-width: 480px) {
  .topbar { height: 54px; padding: 0 16px; gap: 10px; }
  .crumb { gap: 7px; font-size: 10px; flex: 1; }
  .crumb .crumb-home { display: none; }
  .top-right { gap: 7px; }
  .icon-btn { width: 31px; height: 31px; border-radius: 10px; }
  .main { padding: 16px 16px 107px; }
  .intro, body:not([data-current-view="dashboard"]) .intro { align-items: flex-start; gap: 10px; padding: 0; margin-bottom: 15px; min-height: 0; }
  .intro .eyebrow { font-size: 8px; margin-bottom: 2px; }
  .intro h1, body:not([data-current-view="dashboard"]) .intro h1, html[data-theme="coquette"] .intro h1 { font-size: 20px; line-height: 1.2; letter-spacing: -.4px; }
  .intro p { font-size: 10px; max-width: 210px; }
  .intro > .btn { display: inline-flex; min-height: 34px; padding: 7px 9px; font-size: 10px; border-radius: 9px; gap: 5px; flex-shrink: 0; margin-top: 4px; }
  .intro > .btn svg { width: 14px; height: 14px; }
  .preview-banner { font-size: 9px; margin-top: -5px; margin-bottom: 14px; }
  .preview-banner button { font-size: 9px; }
  #stats { gap: 11px; margin-bottom: 18px; }
  .diary-welcome { min-height: 76px; padding: 11px 17px; }
  .diary-welcome h2 { font-size: 20px; }
  .diary-welcome p { font-size: 10px; line-height: 1.5; margin-top: 4px; }
  .diary-stat { padding: 12px; min-height: 105px; }
  .diary-stat-label { font-size: 10px; gap: 5px; }
  .diary-stat-label svg { width: 18px; height: 18px; padding: 2px; }
  .diary-stat-value { font-size: 21px; margin: 8px 0 7px; }
  .diary-stat-foot { font-size: 9px; }
  .diary-panel-head { padding: 12px 13px; min-height: 49px; gap: 8px; }
  .diary-panel-head h2 { font-size: 14px; gap: 7px; }
  .diary-panel-head h2 > span[data-icon] { width: 23px; height: 23px; }
  .diary-panel-head > button { font-size: 9px; }
  .diary-panel-body { padding: 3px 12px 9px; }
  .diary-calendar-top { padding-top: 9px; }
  .diary-day { min-height: 48px; font-size: 10px; }
  .diary-day-name { font-size: 9px; padding: 8px 0; }
  .diary-event { width: 16px; height: 16px; border-radius: 5px; }
  .diary-event svg { width: 10px; height: 10px; }
  .diary-calendar-legend { font-size: 8px; gap: 8px; }
  .diary-task-row { gap: 8px; min-height: 65px; }
  .diary-task-copy b, .diary-content-copy b { font-size: 12px; line-height: 1.55; }
  .diary-task-copy small, .diary-content-copy small { font-size: 10px; }
  .diary-task-date { font-size: 9px; min-width: 36px; }
  .diary-task-row > .diary-badge { padding: 3px 6px; font-size: 8px; }
  .diary-brand-avatar { width: 30px; height: 33px; flex-basis: 30px; font-size: 9px; }
  .diary-content-row, .diary-followup-row { gap: 8px; }
  .diary-content-row > .diary-badge { font-size: 8px; padding: 3px 6px; }
  .diary-content-date { font-size: 8px; margin-left: 0; }
  .diary-due-pill { font-size: 8px; padding: 6px 8px; border-radius: 9px; }
  .diary-collab-grid { gap: 6px; }
  .diary-collab-card { padding: 9px 6px; min-height: 114px; }
  .diary-collab-card > b { font-size: 8px; }
  .diary-collab-card > span:not(.diary-brand-avatar), .diary-collab-card > small { font-size: 8px; }
  .diary-quote-layout { gap: 12px; padding: 15px 6px 0; }
  .diary-quote { padding: 20px 11px 16px; }
  .diary-quote p { font-size: 20px; }
  .diary-books { max-width: 155px; height: 135px; }
  .main-footer { font-size: 8px; gap: 10px; flex-wrap: wrap; padding-top: 7px; }
  .panel-head h2 { font-size: 18px; }
  .export-toolbar .btn { font-size: 9px; min-height: 33px; padding: 7px 9px; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tab { flex-shrink: 0; }
  .form-grid { gap: 13px; }
  .dialog-head { padding: 21px 20px 17px; }
  .dialog-head h2 { font-size: 23px; }
  .form-body { padding-left: 20px; padding-right: 20px; }
  .view-panel { padding: 17px; }
  .full-calendar .cal-day { min-height: 39px; font-size: 12px; }
  .payment-row { gap: 10px; }
  .payment-row h3 { font-size: 13px; }
  .payment-amount b { font-size: 12px; }
}
@media (max-width: 360px) {
  .main { padding-left: 13px; padding-right: 13px; }
  .diary-stat-value { font-size: 17px; }
  .diary-stat-label { font-size: 9px; }
  .diary-panel-head h2 { font-size: 13px; }
  .diary-task-row > .diary-badge { display: none; }
  .diary-collab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diary-collab-card { min-height: 107px; padding: 10px; }
  .diary-collab-card > b, .diary-collab-card > span:not(.diary-brand-avatar), .diary-collab-card > small { font-size: 9px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) and (max-height: 850px) {
  .sidebar-note { display: none; }
  .brand { padding-bottom: 13px; }
  .nav { gap: 3px; }
  .nav button { min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
  .nav-divider { margin-top: 13px; margin-bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
