:root {
  --bg: #efe6d4;
  --ink: #16351f;
  --muted: #6b665c;
  --line: rgba(32, 47, 31, 0.18);
  --panel: #fffaf0;
  --accent: #e45f13;
  --accent-2: #0f7b55;
  --accent-3: #1d6c8e;
  --shadow: 0 18px 50px rgba(35, 30, 18, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(120deg, rgba(24, 72, 40, 0.07), transparent 38%),
    #e8dcc7;
  color: #172018;
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.is-hidden {
  display: none;
}

.home-view {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.home-hero h1 {
  margin-bottom: 0;
  color: #14361d;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.primary-button {
  min-height: 46px;
  border-radius: 8px;
  background: #18371f;
  color: #fff8e6;
  padding: 0 18px;
  font-weight: 900;
}

.project-section {
  border: 1px solid rgba(40, 47, 32, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  padding: 22px;
  box-shadow: var(--shadow);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.project-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 170px;
  border: 1px solid rgba(36, 50, 32, 0.15);
  border-radius: 8px;
  background: #fffdf7;
  padding: 16px;
}

.project-card h3 {
  margin-bottom: 6px;
  color: #18371f;
  font-size: 1.05rem;
}

.project-card p {
  margin: 0;
  color: #636b5e;
  font-size: 0.86rem;
  font-weight: 750;
}

.project-card-actions {
  display: flex;
  gap: 8px;
}

.project-card-actions button {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 900;
}

.project-card-actions button:first-child {
  background: #18371f;
  color: #fff8e6;
}

.project-card-actions button:last-child {
  background: #f2e7d4;
  color: #7b2d17;
}

.empty-state {
  border: 1px dashed rgba(36, 50, 32, 0.25);
  border-radius: 8px;
  padding: 24px;
  color: #5d6658;
  font-weight: 800;
}

.control-panel {
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid rgba(40, 47, 32, 0.14);
  background: rgba(255, 250, 240, 0.94);
  padding: 24px;
}

.panel-head,
.preview-toolbar,
.section-title-row,
.toolbar-actions,
.panel-actions,
.day-card-head,
.item-row {
  display: flex;
  align-items: center;
}

.panel-head,
.preview-toolbar,
.section-title-row {
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #68705d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.panel-head h1,
.preview-toolbar h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.icon-button,
.small-button,
.toolbar-actions button {
  min-height: 38px;
  border-radius: 8px;
  background: #18371f;
  color: #fff8e6;
  font-weight: 800;
}

.icon-button {
  width: 42px;
  font-size: 1.3rem;
}

.small-button,
.toolbar-actions button {
  padding: 0 14px;
}

.toolbar-actions {
  gap: 10px;
}

.panel-actions {
  gap: 8px;
}

#printButton {
  background: #fff8ea;
  color: #18371f;
  border: 1px solid rgba(24, 55, 31, 0.22);
}

#saveProjectButton,
#exportButton {
  background: #18371f;
  color: #fff8e6;
}

.project-status {
  min-height: 20px;
  margin: 6px 0 0;
  color: #5e6658;
  font-size: 0.84rem;
  font-weight: 800;
}

.project-status.is-error {
  color: #a6321f;
}

.form-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(40, 47, 32, 0.13);
}

.form-section h2 {
  margin-bottom: 14px;
  font-size: 1rem;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #46513f;
  font-size: 0.84rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(36, 50, 32, 0.18);
  border-radius: 8px;
  background: #fffdf7;
  color: #18221a;
  padding: 11px 12px;
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #1d7a53;
  box-shadow: 0 0 0 3px rgba(29, 122, 83, 0.13);
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

input[type="file"] {
  padding: 9px;
  color: #56614e;
}

.upload-status {
  min-height: 20px;
  margin: 4px 0 0;
  color: #5e6658;
  font-size: 0.82rem;
  font-weight: 800;
}

.upload-status.is-error {
  color: #a6321f;
}

.day-editor {
  display: grid;
  gap: 14px;
}

.day-form-card {
  border: 1px solid rgba(39, 48, 31, 0.13);
  border-radius: 8px;
  background: #fffdf7;
  padding: 14px;
}

.day-form-card summary {
  cursor: pointer;
  color: #17341e;
  font-weight: 900;
}

.day-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.item-editor {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.item-inputs {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.8fr 34px;
  gap: 8px;
}

.item-inputs button {
  border-radius: 8px;
  background: #f2e7d4;
  color: #7b2d17;
  font-weight: 900;
}

.preview-area {
  height: 100vh;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 26px clamp(18px, 4vw, 48px) 48px;
}

.preview-toolbar {
  max-width: 1120px;
  margin: 0 auto 22px;
}

.poster {
  position: relative;
  --poster-padding: clamp(18px, 3vw, 34px);
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(42, 48, 28, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 250, 239, 0.9), rgba(255, 250, 239, 0.94)),
    var(--hero-image),
    #f7ecd9;
  background-size: cover;
  background-position: center top;
  box-shadow: var(--shadow);
  padding: var(--poster-padding);
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(30, 48, 26, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, transparent 76%, rgba(24, 70, 40, 0.13));
  background-size: 18px 18px, 100% 100%;
}

.poster > * {
  position: relative;
  z-index: 1;
}

.poster-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: 18px;
  align-items: center;
  margin: calc(-1 * var(--poster-padding)) calc(-1 * var(--poster-padding)) 0;
  padding: var(--poster-padding);
  min-height: 270px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 239, 0.48), rgba(255, 250, 239, 0.72) 56%, rgba(255, 250, 239, 0.88)),
    var(--top-banner-image),
    #f5ead5;
  background-size: cover;
  background-position: center;
}

.poster-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(rgba(30, 48, 26, 0.08) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(180deg, transparent 72%, rgba(255, 250, 239, 0.82));
}

.poster-hero > * {
  position: relative;
  z-index: 1;
}

.wood-sign {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.wood-sign span {
  border-radius: 6px;
  background: #9d6130;
  color: #fff3d2;
  padding: 7px 12px;
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.18);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.poster-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 5.4vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.poster-title strong {
  display: block;
  color: var(--accent);
  font-size: 1.55em;
  letter-spacing: 0;
}

.duration-badge {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 12px;
  padding: 0 22px;
  border-radius: 8px;
  background: #14361d;
  color: #fff7dc;
  font-size: clamp(1.05rem, 2.5vw, 1.65rem);
  font-weight: 950;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.route-pill {
  display: inline-flex;
  max-width: 100%;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.86);
  padding: 10px 16px;
  color: #2a2a22;
  font-weight: 800;
}

.hero-media {
  position: relative;
  min-height: 220px;
}

.polaroid {
  position: absolute;
  background: #fffdf8;
  padding: 9px 9px 28px;
  box-shadow: 0 12px 28px rgba(48, 41, 25, 0.18);
  width: 44%;
  min-width: 118px;
  transform: rotate(-2deg);
}

.polaroid:first-child {
  left: 10px;
  top: 18px;
  z-index: 1;
}

.polaroid:nth-child(2) {
  top: 0;
  right: 14px;
  z-index: 2;
  transform: rotate(5deg);
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sticker-car {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  width: 145px;
  min-height: 98px;
  border: 5px solid #fff9ed;
  border-radius: 18px;
  background: #f3bd2f;
  color: #3d2916;
  padding: 12px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(44, 35, 19, 0.19);
  font-size: 3rem;
  transform: rotate(-4deg);
}

.sticker-car img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(var(--day-columns, 4), minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.roadmap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border: 1.5px solid color-mix(in srgb, var(--card-accent), #fff 58%);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 253, 247, 0.94), rgba(255, 253, 247, 0.9)),
    radial-gradient(circle at 12% 18%, rgba(255, 235, 196, 0.38), transparent 34%);
  padding: 16px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.74),
    0 8px 18px rgba(54, 42, 24, 0.08);
}

.roadmap-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(57, 79, 48, 0.08);
  border-radius: 9px;
}

.day-label {
  position: relative;
  display: inline-flex;
  justify-content: center;
  min-width: 132px;
  margin: -4px auto 8px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 0 4%, var(--card-accent) 7% 93%, transparent 96%),
    radial-gradient(ellipse at center, color-mix(in srgb, var(--card-accent), #fff 12%), var(--card-accent));
  color: #fff7dc;
  padding: 6px 16px;
  font-size: 1.25rem;
  font-weight: 950;
  text-transform: uppercase;
  transform: rotate(-1deg);
  box-shadow: 0 5px 0 rgba(255, 255, 255, 0.74);
  isolation: isolate;
}

.day-label::before {
  content: "";
  position: absolute;
  inset: -7px -16px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  opacity: 0.95;
}

.label-brush .day-label {
  border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;
  background:
    radial-gradient(ellipse at 12% 50%, var(--card-accent) 0 42%, transparent 44%),
    radial-gradient(ellipse at 88% 50%, var(--card-accent) 0 42%, transparent 44%),
    linear-gradient(90deg, transparent 0 5%, var(--card-accent) 8% 92%, transparent 95%);
}

.label-ribbon .day-label {
  border-radius: 7px;
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-accent), #fff 12%), var(--card-accent));
}

.label-ticket .day-label {
  border: 2px dashed rgba(255, 247, 220, 0.7);
  border-radius: 12px;
  background:
    radial-gradient(circle at left center, rgba(255, 253, 247, 0.88) 0 9px, transparent 10px),
    radial-gradient(circle at right center, rgba(255, 253, 247, 0.88) 0 9px, transparent 10px),
    linear-gradient(90deg, var(--card-accent), color-mix(in srgb, var(--card-accent), #fff 8%));
}

.label-watercolor .day-label {
  border-radius: 42% 58% 62% 38% / 45% 55% 43% 57%;
  background:
    radial-gradient(circle at 30% 45%, color-mix(in srgb, var(--card-accent), #fff 18%), transparent 58%),
    radial-gradient(circle at 70% 55%, var(--card-accent), transparent 62%),
    var(--card-accent);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.62);
}

.location {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--card-accent);
  font-size: 1.08rem;
  font-weight: 950;
  text-transform: uppercase;
}

.expense-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item-row {
  min-height: 32px;
  gap: 8px;
  border-bottom: 1px solid rgba(42, 48, 28, 0.1);
  font-size: 0.86rem;
}

.item-row .icon {
  width: 24px;
  flex: 0 0 24px;
  text-align: center;
}

.item-name {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.amount {
  font-weight: 900;
  white-space: nowrap;
}

.card-total {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--card-accent);
  text-align: center;
}

.card-total span {
  color: var(--card-accent);
  font-weight: 950;
  text-transform: uppercase;
}

.card-total strong {
  font-size: 1.75rem;
  line-height: 1;
}

.card-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  margin-top: 8px;
}

.day-media-button {
  min-height: 28px;
  border-radius: 6px;
  background: transparent;
  color: var(--card-accent);
  padding: 0;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: left;
}

.day-media-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-sticker {
  flex: 0 0 auto;
  margin-top: 0;
  font-size: 2.7rem;
  filter: drop-shadow(0 4px 0 #fff8e8);
}

.media-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  border: 0;
  border-radius: 12px;
  background: #fffaf0;
  color: #172018;
  padding: 22px;
  box-shadow: 0 28px 90px rgba(25, 22, 14, 0.38);
}

.media-modal::backdrop {
  background: rgba(24, 28, 22, 0.48);
  backdrop-filter: blur(2px);
}

.media-modal-head,
.media-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.media-modal-head h2 {
  margin-bottom: 0;
}

.media-toolbar {
  margin-top: 18px;
  flex-wrap: wrap;
}

.segmented-control {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(24, 55, 31, 0.18);
  border-radius: 8px;
  background: #fffdf7;
}

.segmented-control button {
  min-height: 36px;
  background: transparent;
  color: #31402f;
  padding: 0 14px;
  font-weight: 900;
}

.segmented-control button.is-active {
  background: #18371f;
  color: #fff8e6;
}

.media-upload-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0;
  border-radius: 8px;
  background: #18371f;
  color: #fff8e6;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 950;
  cursor: pointer;
}

.media-upload-button input {
  display: none;
}

.media-preview {
  margin-top: 14px;
}

.media-empty {
  border: 1px dashed rgba(36, 50, 32, 0.25);
  border-radius: 8px;
  padding: 24px;
  color: #5d6658;
  font-weight: 800;
}

.media-view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.media-view-list {
  display: grid;
  gap: 10px;
}

.media-view-swipe {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.media-tile,
.media-swipe-card {
  overflow: hidden;
  border: 1px solid rgba(36, 50, 32, 0.14);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 10px 24px rgba(54, 42, 24, 0.09);
}

.media-view-list .media-tile {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
}

.media-swipe-card {
  flex: 0 0 min(420px, 82vw);
  scroll-snap-align: center;
}

.media-tile img,
.media-tile video,
.media-swipe-card img,
.media-swipe-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e9dfcc;
  object-fit: cover;
}

.media-swipe-card img,
.media-swipe-card video {
  aspect-ratio: 16 / 10;
}

.media-tile figcaption,
.media-swipe-card figcaption {
  margin: 0;
  padding: 10px 12px;
  color: #34402f;
  font-size: 0.86rem;
  font-weight: 800;
}

.media-editor {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.media-edit-row {
  display: grid;
  grid-template-columns: 92px 1fr 1.8fr 70px;
  gap: 8px;
}

.media-edit-row button {
  border-radius: 8px;
  background: #f2e7d4;
  color: #7b2d17;
  font-weight: 950;
}

.summary-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 0.8fr;
  gap: 18px;
  margin: 24px calc(-1 * var(--poster-padding)) calc(-1 * var(--poster-padding));
  align-items: stretch;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 229, 0.42) 0%, rgba(255, 248, 229, 0.18) 48%, rgba(29, 73, 39, 0.04) 100%),
    var(--summary-band-image),
    #ead7b0;
  background-size: cover;
  background-position: center 62%;
  padding: 18px var(--poster-padding) calc(18px + var(--poster-padding));
}

.summary-grid::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 64px;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(25, 72, 39, 0.3) 43% 54%, transparent 55%),
    linear-gradient(45deg, transparent 0 45%, rgba(57, 96, 53, 0.28) 46% 57%, transparent 58%),
    linear-gradient(180deg, transparent, rgba(25, 58, 34, 0.22));
  background-size: 220px 64px, 260px 64px, 100% 100%;
  background-position: left bottom, right bottom, center bottom;
}

.grand-total,
.highlights,
.note-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(43, 35, 19, 0.12);
}

.grand-total > *,
.highlights > *,
.note-card > * {
  position: relative;
  z-index: 2;
}

.grand-total::before,
.highlights::before,
.note-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--summary-card-image);
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.grand-total::after,
.highlights::after,
.note-card::after {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(36, 28, 18, 0.2));
}

.grand-total {
  display: grid;
  align-content: center;
  min-height: 175px;
  background:
    linear-gradient(145deg, rgba(19, 55, 30, 0.82), rgba(7, 42, 24, 0.72)),
    var(--summary-card-image);
  color: #fff4c8;
  padding: 24px;
  border: 1px solid rgba(255, 244, 200, 0.28);
}

.grand-total::before {
  opacity: 0.55;
  mix-blend-mode: screen;
}

.grand-total::after {
  content: "";
  inset: 10px;
  border: 2px dashed rgba(255, 244, 200, 0.58);
  border-radius: 7px;
}

.grand-total span {
  max-width: 86%;
  font-size: 1.28rem;
  font-weight: 950;
  text-transform: uppercase;
}

.grand-total strong {
  margin-top: 8px;
  font-size: clamp(2.7rem, 5vw, 4.3rem);
  line-height: 1;
}

.highlights {
  background:
    linear-gradient(180deg, rgba(255, 254, 248, 0.86), rgba(255, 250, 237, 0.76)),
    var(--summary-card-image);
  backdrop-filter: blur(2px);
  padding: 28px 22px 22px;
}

.highlights::before {
  opacity: 0.42;
  filter: saturate(0.8);
}

.highlights::after {
  content: "";
  top: 0;
  right: 18px;
  left: 18px;
  height: 18px;
  background:
    radial-gradient(circle, #1c2b21 0 3px, transparent 4px) 0 0 / 18px 18px repeat-x,
    linear-gradient(#d7cbbb, #d7cbbb) 0 8px / 100% 2px no-repeat;
}

.highlights h3,
.note-card h3 {
  margin-bottom: 14px;
  color: #18371f;
  text-transform: uppercase;
}

.highlights ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlights li {
  display: flex;
  gap: 10px;
  color: #2b3028;
  font-weight: 750;
}

.note-card {
  background:
    linear-gradient(145deg, rgba(255, 231, 150, 0.78), rgba(255, 217, 125, 0.62)),
    var(--summary-card-image);
  backdrop-filter: blur(1px);
  padding: 22px;
  transform: rotate(-1deg);
}

.note-card::before {
  opacity: 0.58;
}

.note-card::after {
  content: "";
  right: 14px;
  bottom: 14px;
  width: 54px;
  height: 1px;
  background: rgba(74, 51, 32, 0.35);
}

.note-card p {
  max-width: 78%;
  margin: 0;
  color: #4a3320;
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: 1.08rem;
  line-height: 1.55;
}

.theme-planner {
  --bg: #f7f8f5;
  --ink: #24312a;
  --accent: #315f72;
  --accent-2: #4b8064;
  background:
    linear-gradient(rgba(250, 252, 248, 0.94), rgba(250, 252, 248, 0.98)),
    var(--hero-image),
    #f7f8f5;
}

.theme-planner .wood-sign,
.theme-planner .sticker-car,
.theme-planner .hero-media {
  display: none;
}

.theme-planner .duration-badge,
.theme-planner .day-label {
  border-radius: 999px;
  transform: none;
}

.theme-field {
  --ink: #263421;
  --accent: #a64620;
  --accent-2: #5a7434;
  background:
    linear-gradient(rgba(249, 240, 213, 0.91), rgba(249, 240, 213, 0.95)),
    var(--hero-image),
    #efe1bc;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-panel {
    height: auto;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(40, 47, 32, 0.14);
  }

  .preview-area {
    height: auto;
    overflow: visible;
  }

  .poster-hero,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 560px;
    width: min(560px, 100%);
    min-height: 230px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .control-panel,
  .preview-area,
  .poster {
    --poster-padding: 16px;
    padding: 16px;
  }

  .preview-toolbar,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .two-cols,
  .upload-grid,
  .day-form-grid,
  .item-inputs,
  .days-grid,
  .media-view-grid,
  .media-edit-row,
  .media-view-list .media-tile {
    grid-template-columns: 1fr;
  }

  .roadmap-card {
    min-height: auto;
  }
}

@media print {
  body {
    background: #fff;
  }

  .control-panel,
  .preview-toolbar {
    display: none;
  }

  .app-shell,
  .preview-area {
    display: block;
    padding: 0;
  }

  .poster {
    width: 100%;
    border: 0;
    box-shadow: none;
  }
}
