:root {
  color-scheme: light;
  --ink: #292a27;
  --muted: #85847f;
  --line: #e9e8e3;
  --paper: #fff;
  --canvas: #f8f8f5;
  --accent: #9a713c;
  --accent-soft: #f4efe7;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, textarea { font: inherit; }
button { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); padding: 26px 17px 16px; display: flex; flex-direction: column; z-index: 3; }
.brand { height: 34px; display: flex; align-items: center; gap: 10px; color: #33332f; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.9px; padding-left: 9px; }
.brand-studio { color: #aaa9a1; font-weight: 500; margin-left: 3px; }
.brand-mark { height: 25px; width: 25px; background: #9c774c; border-radius: 8px; display: inline-flex; align-items: end; justify-content: center; gap: 2px; padding: 6px 5px; transform: rotate(-4deg); }
.brand-mark span { width: 3px; background: #fff9ee; border-radius: 3px 3px 1px 1px; }
.brand-mark span:first-child { height: 7px; }.brand-mark span:nth-child(2) { height: 12px; }.brand-mark span:last-child { height: 9px; }
.sidebar-label { margin: 43px 0 10px 10px; color: #a3a29b; font-size: 9px; line-height: 1; font-weight: 700; letter-spacing: 1.05px; }
.workspace-switch { width: 100%; border: 1px solid #ecebe6; padding: 10px; display: flex; align-items: center; gap: 10px; border-radius: 10px; text-align: left; background: #fff; cursor: pointer; }
.workspace-avatar, .profile-avatar { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 9px; background: #eee8dc; color: #86663f; font-family: "Playfair Display", serif; font-size: 18px; }
.workspace-name, .profile>span:nth-child(2) { font-size: 11px; font-weight: 600; line-height: 1.4; }
.workspace-name small, .profile small { display: block; color: #9c9b94; font-weight: 400; font-size: 10px; }
.workspace-switch>svg { width: 14px; height: 14px; margin-left: auto; color: #96958f; }
.nav-label { margin-top: 35px; }
.side-nav { display: grid; gap: 4px; }
.nav-item { height: 39px; border-radius: 8px; padding: 0 10px; display: flex; align-items: center; gap: 11px; text-decoration: none; color: #777770; font-size: 11.5px; font-weight: 500; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item.active { background: #f5f1e9; color: #785a36; font-weight: 600; }
.sidebar-bottom { margin-top: auto; }
.help-card { border: 1px solid #eeece5; background: #faf9f5; border-radius: 11px; padding: 14px 12px 13px; display: flex; flex-direction: column; align-items: flex-start; }
.help-icon { height: 25px; width: 25px; color: #9a713c; display: grid; place-items: center; border-radius: 8px; background: #f2ebdf; font-size: 16px; margin-bottom: 10px; }
.help-card strong { font-size: 10.5px; font-weight: 600; margin-bottom: 4px; }
.help-card>span { font-size: 10px; color: #8f8d86; line-height: 1.55; }
.profile { margin-top: 16px; border: 0; background: transparent; border-top: 1px solid var(--line); padding: 15px 3px 0; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; }
.profile-avatar { border-radius: 50%; background: #eee9e2; color: #5c5247; font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 600; }
.profile>svg { width: 16px; height: 16px; margin-left: auto; color: #898881; stroke: none; fill: currentColor; }

.main-area { min-width: 0; }
.topbar { height: 67px; padding: 0 39px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.83); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.breadcrumbs { display: flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 11px; color: #95948e; }
.breadcrumbs strong { color: #44443e; font-size: 11px; font-weight: 600; }
.crumb-divider { color: #c4c2ba; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.saved-state { display: flex; gap: 6px; align-items: center; color: #84837d; font-size: 10px; margin-right: 6px; white-space: nowrap; }
.saved-dot { width: 6px; height: 6px; border-radius: 50%; background: #76a07b; }
.button { height: 35px; border-radius: 7px; padding: 0 13px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; cursor: pointer; font-size: 10.5px; font-weight: 600; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { height: 15px; width: 15px; }
.button-quiet { background: #fff; border: 1px solid #e8e7e1; color: #55554f; }
.button-primary { background: #373b34; border: 1px solid #373b34; color: #fff; }
.button-primary:hover { background: #252a25; }
.content-wrap { min-height: calc(100vh - 67px); padding: 42px 45px 45px 54px; display: grid; grid-template-columns: minmax(330px, 414px) minmax(370px, 1fr); gap: clamp(38px, 5vw, 76px); max-width: 1450px; margin: 0 auto; }
.editor-column { padding-bottom: 22px; }
.page-heading { margin: 0 0 27px; }
.eyebrow { color: #9d805a; font-size: 9px; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; gap: 7px; }
.heading-star { font-size: 12px; }
h1 { margin: 9px 0 6px; font-family: "Playfair Display", serif; font-weight: 500; letter-spacing: -.55px; font-size: 29px; line-height: 1.2; }
.page-heading p { color: #898881; font-size: 11.5px; margin: 0; }
.section-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 25px; height: 39px; margin-bottom: 20px; }
.section-tab { position: relative; padding: 0 1px 12px; border: 0; color: #97968f; background: transparent; font-size: 11px; font-weight: 500; cursor: pointer; }
.section-tab.selected { color: #373833; font-weight: 600; }
.section-tab.selected::after { content: ""; position: absolute; bottom: -1px; height: 2px; left: 0; right: 0; background: #9a713c; border-radius: 3px; }
.form-panel { border: 1px solid #eae9e4; border-radius: 12px; background: white; padding: 19px 20px 16px; box-shadow: 0 3px 12px rgba(52, 49, 37, .018); }
.panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.step-number { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; background: #f4f0e9; color: #9a713c; font-size: 9px; font-weight: 700; }
.panel-heading h2 { margin: 0 0 3px; font-size: 12px; font-weight: 600; }
.panel-heading p { margin: 0; color: #9a9992; font-size: 10px; }
.field-label { display: block; font-size: 10px; color: #55554f; font-weight: 600; margin: 14px 0 6px; }
.text-input { width: 100%; border: 1px solid #e8e7e1; border-radius: 7px; height: 36px; padding: 0 10px; outline: none; background: #fff; color: #393a35; font-size: 10.5px; transition: border .15s, box-shadow .15s; }
.text-input:focus { border-color: #b49a76; box-shadow: 0 0 0 3px rgba(154,113,60,.08); }
.name-input { font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { min-width: 0; }
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon>svg { position: absolute; left: 10px; width: 14px; height: 14px; color: #99978e; pointer-events: none; }
.input-with-icon .text-input { padding-left: 31px; min-width: 0; }
.message-input { height: auto; min-height: 82px; resize: vertical; padding: 9px 10px; line-height: 1.55; }
.field-foot { margin-top: 5px; display: flex; justify-content: space-between; color: #a1a098; font-size: 9px; }
.form-divider { height: 1px; background: #eeede8; margin: 15px 0 12px; }
.photo-control { padding: 0; width: 100%; display: flex; align-items: center; border: 0; background: transparent; text-align: left; cursor: pointer; }
.photo-preview { width: 37px; height: 37px; flex: 0 0 37px; border-radius: 7px; background: #efede7 url("graduation.jpg") center 43%/cover; }
.photo-copy { margin-left: 10px; display: flex; flex-direction: column; gap: 4px; }
.photo-copy strong { font-size: 10px; font-weight: 600; }
.photo-copy small { color: #96958e; font-size: 9px; }
.change-photo { margin-left: auto; color: #856540; font-size: 9.5px; font-weight: 600; border: 1px solid #e9e4db; border-radius: 5px; padding: 6px 9px; }
.style-panel { min-height: 300px; }
.palette-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.palette-choice { position: relative; border: 1px solid #eae9e4; background: #fff; height: 44px; display: flex; align-items: center; gap: 9px; border-radius: 7px; padding: 0 10px; cursor: pointer; text-align: left; font-size: 10px; color: #676760; }
.palette-choice>span:first-child { width: 17px; height: 17px; background: var(--swatch); border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.65); }
.palette-choice i { margin-left: auto; color: #fff; font-size: 9px; font-style: normal; opacity: 0; }
.palette-choice.selected { border-color: color-mix(in srgb, var(--swatch) 54%, white); background: color-mix(in srgb, var(--swatch) 6%, white); color: #47463f; }
.palette-choice.selected i { opacity: 1; background: var(--swatch); width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; }
.style-note { margin-top: 24px; border-radius: 8px; padding: 12px; display: flex; align-items: flex-start; gap: 9px; background: #f8f6f1; color: #a08056; }
.style-note>span { font-size: 14px; line-height: 1; }
.style-note p { margin: 0; font-size: 10px; line-height: 1.5; color: #89867d; }
.template-note { display: flex; align-items: center; gap: 10px; margin: 15px 3px 0; color: #5b5b55; font-size: 10px; }
.template-note>span:nth-child(2) { display: block; }
.template-note strong { font-weight: 600; }
.template-note small { display: block; color: #999890; font-size: 9px; margin-top: 3px; }
.note-icon { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #e8e4dc; border-radius: 7px; color: #9a713c; font-size: 15px; }
.template-note button { margin-left: auto; border: 0; background: transparent; color: #96958e; font-size: 15px; cursor: pointer; }

.preview-column { min-width: 0; display: flex; flex-direction: column; }
.preview-topline { height: 30px; display: flex; justify-content: space-between; align-items: flex-start; padding: 1px 3px 0; color: #9c9b95; font-size: 9px; font-weight: 700; letter-spacing: .7px; }
.preview-topline>div { display: flex; align-items: center; gap: 7px; }
.preview-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #7e9f7a; box-shadow: 0 0 0 3px #eaf0e8; }
.device-toggle { border: 1px solid #e8e7e1; background: #fff; color: #77766f; border-radius: 6px; height: 27px; padding: 0 8px; margin-top: -6px; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 9px; font-weight: 500; letter-spacing: 0; }
.device-toggle svg { width: 13px; height: 13px; }
.device-toggle .toggle-chev { width: 11px; height: 11px; margin-left: 3px; }
.preview-stage { flex: 1; min-height: 676px; position: relative; border: 1px solid #eae9e3; border-radius: 12px; background: #f1f0eb; overflow: hidden; display: flex; align-items: flex-start; justify-content: center; padding: 23px 20px 42px; }
.preview-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#d7d4cb 0.7px, transparent .7px); background-size: 15px 15px; opacity: .45; }
.ambient { position: absolute; width: 230px; height: 230px; border-radius: 50%; filter: blur(1px); }
.ambient-one { left: -95px; top: 35%; background: rgba(220, 206, 181, .24); }
.ambient-two { right: -100px; bottom: 6%; background: rgba(197, 205, 187, .28); }
.device-frame { position: relative; z-index: 1; width: min(100%, 330px); height: 604px; border: 7px solid #272824; border-radius: 31px; padding: 0; background: #272824; box-shadow: 0 20px 45px rgba(38, 39, 33, .18), 0 2px 8px rgba(38, 39, 33, .11); }
.device-notch { position: absolute; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%); height: 17px; width: 74px; border-radius: 0 0 12px 12px; background: #272824; }
.invitation-scroll { height: 100%; border-radius: 24px; overflow: auto; background: #f5f0e6; scrollbar-width: none; }
.invitation-scroll::-webkit-scrollbar { display: none; }
.invitation-card { --invite-accent: #9a713c; --invite-bg: #f5f0e6; background: var(--invite-bg); color: #292820; font-family: "Playfair Display", serif; }
.invite-cover { height: 558px; position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; color: white; background: #514a3d; }
.cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; filter: saturate(.73); }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,29,26,.28) 0%, rgba(25,26,24,.15) 35%, rgba(19,21,19,.59) 100%); }
.cover-frame { position: absolute; inset: 15px; border: 1px solid rgba(246,232,208,.7); pointer-events: none; }
.cover-frame::before,.cover-frame::after { content:"✧"; position: absolute; color: #f5e8ce; font-size: 16px; left: 50%; transform: translateX(-50%); background: transparent; }
.cover-frame::before { top: -8px; }.cover-frame::after { bottom: -9px; }
.cover-kicker { position: absolute; top: 54px; font-family: "DM Sans", sans-serif; font-size: 8px; letter-spacing: 2px; color: #f6eee0; }
.cover-title-wrap { position: relative; z-index: 1; margin-top: 37px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cover-line { height: 1px; width: 38px; background: #dfc89f; margin-bottom: 10px; }
.invite-name { font-size: clamp(49px, 7vw, 68px); line-height: 1.03; letter-spacing: -1.6px; font-weight: 400; text-shadow: 0 2px 15px rgba(0,0,0,.18); }
.graduate-word { font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 4px; margin-top: 14px; color: #f3e8d5; }
.cover-date { position: absolute; bottom: 61px; z-index: 1; font-family: "DM Sans", sans-serif; font-size: 9px; letter-spacing: 2.5px; color: #f3eadb; }
.cover-scroll { position: absolute; bottom: 25px; z-index: 1; display: flex; align-items: center; gap: 8px; font-family: "DM Sans", sans-serif; color: rgba(255,255,255,.78); font-size: 6px; letter-spacing: 1.3px; }
.cover-scroll i { height: 1px; width: 18px; background: #d6c3a1; }
.invite-intro { padding: 46px 35px 42px; text-align: center; background: var(--invite-bg); }
.laurel { color: var(--invite-accent); font-size: 22px; margin-bottom: 12px; }
.invite-eyebrow { color: var(--invite-accent); font-family: "DM Sans", sans-serif; font-size: 8px; letter-spacing: 1.9px; }
.invite-intro>p { font-size: 21px; line-height: 1.36; margin: 14px auto 13px; max-width: 230px; }
.gold-divider { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--invite-accent); }
.gold-divider span { width: 43px; height: 1px; background: color-mix(in srgb, var(--invite-accent) 40%, transparent); }
.gold-divider i { font-size: 12px; font-style: normal; }
.invite-message { margin: 15px auto 22px; max-width: 239px; color: #68665f; font-family: "DM Sans", sans-serif; font-size: 10px; line-height: 1.75; }
.school-name { font-size: 17px; color: #3a3933; }
.generation { color: var(--invite-accent); margin-top: 7px; font-family: "DM Sans", sans-serif; font-size: 7px; letter-spacing: 1.6px; }
.invite-details { position: relative; padding: 43px 35px 34px; text-align: center; background: #eee8dc; overflow: hidden; }
.details-heading { margin-bottom: 22px; font-size: 21px; }
.detail-row { display: flex; gap: 12px; align-items: center; text-align: left; padding: 13px 0; border-bottom: 1px solid rgba(145,124,91,.2); }
.detail-icon { flex: 0 0 29px; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; color: var(--invite-accent); background: rgba(255,255,255,.47); }
.detail-icon svg { width: 14px; height: 14px; }
.detail-row>div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.detail-label { color: var(--invite-accent); font-family: "DM Sans", sans-serif; font-size: 7px; letter-spacing: 1.2px; }
.detail-row strong { font-size: 11px; font-weight: 400; line-height: 1.35; }
.rsvp-button { display: flex; width: 100%; justify-content: space-between; align-items: center; background: var(--invite-accent); color: #fff; border: 0; border-radius: 3px; margin-top: 23px; padding: 12px 13px; font-family: "DM Sans", sans-serif; font-size: 8px; letter-spacing: 1px; cursor: pointer; }
.rsvp-button span { font-size: 13px; }
.invite-signoff { margin-top: 27px; color: #79766e; font-size: 12px; font-style: italic; }
.signoff-name { color: var(--invite-accent); font-size: 35px; margin-top: 4px; }
.invite-flower { margin-top: 18px; color: var(--invite-accent); font-size: 18px; }
.preview-caption { position: absolute; bottom: 14px; z-index: 1; display: flex; gap: 7px; align-items: center; color: #8b8a82; font-size: 9px; }
.caption-check { width: 14px; height: 14px; background: #e5ede2; color: #718c70; display: grid; place-items: center; border-radius: 50%; font-size: 8px; font-weight: 700; }
.toast { position: fixed; z-index: 10; bottom: 24px; left: 50%; transform: translate(-50%, 14px); opacity: 0; pointer-events: none; padding: 11px 15px; border-radius: 8px; color: #fff; background: #333730; box-shadow: 0 8px 30px #23241f30; font-size: 11px; transition: .22s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1450px) { .content-wrap { gap: 78px; grid-template-columns: 414px minmax(430px, 1fr); } }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 213px minmax(0,1fr); }
  .content-wrap { padding: 35px 28px 40px; grid-template-columns: minmax(300px, .9fr) minmax(320px, 1fr); gap: 25px; }
  .topbar { padding: 0 26px; }
  .saved-state { display: none; }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 58px; padding: 0 19px; }
  .breadcrumbs { font-size: 10px; gap: 7px; }.breadcrumbs strong { font-size: 10px; }
  .top-actions { gap: 7px; }.button { padding: 0 9px; font-size: 9px; height: 33px; }
  .content-wrap { display: flex; flex-direction: column; padding: 27px 18px 42px; gap: 33px; max-width: 640px; }
  .page-heading { margin-bottom: 22px; }
  h1 { font-size: 27px; }
  .preview-column { order: -1; }
  .preview-topline { height: 28px; }
  .preview-stage { min-height: 657px; padding-top: 20px; }
  .device-frame { height: 568px; width: min(100%, 304px); border-radius: 29px; }
  .invitation-scroll { border-radius: 22px; }
  .invite-cover { height: 520px; }
  .cover-kicker { top: 49px; }
}
@media (max-width: 460px) {
  .topbar { padding: 0 12px; }
  .breadcrumbs span:first-child, .crumb-divider { display: none; }
  .breadcrumbs strong { max-width: 125px; overflow: hidden; text-overflow: ellipsis; }
  .button { gap: 5px; padding: 0 7px; font-size: 8px; }.button svg { width: 13px; height: 13px; }
  .content-wrap { padding: 24px 13px 36px; }
  .preview-stage { min-height: 618px; padding: 17px 10px 36px; }
  .device-frame { width: min(100%, 286px); height: 535px; }
  .invite-cover { height: 488px; }
  .cover-kicker { font-size: 7px; letter-spacing: 1.6px; }
  .invite-name { font-size: 54px; }
  .invite-intro { padding: 37px 26px 35px; }
  .invite-details { padding-left: 26px; padding-right: 26px; }
  .form-panel { padding: 17px 15px 15px; }
}
