@import url("./components/review.css?v=fe4c41a68319");
@import url("./components/design-system.css?v=fe4c41a68319");
@import url("./components/fonts.css?v=fe4c41a68319");
@import url("./components/journal-flow.css?v=fe4c41a68319");
@import url("./components/collections.css?v=fe4c41a68319");
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--canvas);
}
body {
  margin: 0;
  padding: 32px;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  transition:
    background var(--duration),
    transform var(--duration);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:hover:not(:disabled) {
  filter: brightness(0.98);
}
[hidden],
.hidden {
  display: none !important;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
h1:focus,
main:focus {
  outline: 0;
}
.icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 24px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  max-width: var(--content-width);
  min-height: calc(100dvh - 64px);
  margin: auto;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.sidebar {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  min-height: 820px;
  height: calc(100dvh - 64px);
  max-height: 1100px;
  padding: 28px 12px 18px 18px;
  border-right: 1px solid var(--border);
  border-radius: 26px 0 0 26px;
  background: var(--surface);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  font: 600 32px/1.2 var(--font-display);
  letter-spacing: -1.5px;
  color: var(--accent);
  width: fit-content;
}
.cherry-mark .icon {
  width: 28px;
  height: 32px;
  filter: invert(18%) sepia(74%) saturate(3841%) hue-rotate(335deg)
    brightness(77%) contrast(104%);
}
.sidebar .brand {
  margin: 0 0 46px;
}
.side-nav {
  display: grid;
  gap: 18px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--fresh-surface);
  color: var(--fresh-ink);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link.active {
  background: var(--accent);
  color: var(--on-accent);
}
.nav-link.active .icon {
  filter: brightness(0) invert(1);
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 8px;
  background: #ffffff24;
}
.sidebar-story {
  margin-top: auto;
  padding-top: 38px;
}
.sidebar-story p {
  font: 23px/1.35 var(--font-hand);
  transform: rotate(-7deg);
  margin: 0 10px 0 22px;
}
.sidebar-story p .icon {
  display: inline;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.sidebar-story > img {
  width: 160px;
  height: 230px;
  object-fit: contain;
  object-position: bottom;
  margin: 0 0 2px -6px;
}
.main-area {
  min-width: 0;
  padding: 24px 26px 22px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 22px;
}
.notebook-title {
  margin: 0;
  color: var(--accent);
  font: 600 clamp(24px, 2.9vw, 40px)/1.25 var(--font-display);
  letter-spacing: -1px;
}
.top-brand {
  display: none;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.add-button,
.top-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
}
.add-button .icon,
.top-add .icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
.add-button:hover,
.top-add:hover {
  background: var(--accent-hover);
}
.local-profile {
  display: block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 3px solid #e7d9c8;
  border-radius: 50%;
  background: var(--creative-surface);
}
.local-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transform: scale(2.2);
  transform-origin: 50% 20%;
}
.mobile-nav {
  display: none;
}
.page-view {
  min-width: 0;
}
.notebook-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.diary-page {
  position: relative;
  padding: 18px 18px 18px 26px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 3px 12px #b77b3c20;
  min-width: 0;
}
.diary-page::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: -3px;
  top: 12px;
  bottom: 10px;
  width: 24px;
  background: url("./assets/notebook/notebook-edge.webp?v=fe4c41a68319") center/100% 100%
    no-repeat;
}
.diary-date {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 180px;
  padding: 15px 18px;
  background: var(--surface);
  box-shadow: 0 4px 10px #9b5b2412;
  transform: rotate(-3deg);
  border-radius: 3px;
  color: var(--accent);
}
.diary-date strong,
.diary-date span {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}
.diary-date .icon {
  width: 30px;
  height: 30px;
  filter: invert(18%) sepia(74%) saturate(3841%) hue-rotate(335deg)
    brightness(77%) contrast(104%);
}
.diary-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 1.02;
  overflow: visible;
  border-radius: 9px;
  background: var(--warm-surface);
}
.diary-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 9px;
}
.diary-photo-note {
  position: absolute;
  right: -4px;
  bottom: 8px;
  max-width: 67%;
  padding: 12px 16px;
  background: var(--surface);
  box-shadow: 0 3px 9px #713b3112;
  transform: rotate(-6deg);
  border-radius: 3px;
  font: 19px/1.25 var(--font-hand);
  overflow-wrap: anywhere;
}
.diary-photo-note .icon {
  display: inline;
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
.diary-footnote {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 72px;
  padding: 12px 0 0;
  position: relative;
}
.outfit-palette {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.outfit-palette > span {
  display: block;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #743b3612;
}
.diary-footnote p {
  margin: 0;
  padding-right: 16px;
  font: 15px/1.35 var(--font-hand);
  max-width: 230px;
}
.diary-edit {
  position: absolute;
  right: -6px;
  bottom: 0;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  opacity: 0.65;
}
.diary-edit .icon {
  width: 17px;
  height: 17px;
}
.outfit-foldout {
  min-width: 0;
  padding: 18px 14px 14px;
  border-radius: 25px 38px 23px 23px;
  background: var(--creative-surface);
  position: relative;
}
.foldout-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.foldout-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--creative-ink);
  line-height: 1.25;
}
.foldout-heading h2 .icon {
  width: 23px;
  height: 23px;
}
.foldout-heading button {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--creative-ink);
  font-size: 11px;
}
.foldout-heading button .icon {
  width: 14px;
  height: 14px;
}
.outfit-pieces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(130px, 1fr) minmax(130px, 1fr) minmax(75px, 0.62fr);
  gap: 8px;
  height: calc(100% - 46px);
}
.outfit-piece {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #fff9f3;
  border-radius: 13px;
  background: var(--warm-surface);
  min-width: 0;
}
.piece-art {
  position: relative;
  min-height: 0;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 8px 12px 2px;
}
.piece-art > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
  padding: 10px 12px 0;
}
.piece-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  font-size: 10px;
  line-height: 1.2;
}
.piece-caption i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #743b3612;
}
.piece-1 {
  background: var(--surface-soft);
}
.piece-2 {
  grid-row: 2/4;
  background: var(--fresh-surface);
}
.piece-3 {
  background: var(--celebrate-surface);
}
.piece-4 {
  background: #f3ebef;
}
.piece-caption span {
  overflow-wrap: anywhere;
}
.manual-piece {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  padding: 24px 8px;
  font-size: 10px;
}
.manual-piece .icon {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}
.many-pieces {
  height: auto;
  grid-template-rows: none;
  grid-auto-rows: 180px;
}
.many-pieces .piece-2 {
  grid-row: auto;
}
.no-pieces {
  grid-column: 1/-1;
  font-size: 13px;
  padding: 30px;
}
.mobile-journal-cta {
  display: none;
}
.weekly-memories {
  margin-top: 22px;
  padding: 15px 18px 16px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 3px 12px #b77b3c12;
}
.memories-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.memories-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
}
.memories-heading h2 .icon {
  width: 21px;
  height: 21px;
  filter: invert(18%) sepia(74%) saturate(3841%) hue-rotate(335deg)
    brightness(77%) contrast(104%);
}
.memories-heading button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  min-height: 30px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.memories-heading button .icon {
  width: 16px;
  height: 16px;
}
.memory-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
}
.memory-day {
  position: relative;
  min-width: 0;
  height: 142px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--surface-soft);
  overflow: hidden;
  text-align: left;
}
.memory-day.selected {
  border-color: var(--accent);
}
.memory-day > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.memory-date {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 5px 7px;
  background: var(--surface);
  border-radius: 0 0 8px 0;
  font-size: 10px;
  line-height: 1.2;
}
.memory-date strong,
.memory-date span {
  display: block;
  font-weight: 500;
}
.memory-add {
  display: grid;
  place-items: center;
  height: 100%;
  opacity: 0.4;
}
/* Other pages inherit the same stationery system. */
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 28px;
}
.page-heading h1 {
  margin: 8px 0;
  font: 500 34px/1.2 var(--font-display);
  color: var(--accent);
  letter-spacing: -1px;
}
.page-heading h1 em {
  font-style: normal;
  color: var(--creative-ink);
}
.heading-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.eyebrow-line {
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.mini-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.text-link {
  width: 100%;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}
.empty-state {
  grid-column: 1/-1;
  padding: 50px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  text-align: center;
}
.empty-state strong {
  display: block;
  margin: 12px 0;
  font: 500 24px var(--font-display);
  color: var(--accent);
}
.empty-state p {
  color: var(--muted);
  font-size: 13px;
}
.empty-mark {
  font-size: 24px;
}
.calendar-empty-mark {
  font-size: 20px;
}
.look-card-info h3,
.library-group-heading h2,
.calendar-toolbar h2,
.calendar-day-heading h2,
.calendar-look-copy h3,
.summary-panel h2 {
  font-family: var(--font-body);
  font-weight: 800;
}
.library-group-heading h2 {
  font-size: 23px;
}
.look-card-info h3 {
  font-size: 20px;
}
.summary-panel h2 {
  font-size: 26px;
}
.summary-stat strong {
  font-family: var(--font-display);
}
.calendar-look-copy h3 {
  font-size: 20px;
}
.calendar-toolbar h2 {
  font-size: 24px;
}
.calendar-day-heading h2 {
  font-size: 22px;
}
.search-box .icon {
  width: 18px;
  height: 18px;
}
/* The photo workflow keeps the same functional controls. */
.modal-card {
  width: min(100%, 900px);
  max-height: 90dvh;
}
.modal-head {
  padding: 22px 26px;
}
.modal-head h2 {
  font: 500 28px/1.3 var(--font-display);
  color: var(--accent);
}
.modal-body {
  padding: 22px 26px 26px;
}
.close-modal {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.step-indicator {
  padding-inline: 26px;
}
.step-dot {
  font-size: 11px;
}
.field-label {
  font-size: 12px;
  font-weight: 800;
}
.field-label input,
.field-label select,
.field-label textarea {
  min-height: 44px;
  font-size: 14px;
}
.field-label textarea {
  min-height: 84px;
}
.upload-zone {
  min-height: 350px;
}
.upload-change {
  min-height: 44px;
  padding-inline: 16px;
}
.hint-line {
  font-size: 11px;
  line-height: 1.7;
  padding: 12px;
}
.ai-consent strong {
  font-size: 12px;
}
.ai-consent small {
  font-size: 11px;
}
.secondary-button,
.modal-primary {
  min-height: 44px;
  font-size: 12px;
  padding-inline: 18px;
  border-radius: var(--radius-pill);
}
.modal-primary {
  color: var(--on-accent);
}
.modal-primary:disabled {
  background: var(--surface-soft);
}
.modal-actions {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.detected-heading strong {
  font: 800 20px var(--font-body);
}
.edit-item-fields {
  grid-template-columns: minmax(0, 1fr);
}
.edit-item-fields input,
.edit-item-fields select {
  height: 40px;
  font-size: 12px;
}
.remove-item {
  width: 40px;
  height: 44px;
}
.existing-item-select {
  min-height: 40px;
  font-size: 12px;
}
.existing-item-field {
  font-size: 11px;
}
.add-item-inline {
  min-height: 44px;
  font-size: 12px;
  text-align: left;
}
.similarity-toolbar:not([open]) > :not(summary) {
  display: none;
}
.similarity-toolbar summary {
  min-height: 32px;
  padding-block: 6px;
}
.similarity-trigger,
.similarity-use {
  min-height: 40px;
  font-size: 11px;
}
.similarity-candidate small {
  font-size: 10px;
}
.toast {
  max-width: min(440px, calc(100vw - 32px));
  font-size: 12px;
}
.edit-item-thumb .icon {
  width: 25px;
  height: 25px;
}
.wardrobe-art > .icon {
  width: 50%;
  height: 50%;
  opacity: 0.4;
}
.wardrobe-art > .wardrobe-cutout {
  width: 86%;
  height: 90%;
  object-fit: contain;
}
@media (min-width: 1500px) {
  .main-area {
    padding: 26px 30px;
  }
  .notebook-title {
    font-size: 40px;
  }
  .memory-day {
    height: 170px;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  body {
    padding: 20px;
  }
  .app-shell {
    grid-template-columns: 158px minmax(0, 1fr);
    min-height: calc(100dvh - 40px);
  }
  .sidebar {
    top: 20px;
    padding-left: 14px;
    min-height: 770px;
    height: calc(100dvh - 40px);
  }
  .brand {
    font-size: 28px;
  }
  .nav-link {
    padding-inline: 12px;
    font-size: 14px;
    gap: 8px;
  }
  .sidebar-story > img {
    width: 142px;
    height: 205px;
  }
  .sidebar-story p {
    font-size: 21px;
    margin-left: 16px;
  }
  .main-area {
    padding: 20px;
  }
  .notebook-title {
    font-size: clamp(22px, 2.7vw, 32px);
  }
  .topbar-actions {
    gap: 10px;
  }
  .top-add {
    padding: 10px 15px;
    font-size: 12px;
  }
  .local-profile {
    display: none;
  }
  .notebook-spread {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 14px;
  }
  .diary-footnote {
    flex-wrap: wrap;
    gap: 8px;
  }
  .diary-footnote p {
    max-width: 100%;
    font-size: 14px;
  }
  .outfit-palette > span {
    width: 24px;
    height: 24px;
  }
  .outfit-foldout {
    padding: 15px 10px 10px;
  }
  .foldout-heading h2 {
    font-size: 13px;
    gap: 5px;
  }
  .foldout-heading h2 .icon {
    width: 20px;
    height: 20px;
  }
  .foldout-heading button {
    font-size: 10px;
  }
  .outfit-pieces {
    grid-template-rows: minmax(110px, 1fr) minmax(110px, 1fr) minmax(
        65px,
        0.5fr
      );
    gap: 6px;
  }
  .piece-caption {
    font-size: 9px;
    padding: 6px;
  }
  .piece-art > img {
    padding: 6px;
  }
  .memory-day {
    height: 125px;
  }
  .memory-week {
    gap: 7px;
  }
  .diary-photo-note {
    font-size: 17px;
  }
  .diary-date {
    min-width: 155px;
    padding: 12px 14px;
  }
  .diary-date strong,
  .diary-date span {
    font-size: 14px;
  }
  .diary-date .icon {
    width: 25px;
    height: 25px;
  }
  .summary-content {
    grid-template-columns: 1fr;
  }
  .look-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-group-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 950px) and (min-width: 761px) {
  .notebook-title {
    font-size: 23px;
    max-width: 300px;
  }
  .outfit-palette {
    gap: 7px;
  }
  .outfit-palette > span {
    width: 21px;
    height: 21px;
  }
  .foldout-heading h2 {
    font-size: 12px;
  }
  .foldout-heading button {
    font-size: 0;
  }
  .foldout-heading button .icon {
    width: 18px;
    height: 18px;
  }
  .memory-day {
    height: 105px;
  }
  .memory-date {
    font-size: 9px;
  }
  .diary-photo {
    aspect-ratio: 0.88;
  }
  .outfit-pieces {
    grid-template-rows: minmax(100px, 1fr) minmax(100px, 1fr) minmax(
        60px,
        0.5fr
      );
  }
  .piece-caption {
    font-size: 8px;
  }
  .piece-caption i {
    width: 9px;
    height: 9px;
  }
  .library-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  body {
    padding: 22px 20px 98px;
    background: var(--surface);
  }
  .app-shell {
    display: block;
    min-height: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
  }
  .sidebar {
    display: none;
  }
  .main-area {
    padding: 0;
  }
  .topbar {
    min-height: 42px;
    margin-bottom: 18px;
  }
  .top-brand {
    display: inline-flex;
    font-size: 29px;
  }
  .notebook-title {
    display: none;
  }
  .topbar-actions .top-add {
    display: none;
  }
  .local-profile {
    display: block;
    width: 34px;
    height: 34px;
  }
  .notebook-spread {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .diary-page {
    padding: 12px 13px 15px;
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 3px 18px #b77b3c15;
    border: 1px solid #f2e5d4;
  }
  .diary-page::before {
    display: none;
  }
  .diary-date {
    position: static;
    min-width: 0;
    min-height: 24px;
    margin: 0 0 10px;
    padding: 0 1px;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    justify-content: space-between;
  }
  .diary-date > div {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .diary-date strong,
  .diary-date span {
    font-size: 13px;
    line-height: 1.5;
  }
  .diary-date .icon {
    width: 24px;
    height: 24px;
  }
  .diary-photo {
    aspect-ratio: 1.19;
    border-radius: 6px;
  }
  .diary-photo > img {
    border-radius: 6px;
    object-position: center top;
  }
  .diary-photo-note {
    right: auto;
    left: 6px;
    bottom: 5px;
    max-width: 85%;
    padding: 8px 12px;
    font-size: 16px;
    transform: rotate(-3deg);
  }
  .diary-photo-note .icon {
    width: 14px;
    height: 14px;
  }
  .diary-footnote {
    display: block;
    min-height: 0;
    padding-top: 12px;
  }
  .outfit-palette {
    gap: 9px;
    margin-bottom: 8px;
  }
  .outfit-palette > span {
    width: 23px;
    height: 23px;
  }
  .diary-footnote p {
    max-width: none;
    padding-right: 18px;
    font: 14px/1.4 var(--font-hand);
  }
  .diary-edit {
    right: -5px;
    bottom: -2px;
  }
  .diary-edit .icon {
    width: 15px;
    height: 15px;
  }
  .outfit-foldout {
    padding: 12px 11px;
    background: var(--surface);
    border: 1px solid #f2e5d4;
    border-radius: 15px;
    box-shadow: 0 3px 12px #b77b3c10;
  }
  .foldout-heading {
    margin-bottom: 9px;
  }
  .foldout-heading h2 {
    font-size: 12px;
    color: var(--ink);
    gap: 5px;
  }
  .foldout-heading h2 .icon {
    width: 17px;
    height: 17px;
  }
  .foldout-heading button {
    font-size: 10px;
    min-height: 24px;
  }
  .outfit-pieces {
    display: flex;
    align-items: stretch;
    gap: 5px;
    height: 72px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .outfit-piece {
    flex: 1 0 17%;
    min-width: 50px;
    border: 0;
    border-radius: 8px;
  }
  .piece-art {
    padding: 0;
  }
  .piece-art > img {
    padding: 4px;
    height: 100%;
    width: 100%;
  }
  .piece-caption {
    display: none;
  }
  .manual-piece {
    padding: 10px 2px;
    gap: 2px;
  }
  .manual-piece .icon {
    width: 22px;
    height: 22px;
  }
  .manual-piece > span {
    font-size: 7px;
  }
  .many-pieces {
    height: 72px;
  }
  .mobile-journal-cta {
    display: flex;
    width: 100%;
    margin-top: 17px;
    min-height: 44px;
    font-size: 14px;
  }
  .weekly-memories {
    display: none;
  }
  .mobile-nav {
    display: grid;
    position: fixed;
    z-index: 8;
    bottom: 0;
    left: 0;
    right: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 4px max(14px, env(safe-area-inset-left))
      max(5px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    border-radius: 21px 21px 0 0;
    background: var(--surface);
    box-shadow: 0 -2px 14px #9b5b240a;
  }
  .mobile-nav .mobile-link {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 8px;
    min-height: 44px;
    text-decoration: none;
  }
  .mobile-nav .mobile-link .icon {
    width: 24px;
    height: 24px;
  }
  .mobile-nav .mobile-link.active {
    color: var(--accent);
  }
  .mobile-nav .mobile-link.active .icon {
    filter: invert(18%) sepia(74%) saturate(3841%) hue-rotate(335deg)
      brightness(77%) contrast(104%);
  }
  .mobile-add {
    display: grid;
    place-items: center;
    justify-self: center;
    align-self: center;
    width: 53px;
    height: 53px;
    border: 4px solid var(--surface);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 8px #c6123a22;
    margin-top: -15px;
  }
  .mobile-add .icon {
    width: 27px;
    height: 27px;
    filter: brightness(0) invert(1);
  }
  .page-heading {
    margin-top: 24px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .heading-add {
    display: none;
  }
  .heading-copy {
    font-size: 12px;
  }
  .look-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .look-card-info {
    padding: 13px;
  }
  .look-card-info h3 {
    font-size: 17px;
  }
  .look-card-info p {
    font-size: 11px;
  }
  .look-card-date,
  .look-card-sticker {
    font-size: 8px;
    padding: 4px 6px;
  }
  .archive-toolbar {
    gap: 10px;
  }
  .search-box {
    padding-inline: 10px;
    gap: 6px;
  }
  .search-box input {
    font-size: 12px;
  }
  .archive-toolbar select {
    max-width: 118px;
    font-size: 11px;
  }
  .category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-block: 5px 10px;
  }
  .category-pill {
    flex-shrink: 0;
    min-height: 40px;
  }
  .closet-toolbar {
    gap: 12px;
  }
  .library-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .wardrobe-info {
    padding: 12px;
  }
  .wardrobe-info p {
    font-size: 8px;
  }
  .wardrobe-count {
    margin-left: 0;
  }
  .calendar-card {
    padding: 16px 10px;
  }
  .calendar-toolbar {
    margin-bottom: 15px;
  }
  .calendar-toolbar h2 {
    font-size: 22px;
  }
  .calendar-weekdays,
  .calendar-days {
    gap: 3px;
  }
  .calendar-weekdays span {
    font-size: 10px;
    padding-inline: 0;
  }
  .calendar-day,
  .calendar-blank {
    min-height: 42px;
    font-size: 12px;
  }
  .calendar-day-heading h2 {
    font-size: 19px;
  }
  .calendar-count {
    font-size: 10px;
    flex-shrink: 0;
  }
  .calendar-look-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }
  .calendar-look-card > img {
    width: 64px;
    height: 88px;
  }
  .calendar-look-copy h3 {
    font-size: 18px;
  }
  .calendar-look-copy p {
    font-size: 11px;
  }
  .calendar-look-mark {
    display: none;
  }
  .calendar-empty {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 18px;
  }
  .calendar-add-link {
    grid-column: 2;
    justify-self: start;
  }
  .summary-content {
    grid-template-columns: 1fr;
  }
  .summary-panel {
    padding: 22px;
  }
  .summary-panel h2 {
    font-size: 23px;
  }
  .summary-stat-grid {
    gap: 8px;
  }
  .summary-stat {
    padding: 12px 8px;
  }
  .summary-stat strong {
    font-size: 30px;
  }
  .summary-stat span {
    font-size: 9px;
  }
  .toast {
    right: 16px;
    bottom: 85px;
  }
  .modal-backdrop {
    padding: 0;
    align-items: end;
  }
  .modal-card {
    max-height: 94dvh;
    border-radius: 24px 24px 0 0;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-head h2 {
    font-size: 25px;
  }
  .modal-body {
    padding: 18px 20px max(24px, env(safe-area-inset-bottom));
  }
  .step-indicator {
    padding-inline: 20px;
  }
  .step-dot {
    font-size: 10px;
  }
  .step-rule {
    width: 24px;
  }
  .upload-grid,
  .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .upload-zone {
    min-height: 220px;
  }
  .upload-zone.has-image {
    min-height: 270px;
  }
  .split-preview {
    min-height: 220px;
    max-height: 270px;
  }
  .field-label input,
  .field-label select,
  .field-label textarea,
  .edit-item-fields input,
  .edit-item-fields select,
  .existing-item-select {
    font-size: 16px;
  }
  .edit-item {
    grid-template-columns: 28px 20px minmax(0, 1fr) 34px;
    gap: 6px;
  }
  .edit-item-thumb {
    width: 28px;
  }
  .existing-item-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .modal-actions {
    position: sticky;
    bottom: -21px;
    padding: 16px 0;
    background: var(--surface);
    gap: 10px;
  }
  .modal-primary {
    flex: 1;
    font-size: 11px;
  }
  .secondary-button {
    padding-inline: 12px;
  }
}
@media (max-width: 370px) {
  body {
    padding: 18px 14px 90px;
  }
  .top-brand {
    font-size: 26px;
  }
  .diary-date strong,
  .diary-date span {
    font-size: 12px;
  }
  .diary-photo-note {
    font-size: 14px;
  }
  .outfit-palette > span {
    width: 21px;
    height: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-count {
  display: none;
}
@media (min-width: 761px) {
  .outfit-pieces.item-count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 1fr);
  }
  .outfit-pieces.item-count-2 {
    grid-template-rows: minmax(220px, 1fr);
  }
  .outfit-pieces.item-count-3,
  .outfit-pieces.item-count-4 {
    grid-template-rows: repeat(2, minmax(160px, 1fr));
  }
  .outfit-pieces.item-count-3 .piece-2,
  .outfit-pieces.item-count-4 .piece-2 {
    grid-row: auto;
  }
  .outfit-pieces.item-count-3 .piece-2 {
    grid-column: 1/-1;
  }
}

@media (min-width: 1101px) {
  .notebook-title {
    font-size: 40px;
  }
  .main-area {
    padding-bottom: 14px;
  }
}
.brand-cherries {
  width: 25px;
  height: 32px;
  object-fit: contain;
  margin-left: 1px;
}

.account-panel .cloud-panel {
  width: min(100%, 760px);
  margin: 0 auto;
  border: 1px solid #b8a48d;
  border-radius: 24px;
  background: #fffaf0;
  box-shadow: 6px 8px 0 #8e79654d;
}
.account-panel .cloud-panel .cloud-close {
  position: static;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 13px var(--font-body);
  cursor: pointer;
}
.account-paywall-notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--creative-surface);
}
.route-not-found-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.route-not-found-card {
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.route-not-found-card h1 {
  margin: 0 0 12px;
  color: var(--accent);
  font: 600 clamp(30px, 6vw, 44px)/1.15 var(--font-display);
}
.route-not-found-card p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--muted);
}
body.route-not-found .app-shell,
body.route-not-found .mobile-nav,
body.route-not-found .auth-gate {
  display: none !important;
}
/* Compact notebook rhythm follows the selected mobile composition. */
@media (max-width: 760px) {
  .topbar {
    min-height: 34px;
    margin-bottom: 12px;
  }
  .diary-photo {
    aspect-ratio: 1.22;
  }
  .diary-footnote {
    padding-top: 10px;
  }
  .outfit-palette {
    margin-bottom: 6px;
  }
  .outfit-palette > span {
    width: 21px;
    height: 21px;
  }
  .diary-footnote p {
    font-size: 13px;
    line-height: 1.35;
  }
  .notebook-spread {
    gap: 8px;
  }
  .outfit-foldout {
    padding: 8px 10px;
  }
  .outfit-pieces,
  .many-pieces {
    height: 60px;
  }
  .mobile-journal-cta {
    margin-top: 9px;
  }
}
@media (max-width: 760px) {
  html {
    scrollbar-width: none;
  }
}
/* Empty journals retain the locked notebook composition without invented entries. */
.diary-empty {
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  min-height: 320px;
}
.empty-journal-art {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 42px 24px 28px;
}
.empty-journal-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 2px;
}
.empty-journal-scene > img {
  flex: 0 1 62%;
  width: 62%;
  max-width: 280px;
  height: 125px;
  object-fit: contain;
}
.empty-journal-quote {
  flex: 0 1 32%;
  min-width: 70px;
  max-width: 130px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 45% 48% 43% 42%;
  background: var(--creative-surface);
  color: var(--creative-ink);
  font: 16px/1.3 var(--font-hand);
  text-align: center;
  transform: rotate(-6deg);
}
.empty-journal-quote .icon {
  display: inline;
  width: 13px;
  height: 13px;
  vertical-align: middle;
}
.empty-journal-art h2 {
  font: 500 23px/1.3 var(--font-display);
  color: var(--accent);
  margin: 4px 0 0;
}
.empty-journal-art p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}
.is-empty .outfit-palette {
  display: none;
}
.is-empty .diary-footnote p {
  max-width: none;
  padding-right: 30px;
  font-size: 17px;
}
.empty-wardrobe {
  grid-column: 1/-1;
  grid-row: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 32px 20px;
  color: var(--creative-ink);
}
.empty-wardrobe > .icon {
  width: 54px;
  height: 54px;
  opacity: 0.65;
}
.empty-wardrobe h3 {
  font: 800 21px/1.4 var(--font-body);
  margin: 0;
  max-width: 230px;
}
.empty-wardrobe p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  max-width: 240px;
}
.empty-wardrobe button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  background: var(--surface);
  color: var(--creative-ink);
  font-size: 12px;
  font-weight: 800;
}
.empty-wardrobe button .icon {
  width: 17px;
  height: 17px;
}
@media (max-width: 760px) {
  .diary-empty {
    min-height: 265px;
    aspect-ratio: auto;
  }
  .empty-journal-art {
    padding: 25px 16px 18px;
    gap: 10px;
  }
  .empty-journal-scene {
    gap: 7px;
  }
  .empty-journal-scene > img {
    flex-basis: 62%;
    width: 62%;
    height: 95px;
  }
  .empty-journal-quote {
    flex-basis: 32%;
    min-width: 68px;
    padding: 9px 10px;
    font-size: 14px;
  }
  .empty-journal-art h2 {
    font-size: 20px;
  }
  .empty-journal-art p {
    font-size: 12px;
  }
  .empty-journal-art .add-button {
    display: none;
  }
  .is-empty .diary-footnote p {
    font-size: 15px;
  }
  .is-empty .outfit-pieces {
    height: auto;
    overflow: visible;
  }
  .empty-wardrobe {
    padding: 12px 10px;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
  }
  .empty-wardrobe > .icon {
    display: none;
  }
  .empty-wardrobe h3 {
    font-size: 15px;
    max-width: none;
  }
  .empty-wardrobe p {
    font-size: 12px;
    max-width: none;
  }
  .empty-wardrobe button {
    display: none;
  }
}

/* Calendar belongs to the journal; mobile navigation lives in the bottom bar. */
.journal-tools {
  display: none;
}
.journal-calendar,
.calendar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.journal-calendar .icon,
.calendar-back .icon {
  width: 19px;
  height: 19px;
}
.calendar-back {
  margin: 0 0 14px;
  background: transparent;
  border-color: transparent;
  padding-inline: 0;
}
@media (max-width: 760px) {
  .journal-tools {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
  }
  .journal-calendar {
    background: var(--accent-soft);
    border-color: transparent;
  }
  .calendar-back {
    margin-bottom: 0;
  }
}
/* Inline weekly calendar: selecting a date updates the notebook below. */
.inline-outfit-calendar {
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow-color);
}
.inline-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.inline-calendar-header h2 {
  margin: 0;
  color: var(--accent);
  font: 800 18px/1.3 var(--font-body);
}
.inline-calendar-header > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  opacity: 1;
}
.inline-calendar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.inline-calendar-actions button,
.journal-date-picker {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
}
.inline-calendar-actions .icon {
  width: 18px;
  height: 18px;
}
.journal-date-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  border: 0;
}
.journal-date-picker:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.inline-outfit-calendar .memory-week {
  gap: 8px;
}
.inline-outfit-calendar .memory-day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 72px;
  border: 2px solid var(--surface);
  border-radius: 11px;
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}
.inline-outfit-calendar .has-outfits .memory-day {
  height: 150px;
}
.inline-outfit-calendar .memory-date {
  position: static;
  flex-shrink: 0;
  display: block;
  width: 100%;
  padding: 6px 2px 5px;
  text-align: center;
  background: transparent;
  border-radius: 0;
  font-size: 10px;
  line-height: 1.3;
}
.inline-outfit-calendar .memory-date > span {
  font-size: 16px;
  font-weight: 800;
}
.inline-outfit-calendar .memory-day > img {
  height: calc(100% - 45px);
  min-height: 0;
  flex: 1;
  object-fit: cover;
  border-radius: 7px;
}
.inline-outfit-calendar .memory-day.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.inline-outfit-calendar .memory-add {
  flex: 1;
  height: auto;
  min-height: 16px;
  opacity: 0.25;
}
.inline-outfit-calendar .memory-add .icon {
  width: 14px;
  height: 14px;
}
.inline-outfit-calendar .memory-day.selected .memory-add .icon {
  filter: brightness(0) invert(1);
  opacity: 1;
}
.day-entry-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 15px;
}
.day-entry-choices button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 12px;
}
.day-entry-choices button[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 760px) {
  .inline-outfit-calendar {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 18px;
  }
  .inline-calendar-header {
    margin-bottom: 9px;
    gap: 8px;
  }
  .inline-calendar-header h2 {
    font-size: 16px;
  }
  .inline-calendar-header > div > span {
    font-size: 10px;
  }
  .inline-calendar-actions {
    gap: 4px;
  }
  .inline-calendar-actions button,
  .journal-date-picker {
    width: 32px;
    height: 34px;
    min-height: 34px;
  }
  .inline-calendar-actions .icon {
    width: 17px;
    height: 17px;
  }
  .inline-outfit-calendar .memory-week {
    gap: 4px;
  }
  .inline-outfit-calendar .memory-day {
    height: 62px;
    border-radius: 8px;
  }
  .inline-outfit-calendar .has-outfits .memory-day {
    height: 100px;
  }
  .inline-outfit-calendar .memory-date {
    font-size: 9px;
    padding: 4px 0;
  }
  .inline-outfit-calendar .memory-date > span {
    font-size: 14px;
  }
  .inline-outfit-calendar .memory-day > img {
    border-radius: 5px;
    height: calc(100% - 37px);
  }
}

.inline-outfit-calendar .memory-day:not(.selected) {
  color: var(--ink);
}
.inline-outfit-calendar .memory-day:not(.selected):hover {
  background: var(--accent-soft);
}
.inline-outfit-calendar .memory-day:not(.selected) .memory-date strong {
  color: var(--muted);
}
