/* [project]/app/globals.css [app-client] (css) */
:root {
  --ink: #131720;
  --muted: #6f7480;
  --line: #e4e2dc;
  --paper: #f6f5f0;
  --white: #fff;
  --blue: #355cff;
  --navy: #111827;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

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

button {
  color: inherit;
}

button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.app-shell {
  background: var(--paper);
  min-height: 100vh;
  display: flex;
}

.side-rail {
  z-index: 20;
  color: #fff;
  background: #121722;
  flex-direction: column;
  width: 216px;
  padding: 28px 18px 20px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.app-brand {
  align-items: center;
  gap: 11px;
  padding: 0 9px 33px;
  display: flex;
}

.app-brand > span {
  color: #121722;
  letter-spacing: -.04em;
  background: #c9ff4f;
  border-radius: 11px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
}

.app-brand strong {
  letter-spacing: -.03em;
  font-size: 14px;
  line-height: 1.03;
}

.step-nav {
  gap: 4px;
  display: grid;
}

.step-nav button {
  color: #8e96a7;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 10px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 10px;
  transition: all .2s;
  display: flex;
}

.step-nav button:hover {
  color: #fff;
  background: #ffffff0f;
}

.step-nav button.active {
  color: #fff;
  background: #ffffff17;
}

.step-nav button.done .step-icon {
  color: #121722;
  background: #c9ff4f;
  border-color: #c9ff4f;
}

.step-icon {
  border: 1px solid #3a414e;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 29px;
  height: 29px;
  display: grid;
}

.step-nav button.active .step-icon {
  color: #121722;
  background: #fff;
  border-color: #fff;
}

.step-nav button > span:last-child {
  gap: 2px;
  display: grid;
}

.step-nav strong {
  font-size: 12px;
  font-weight: 700;
}

.step-nav small {
  color: #747d8e;
  font-size: 10px;
}

.settings-shortcut {
  color: #aab1bf;
  cursor: pointer;
  background: none;
  border: 0;
  border-top: 1px solid #2a303b;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 10px;
  font-size: 11px;
  text-decoration: none;
  display: flex;
}

.settings-shortcut:hover {
  color: #fff;
}

.save-state {
  color: #697384;
  text-transform: uppercase;
  letter-spacing: .08em;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 0;
  font-size: 9px;
  display: flex;
}

.save-state i {
  background: #73e1a6;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 4px #73e1a614;
}

.studio-main {
  width: calc(100% - 216px);
  min-height: 100vh;
  margin-left: 216px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #f6f5f0eb;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 30px;
  display: flex;
}

.project-crumb {
  align-items: center;
  gap: 10px;
  font-size: 12px;
  display: flex;
}

.project-crumb span, .project-crumb a {
  color: #8a8e96;
  text-decoration: none;
}

.project-crumb a:hover {
  color: #30343c;
}

.project-crumb i {
  color: #c4c3bd;
  font-style: normal;
}

.project-crumb strong {
  font-weight: 700;
}

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

.button {
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 750;
  transition: transform .15s, background .15s;
  display: inline-flex;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.ghost {
  color: #30343c;
  background: #fff;
  border-color: #deddd7;
}

.button.dark {
  color: #fff;
  background: #131923;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px #355cff38;
}

.workspace {
  grid-template-columns: minmax(420px, 43%) 1fr;
  height: calc(100vh - 68px);
  display: grid;
  overflow: hidden;
}

.editor-panel {
  border-right: 1px solid var(--line);
  background: #fff;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.editor-scroll {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  flex: auto;
  min-height: 0;
  padding: 43px clamp(30px, 4.2vw, 58px) 50px;
  overflow-y: auto;
}

.editor-footer {
  z-index: 4;
  border-top: 1px solid var(--line);
  background: #fffffff5;
  flex: 0 0 70px;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 14px clamp(30px, 4.2vw, 58px);
  display: flex;
  position: relative;
  box-shadow: 0 -8px 24px #1317200a;
}

.step-heading {
  margin-bottom: 34px;
  padding-left: 51px;
  position: relative;
}

.step-heading > span {
  color: #fff;
  background: #151a24;
  border-radius: 9px;
  place-items: center;
  width: 33px;
  height: 33px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  position: absolute;
  top: 4px;
  left: 0;
}

.step-heading h1 {
  letter-spacing: -.04em;
  margin: 0 0 9px;
  font-family: Georgia, serif;
  font-size: clamp(27px, 2.2vw, 35px);
  font-weight: 500;
  line-height: 1.05;
}

.step-heading p {
  max-width: 510px;
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.form-stack {
  gap: 24px;
  display: grid;
}

.field-row {
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  display: grid;
}

.field {
  align-content: start;
  gap: 8px;
  width: 100%;
  display: grid;
}

.field > span, .upload-field > span, .color-field > span {
  color: #4b505a;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  font-weight: 750;
}

.field input, .field textarea, .select-wrap select {
  width: 100%;
  color: var(--ink);
  background: #fbfbf9;
  border: 1px solid #deddd8;
  border-radius: 9px;
  font-size: 12px;
  transition: all .15s;
}

.field input {
  height: 43px;
  padding: 0 13px;
}

.field textarea {
  resize: vertical;
  min-height: 83px;
  padding: 12px 13px;
  line-height: 1.55;
}

.field input:hover, .field textarea:hover, .select-wrap select:hover {
  border-color: #c9c8c2;
}

.field input:focus, .field textarea:focus, .select-wrap select:focus {
  border-color: var(--blue);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px #355cff14;
}

.field > small {
  color: #92959c;
  margin-top: -2px;
  font-size: 9px;
  line-height: 1.45;
}

.field-section {
  gap: 14px;
  display: grid;
}

.section-label {
  border-bottom: 1px solid #ecebe7;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  display: flex;
}

.section-label span {
  color: #a2a4a9;
  font-size: 9px;
}

.section-label strong {
  font-size: 11px;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  height: 43px;
  padding: 0 36px 0 13px;
}

.select-wrap svg {
  pointer-events: none;
  color: #858a93;
  position: absolute;
  top: 14px;
  right: 12px;
}

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

.upload-field {
  gap: 8px;
  display: grid;
}

.upload-field.wide {
  grid-column: 1 / -1;
}

.upload-field label {
  color: #8b8e95;
  cursor: pointer;
  background: #fafaf8;
  border: 1px dashed #cfd0ce;
  border-radius: 11px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 96px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.upload-field.wide label {
  min-height: 125px;
}

.upload-field label:hover {
  border-color: var(--blue);
  background: #f7f8ff;
}

.upload-field label svg {
  color: #717782;
}

.upload-field label strong {
  color: #353a43;
  font-size: 11px;
}

.upload-field label small {
  font-size: 9px;
}

.upload-field input, .creative-upload input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.upload-field label.uploaded {
  background: #f2f2ef;
  border-style: solid;
}

.upload-field label.uploaded img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  min-height: 94px;
  max-height: 145px;
  padding: 12px;
}

.upload-field > button {
  color: #a04949;
  cursor: pointer;
  background: none;
  border: 0;
  justify-self: start;
  align-items: center;
  gap: 5px;
  padding: 0;
  font-size: 9px;
  display: inline-flex;
}

.palette-presets {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  display: grid;
}

.palette-presets button {
  cursor: pointer;
  text-align: left;
  background: #fff;
  border: 1px solid #e1e0db;
  border-radius: 9px;
  padding: 8px;
}

.palette-presets button:hover {
  border-color: #aaa;
}

.palette-presets button > span {
  border-radius: 5px;
  height: 27px;
  display: flex;
  overflow: hidden;
}

.palette-presets button i {
  flex: 1;
}

.palette-presets small {
  color: #5b6069;
  margin-top: 7px;
  font-size: 8px;
  font-weight: 700;
  display: block;
}

.color-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  display: grid;
}

.color-field {
  gap: 7px;
  display: grid;
}

.color-field > div {
  background: #fff;
  border: 1px solid #deddd8;
  border-radius: 8px;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 4px;
  display: flex;
}

.color-field input[type="color"] {
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  overflow: hidden;
}

.color-field input[type="text"], .color-field input:not([type]) {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  font-family: monospace;
  font-size: 8px;
}

.style-options {
  grid-template-columns: repeat(2, 1fr);
  align-self: end;
  gap: 7px;
  display: grid;
}

.style-options button {
  cursor: pointer;
  background: #fff;
  border: 1px solid #e0dfda;
  border-radius: 9px;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 8px;
  height: 68px;
  padding: 8px;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  position: relative;
}

.style-options button.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #355cff14;
}

.style-options button > svg {
  color: var(--blue);
  position: absolute;
  top: 5px;
  right: 5px;
}

.style-swatch {
  background: #e9e7df;
  border-radius: 3px;
  width: 25px;
  height: 42px;
  display: block;
}

.swatch-editorial {
  background: linear-gradient(135deg, #17223e 0 60%, #ff7048 60%);
}

.swatch-impact {
  background: linear-gradient(0deg, #b8ff34 0 35%, #171717 35%);
}

.swatch-minimal {
  background: linear-gradient(90deg, #f7f5ef 0 74%, #365dff 74%);
  border: 1px solid #d9d7d0;
}

.swatch-condensed {
  background: linear-gradient(145deg, #123a30 0 68%, #70be49 68%);
}

.project-settings-note {
  color: #234437;
  background: #f2f7f3;
  border: 1px solid #dce7df;
  border-radius: 10px;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  display: flex;
}

.project-settings-note > svg {
  color: #216645;
  flex: none;
  margin-top: 1px;
}

.project-settings-note p {
  gap: 3px;
  margin: 0;
  display: grid;
}

.project-settings-note strong {
  font-size: 10px;
}

.project-settings-note span {
  color: #658074;
  font-size: 9px;
  line-height: 1.45;
}

.concept-card {
  color: #fff;
  background: #131a27;
  border-radius: 13px;
  gap: 15px;
  padding: 20px;
  display: grid;
  box-shadow: 0 15px 35px #0f162321;
}

.concept-card > span {
  color: #aab4c6;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 9px;
  font-weight: 800;
}

.concept-card .field > span {
  color: #bfc7d5;
}

.concept-card .field input, .concept-card .field textarea {
  color: #fff;
  background: #1c2533;
  border-color: #353e4c;
}

.concept-card .field input:focus, .concept-card .field textarea:focus {
  border-color: #8197ff;
}

.structure-summary {
  border-bottom: 1px solid #e6e5df;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  display: flex;
}

.structure-summary span {
  font-size: 11px;
  font-weight: 800;
}

.structure-summary small {
  color: #8b8e95;
  font-size: 9px;
}

.structure-list {
  gap: 7px;
  display: grid;
}

.structure-item {
  background: #fff;
  border: 1px solid #e2e1dc;
  border-radius: 10px;
  grid-template-columns: 19px 33px 1fr auto 28px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  transition: all .2s;
  display: grid;
}

.structure-item > svg {
  color: #b1b2b5;
}

.structure-item.disabled {
  opacity: .52;
  background: #f5f5f2;
}

.structure-number {
  color: #fff;
  background: #171d29;
  border-radius: 8px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 9px;
  font-weight: 800;
  display: grid;
}

.structure-item > div {
  gap: 2px;
  display: grid;
}

.structure-item strong {
  font-size: 11px;
}

.structure-item small {
  color: #92959c;
  font-size: 8px;
}

.toggle {
  cursor: pointer;
  background: #c9c9c5;
  border: 0;
  border-radius: 9px;
  width: 30px;
  height: 17px;
  padding: 0;
  position: relative;
}

.toggle i {
  background: #fff;
  border-radius: 50%;
  width: 11px;
  height: 11px;
  transition: all .2s;
  position: absolute;
  top: 3px;
  left: 3px;
}

.toggle.on {
  background: var(--blue);
}

.toggle.on i {
  transform: translateX(13px);
}

.reorder {
  display: grid;
}

.reorder button {
  color: #888c94;
  cursor: pointer;
  background: none;
  border: 0;
  place-items: center;
  width: 26px;
  height: 20px;
  padding: 0;
  display: grid;
}

.slide-content-section {
  gap: 13px;
  padding-top: 4px;
  display: grid;
}

.slide-content-intro {
  color: #7d8189;
  margin: -3px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

.slide-copy-list {
  gap: 9px;
  display: grid;
}

.slide-copy-card {
  background: #fff;
  border: 1px solid #e1e0db;
  border-radius: 11px;
  transition: border-color .18s, box-shadow .18s;
  overflow: hidden;
}

.slide-copy-card.active {
  border-color: #9eb0ff;
  box-shadow: 0 0 0 3px #355cff12;
}

.slide-copy-head {
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  display: grid;
}

.slide-copy-head > span {
  color: #fff;
  background: #151b27;
  border-radius: 8px;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 9px;
  font-weight: 800;
  display: grid;
}

.slide-copy-head > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.slide-copy-head strong {
  font-size: 10px;
}

.slide-copy-head small {
  color: #858991;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.slide-copy-head > svg {
  color: #969aa2;
}

.slide-copy-card.active .slide-copy-head > svg {
  color: var(--blue);
}

.slide-copy-fields {
  background: #fbfbf8;
  border-top: 1px solid #ecebe7;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.slide-copy-fields .field textarea {
  min-height: 72px;
}

.creative-count {
  color: #fff;
  background: #151b28;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  padding: 17px;
  display: flex;
}

.creative-count > span {
  color: #141a25;
  background: #c9ff4f;
  border-radius: 50%;
  place-items: center;
  width: 47px;
  height: 47px;
  font-family: Georgia, serif;
  font-size: 23px;
  display: grid;
}

.creative-count p {
  gap: 3px;
  margin: 0;
  display: grid;
}

.creative-count strong {
  font-size: 11px;
}

.creative-count small {
  color: #929baa;
  font-size: 8px;
}

.creative-count button {
  color: #fff;
  cursor: pointer;
  background: none;
  border: 1px solid #3c4452;
  border-radius: 8px;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 8px 10px;
  font-size: 9px;
  display: flex;
}

.creative-editor-list {
  gap: 13px;
  display: grid;
}

.creative-editor {
  background: #fff;
  border: 1px solid #e1e0db;
  border-radius: 12px;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 14px;
  display: grid;
}

.creative-editor-head {
  border-bottom: 1px solid #ecebe7;
  grid-column: 1 / -1;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  display: flex;
}

.creative-editor-head span {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 9px;
  font-weight: 800;
}

.creative-editor-head button {
  color: #a45a5a;
  cursor: pointer;
  background: none;
  border: 0;
}

.creative-upload {
  color: #898d95;
  cursor: pointer;
  background: #f8f8f5;
  border: 1px dashed #cfd0ce;
  border-radius: 9px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 180px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.creative-upload strong {
  color: #3d424b;
  font-size: 9px;
}

.creative-upload small {
  text-align: center;
  max-width: 90px;
  font-size: 8px;
  line-height: 1.4;
}

.creative-upload.has-image {
  border-style: solid;
}

.creative-upload img {
  object-fit: contain;
  background: #f2f1ec;
  width: 100%;
  height: 100%;
  padding: 8px;
  position: absolute;
  inset: 0;
}

.creative-fields {
  gap: 10px;
  display: grid;
}

.creative-fields .field input {
  height: 38px;
}

.creative-fields .field textarea {
  min-height: 65px;
}

.creative-fields .field > span {
  font-size: 8px;
}

.add-creative {
  color: #5d626a;
  cursor: pointer;
  background: #fafaf8;
  border: 1px dashed #bfc2c5;
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 65px;
  display: flex;
}

.add-creative span {
  text-align: left;
  gap: 2px;
  display: grid;
}

.add-creative strong {
  font-size: 10px;
}

.add-creative small {
  color: #93969c;
  font-size: 8px;
}

.finalize-layout {
  gap: 20px;
  display: grid;
}

.ready-card {
  color: #fff;
  background: #131a27;
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.ready-card:after {
  content: "";
  opacity: .9;
  border: 25px solid #c9ff4f;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  position: absolute;
  bottom: -74px;
  right: -48px;
}

.ready-icon {
  color: #131a27;
  background: #c9ff4f;
  border-radius: 50%;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 27px;
  display: grid;
}

.ready-card > span {
  color: #9ba5b5;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 9px;
}

.ready-card h2 {
  max-width: 75%;
  margin: 7px 0;
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.05;
}

.ready-card p {
  color: #aeb7c5;
  margin: 0;
  font-size: 10px;
}

.check-list {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}

.check-list > div {
  border: 1px solid #e5e4df;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  padding: 11px;
  display: flex;
}

.check-list > div > span {
  color: #207847;
  background: #e5f6ec;
  border-radius: 50%;
  place-items: center;
  width: 24px;
  height: 24px;
  display: grid;
}

.check-list p {
  gap: 2px;
  margin: 0;
  display: grid;
}

.check-list strong {
  font-size: 9px;
}

.check-list small {
  color: #8d9198;
  font-size: 8px;
}

.output-options {
  gap: 8px;
  display: grid;
}

.output-options > button {
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e2e1dc;
  border-radius: 11px;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  display: grid;
}

.output-options > button:hover {
  border-color: #aeb2b8;
  transform: translateX(2px);
}

.output-options > button > span {
  color: #fff;
  background: #171e2b;
  border-radius: 10px;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
}

.output-options > button:nth-child(2) > span {
  color: #151b25;
  background: #c9ff4f;
}

.output-options p {
  gap: 3px;
  margin: 0;
  display: grid;
}

.output-options strong {
  font-size: 10px;
}

.output-options small {
  color: #898d95;
  font-size: 8px;
}

.output-options > button > svg {
  color: #8e9299;
}

.preview-panel {
  background: #ecebe5;
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.preview-toolbar {
  border-bottom: 1px solid #dcdad3;
  justify-content: space-between;
  align-items: center;
  min-height: 57px;
  padding: 0 24px;
  display: flex;
}

.preview-toolbar > div {
  gap: 2px;
  display: grid;
}

.preview-toolbar span {
  font-size: 10px;
  font-weight: 800;
}

.preview-toolbar small {
  color: #8a8d92;
  font-size: 8px;
}

.preview-toolbar button {
  cursor: pointer;
  background: #fff;
  border: 1px solid #d3d2cd;
  border-radius: 7px;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
}

.preview-stage {
  background-image: radial-gradient(#d5d3cc 1px, #0000 1px);
  background-size: 17px 17px;
  flex: 1;
  place-items: center;
  min-height: 0;
  padding: clamp(22px, 4vw, 56px);
  display: grid;
}

.preview-stage > .slide-canvas {
  width: 100%;
  max-width: 880px;
  box-shadow: 0 24px 55px #23262c2b, 0 2px 4px #23262c17;
}

.no-slides {
  color: #777b84;
  font-size: 12px;
}

.thumbnail-strip {
  background: #e5e4de;
  border-top: 1px solid #dad8d1;
  align-items: center;
  gap: 10px;
  min-height: 105px;
  padding: 12px 20px;
  display: flex;
  overflow-x: auto;
}

.thumbnail-strip > button {
  cursor: pointer;
  background: none;
  border: 0;
  gap: 4px;
  padding: 0;
  display: grid;
}

.thumbnail-strip > button > small {
  color: #8f9297;
  font-size: 7px;
}

.thumbnail-canvas {
  border: 2px solid #0000;
  border-radius: 4px;
  width: 106px;
  display: block;
  overflow: hidden;
  box-shadow: 0 3px 8px #00000014;
}

.thumbnail-strip button.active .thumbnail-canvas {
  border-color: var(--blue);
}

.slide-canvas {
  --deck-font: Inter;
  aspect-ratio: 16 / 9;
  color: var(--deck-text);
  background: var(--deck-bg);
  font-family: var(--deck-font), Inter, sans-serif;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}

.slide-noise {
  z-index: -1;
  opacity: .045;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  position: absolute;
  inset: 0;
}

.slide-header {
  z-index: 12;
  justify-content: space-between;
  align-items: center;
  display: flex;
  position: absolute;
  top: 4.2cqw;
  left: 5.2cqw;
  right: 5.2cqw;
}

.slide-header > span {
  letter-spacing: .07em;
  font-size: .8cqw;
  font-weight: 750;
}

.studio-wordmark {
  text-transform: uppercase;
  letter-spacing: .06em;
  align-items: center;
  gap: .65cqw;
  font-size: .84cqw;
  font-weight: 800;
  display: inline-flex;
}

.studio-wordmark i {
  background: var(--deck-accent);
  border-radius: 50%;
  width: .85cqw;
  height: .85cqw;
}

.studio-logo {
  object-fit: contain;
  max-width: 7.5cqw;
  max-height: 2.5cqw;
}

.slide-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0;
  font-size: .86cqw;
  font-weight: 800;
}

.slide-cover {
  color: var(--primary-contrast);
  background: var(--deck-primary);
}

.cover-image {
  z-index: -3;
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.cover-overlay {
  z-index: -2;
  background: linear-gradient(90deg, color-mix(in srgb, var(--deck-primary) 94%, transparent) 0%, color-mix(in srgb, var(--deck-primary) 70%, transparent) 48%, color-mix(in srgb, var(--deck-primary) 18%, transparent) 100%);
  position: absolute;
  inset: 0;
}

.cover-copy {
  width: 58%;
  position: absolute;
  bottom: 7.4cqw;
  left: 5.2cqw;
}

.cover-copy h1 {
  letter-spacing: -.055em;
  margin: 1.3cqw 0 1.4cqw;
  font-family: Georgia, serif;
  font-size: 5.8cqw;
  font-weight: 500;
  line-height: .88;
}

.cover-rule {
  background: var(--deck-accent);
  width: 5.2cqw;
  height: .55cqw;
  margin-bottom: 1.35cqw;
}

.cover-copy .slide-body {
  margin: 0;
  font-size: 1.18cqw;
}

.client-logo {
  z-index: 5;
  object-fit: contain;
  filter: brightness(0) invert();
  max-width: 9.5cqw;
  max-height: 4cqw;
  position: absolute;
  bottom: 4.6cqw;
  right: 5.2cqw;
}

.abstract-visual {
  z-index: -1;
  width: 48%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  overflow: hidden;
}

.abstract-panel {
  width: 68%;
  height: 130%;
  position: absolute;
  top: -15%;
  right: -12%;
  transform: rotate(14deg);
}

.abstract-disc {
  z-index: 2;
  border-radius: 50%;
  width: 23cqw;
  height: 23cqw;
  position: absolute;
  bottom: -4cqw;
  right: 1.5cqw;
}

.abstract-ring {
  z-index: 3;
  opacity: .9;
  border: 1.7cqw solid;
  border-radius: 50%;
  width: 30cqw;
  height: 30cqw;
  position: absolute;
  top: -7cqw;
  right: -8cqw;
}

.abstract-type {
  z-index: 4;
  color: #ffffffe0;
  font-family: Georgia, serif;
  font-size: 26cqw;
  font-style: italic;
  line-height: .75;
  position: absolute;
  top: 12cqw;
  right: 6cqw;
}

.challenge-layout {
  padding: 10cqw 5.2cqw 4.8cqw;
  position: absolute;
  inset: 0;
}

.challenge-layout h2 {
  letter-spacing: -.045em;
  width: 79%;
  margin: 3.4cqw 0 0;
  font-family: Georgia, serif;
  font-size: 4.6cqw;
  font-weight: 500;
  line-height: 1.02;
}

.challenge-audience {
  border-top: .18cqw solid var(--deck-text);
  width: 40%;
  padding-top: 1.2cqw;
  position: absolute;
  bottom: 5cqw;
  right: 5.2cqw;
}

.challenge-audience span {
  color: color-mix(in srgb, var(--deck-text) 65%, transparent);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78cqw;
}

.challenge-audience p {
  margin: .65cqw 0 0;
  font-size: 1.08cqw;
  line-height: 1.45;
}

.challenge-marker {
  color: var(--deck-accent);
  opacity: .23;
  font-family: Georgia, serif;
  font-size: 12cqw;
  line-height: 1;
  position: absolute;
  top: 8cqw;
  right: 3cqw;
}

.slide-idea {
  color: var(--primary-contrast);
  background: var(--deck-primary);
}

.idea-layout {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 9cqw 12cqw 6cqw;
  display: flex;
  position: absolute;
  inset: 0;
}

.idea-layout h2 {
  z-index: 2;
  letter-spacing: -.055em;
  max-width: 77cqw;
  margin: 2.3cqw 0 1.8cqw;
  font-family: Georgia, serif;
  font-size: 5.25cqw;
  font-weight: 500;
  line-height: .98;
  position: relative;
}

.idea-copy {
  z-index: 2;
  opacity: .78;
  max-width: 53cqw;
  margin: 0;
  font-size: 1.08cqw;
  line-height: 1.5;
  position: relative;
}

.idea-orbit {
  border: .12cqw solid color-mix(in srgb, var(--primary-contrast) 40%, transparent);
  border-radius: 50%;
  position: absolute;
}

.idea-orbit-one {
  width: 56cqw;
  height: 23cqw;
  transform: rotate(-12deg);
}

.idea-orbit-two {
  width: 43cqw;
  height: 32cqw;
  transform: rotate(19deg);
}

.idea-orbit-two:after {
  content: "";
  background: var(--deck-accent);
  border-radius: 50%;
  width: 2.2cqw;
  height: 2.2cqw;
  position: absolute;
  top: 1.2cqw;
  right: 5cqw;
}

.creative-layout {
  grid-template-columns: 57% 43%;
  display: grid;
  position: absolute;
  inset: 0;
}

.creative-visual {
  background: var(--deck-secondary);
  position: relative;
  overflow: hidden;
}

.creative-visual > img {
  object-fit: contain;
  background: color-mix(in srgb, var(--deck-secondary) 86%, var(--deck-bg));
  width: 100%;
  height: 100%;
  padding: 2.2cqw;
}

.creative-placeholder {
  color: var(--accent-contrast);
  background: var(--deck-accent);
  box-shadow: 1.5cqw 1.5cqw 0 color-mix(in srgb, var(--deck-primary) 75%, transparent);
  flex-direction: column;
  justify-content: flex-end;
  padding: 3cqw;
  display: flex;
  position: absolute;
  inset: 4cqw;
  overflow: hidden;
}

.creative-placeholder span {
  z-index: 2;
  text-transform: uppercase;
  font-size: 1.1cqw;
  font-weight: 850;
  position: relative;
}

.creative-placeholder strong {
  z-index: 2;
  letter-spacing: -.05em;
  max-width: 75%;
  margin-top: 1.2cqw;
  font-family: Georgia, serif;
  font-size: 4.1cqw;
  font-weight: 500;
  line-height: .93;
  position: relative;
}

.creative-placeholder small {
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 1.5cqw;
  font-size: .85cqw;
  font-weight: 800;
  position: relative;
}

.creative-sun {
  border: 4cqw solid var(--deck-secondary);
  border-radius: 50%;
  width: 23cqw;
  height: 23cqw;
  position: absolute;
  top: -6cqw;
  right: -5cqw;
}

.creative-copy {
  flex-direction: column;
  justify-content: center;
  padding: 8cqw 5cqw 5cqw;
  display: flex;
}

.creative-copy h2 {
  letter-spacing: -.05em;
  margin: 1.8cqw 0 1.25cqw;
  font-family: Georgia, serif;
  font-size: 4.05cqw;
  font-weight: 500;
  line-height: .98;
}

.creative-copy > p:not(.slide-eyebrow) {
  margin: 0;
  font-size: 1.02cqw;
  line-height: 1.5;
}

.format-line {
  border-top: .12cqw solid color-mix(in srgb, var(--deck-text) 35%, transparent);
  margin-top: auto;
  padding-top: 1cqw;
}

.format-line span {
  color: color-mix(in srgb, var(--deck-text) 60%, transparent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .35cqw;
  font-size: .7cqw;
  display: block;
}

.format-line strong {
  font-size: .9cqw;
}

.formats-layout {
  padding: 9.5cqw 5.2cqw 4.5cqw;
  position: absolute;
  inset: 0;
}

.formats-layout h2 {
  letter-spacing: -.05em;
  width: 72%;
  margin: 2.1cqw 0 1.1cqw;
  font-family: Georgia, serif;
  font-size: 4.1cqw;
  font-weight: 500;
  line-height: 1;
}

.formats-copy {
  width: 64%;
  color: color-mix(in srgb, var(--deck-text) 72%, transparent);
  margin: 0 0 2.1cqw;
  font-size: .92cqw;
  line-height: 1.45;
}

.format-list {
  border-top: .14cqw solid var(--deck-text);
  width: 100%;
}

.format-row {
  border-bottom: .08cqw solid color-mix(in srgb, var(--deck-text) 25%, transparent);
  grid-template-columns: 5cqw 13cqw 1fr;
  align-items: center;
  min-height: 4.2cqw;
  display: grid;
}

.format-row > span {
  color: var(--deck-accent);
  font-size: .72cqw;
  font-weight: 800;
}

.format-row strong {
  font-family: Georgia, serif;
  font-size: 1.55cqw;
  font-weight: 500;
}

.format-row p {
  margin: 0;
  font-size: .92cqw;
}

.slide-closing {
  color: var(--primary-contrast);
  background: var(--deck-primary);
}

.closing-layout {
  flex-direction: column;
  justify-content: center;
  padding: 8cqw 10cqw;
  display: flex;
  position: absolute;
  inset: 0;
}

.closing-layout h2 {
  z-index: 2;
  letter-spacing: -.055em;
  width: 72%;
  margin: 2.2cqw 0;
  font-family: Georgia, serif;
  font-size: 5.3cqw;
  font-weight: 500;
  line-height: .97;
  position: relative;
}

.closing-layout > p:not(.slide-eyebrow) {
  white-space: pre-line;
  opacity: .78;
  max-width: 48%;
  margin: 0;
  font-size: .92cqw;
  line-height: 1.5;
}

.closing-dot {
  background: var(--deck-accent);
  border-radius: 50%;
  width: 24cqw;
  height: 24cqw;
  position: absolute;
  top: 8cqw;
  right: 8cqw;
}

.closing-dot:after {
  content: "";
  border: .14cqw solid var(--accent-contrast);
  border-radius: 50%;
  position: absolute;
  inset: 4.2cqw;
}

.closing-line {
  background: var(--deck-accent);
  width: 8cqw;
  height: .55cqw;
  position: absolute;
  bottom: 5.5cqw;
  left: 10cqw;
}

.style-impact .cover-copy h1, .style-impact .challenge-layout h2, .style-impact .idea-layout h2, .style-impact .creative-copy h2, .style-impact .formats-layout h2, .style-impact .closing-layout h2, .style-impact .creative-placeholder strong {
  letter-spacing: -.065em;
  font-family: Arial Black, Arial, sans-serif;
  font-weight: 900;
}

.style-impact .cover-copy h1 {
  text-transform: uppercase;
}

.style-condensed .cover-copy h1, .style-condensed .challenge-layout h2, .style-condensed .idea-layout h2, .style-condensed .creative-copy h2, .style-condensed .formats-layout h2, .style-condensed .closing-layout h2, .style-condensed .creative-placeholder strong, .style-condensed .format-row strong {
  letter-spacing: -.035em;
  text-transform: uppercase;
  font-family: Arial Narrow, Roboto Condensed, Arial, sans-serif;
  font-weight: 600;
}

.style-condensed .slide-eyebrow {
  letter-spacing: .17em;
}

.style-minimal .abstract-ring, .style-minimal .idea-orbit-two {
  display: none;
}

.style-minimal .cover-rule {
  height: .18cqw;
}

.preview-modal {
  z-index: 100;
  background: #0a0d12;
  animation: .25s modal-in;
  position: fixed;
  inset: 0;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(.99);
  }
}

.presentation-viewer {
  color: #fff;
  background: #0a0d12;
  place-items: center;
  width: 100%;
  height: 100%;
  display: grid;
  position: relative;
}

.viewer-stage {
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 6vh 7vw 10vh;
  display: grid;
}

.viewer-stage .slide-canvas {
  width: min(86vw, 145vh);
  max-height: 82vh;
  box-shadow: 0 28px 80px #0000006b;
}

.viewer-controls {
  align-items: center;
  gap: 11px;
  display: flex;
  position: absolute;
  bottom: 3.2vh;
  left: 50%;
  transform: translateX(-50%);
}

.viewer-controls button, .viewer-actions button {
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #ffffff14;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
}

.viewer-controls button:hover, .viewer-actions button:hover {
  background: #ffffff29;
}

.viewer-controls span {
  color: #a8adb7;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  display: flex;
}

.viewer-controls span i {
  background: #4e5561;
  width: 18px;
  height: 1px;
}

.viewer-actions {
  gap: 8px;
  display: flex;
  position: absolute;
  top: 24px;
  right: 25px;
}

.viewer-hint {
  color: #69707c;
  margin: 0;
  font-size: 9px;
  position: absolute;
  bottom: 23px;
  left: 25px;
}

.empty-viewer {
  color: #fff;
  background: #0a0d12;
  place-items: center;
  min-height: 100vh;
  display: grid;
}

.viewer-page:before {
  content: "Deck Studio";
  z-index: 3;
  color: #7d8490;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10px;
  font-weight: 800;
  position: absolute;
  top: 25px;
  left: 25px;
}

.toast {
  z-index: 200;
  color: #fff;
  background: #161d29;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  max-width: 390px;
  padding: 13px 16px;
  font-size: 10px;
  animation: .25s toast-in;
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 24px;
  box-shadow: 0 15px 40px #12182340;
}

.toast svg {
  color: #b8ff4d;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.mobile-progress {
  display: none;
}

.library-page {
  background: #f3f2ed;
  min-height: 100vh;
}

.library-header {
  z-index: 20;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: #f9f8f4eb;
  border-bottom: 1px solid #dfded8;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 clamp(24px, 4vw, 64px);
  display: grid;
  position: sticky;
  top: 0;
}

.library-brand {
  color: #161b25;
  justify-self: start;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  display: flex;
}

.library-brand > span {
  color: #131923;
  background: #c9ff4f;
  border-radius: 10px;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 11px;
  font-weight: 900;
  display: grid;
}

.library-brand strong {
  letter-spacing: -.03em;
  font-size: 13px;
}

.library-header nav {
  align-items: center;
  height: 100%;
  display: flex;
}

.library-header nav a {
  color: #777b84;
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
  display: flex;
}

.library-header nav a.active {
  color: #171c26;
  border-color: #171c26;
}

.library-header > .button {
  justify-self: end;
  text-decoration: none;
}

.library-main {
  width: min(1220px, 100% - 48px);
  margin: 0 auto;
  padding: 66px 0 80px;
}

.library-hero {
  border-bottom: 1px solid #dcdbd5;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 54px;
  display: flex;
}

.library-hero > div:first-child > p {
  color: #777b84;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 15px;
  font-size: 9px;
  font-weight: 800;
}

.library-hero h1 {
  letter-spacing: -.055em;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(38px, 4.3vw, 62px);
  font-weight: 500;
  line-height: .98;
}

.library-stats {
  gap: 42px;
  padding-bottom: 5px;
  display: flex;
}

.library-stats > div {
  gap: 4px;
  display: grid;
}

.library-stats strong {
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 500;
}

.library-stats span {
  color: #898d95;
  white-space: nowrap;
  font-size: 9px;
}

.library-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 36px 0 24px;
  display: flex;
}

.library-toolbar > div {
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.library-toolbar h2 {
  margin: 0;
  font-size: 13px;
}

.library-toolbar > div > span {
  color: #94979d;
  font-size: 9px;
}

.library-toolbar > label {
  color: #8b8f96;
  background: #fff;
  border: 1px solid #deddd8;
  border-radius: 10px;
  align-items: center;
  gap: 9px;
  width: min(360px, 42vw);
  height: 41px;
  padding: 0 11px;
  display: flex;
}

.library-toolbar input {
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  font-size: 10px;
}

.library-toolbar label > button {
  color: #7f838b;
  cursor: pointer;
  background: #f1f1ed;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
}

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

.presentation-card {
  background: #fff;
  border: 1px solid #deddd7;
  border-radius: 15px;
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
  box-shadow: 0 8px 28px #1f232b0a;
}

.presentation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px #1f232b1a;
}

.presentation-cover {
  aspect-ratio: 16 / 9;
  color: #fff;
  background: var(--card-primary);
  isolation: isolate;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.presentation-cover:before {
  content: "";
  z-index: -1;
  background: var(--card-secondary);
  width: 39%;
  height: 150%;
  position: absolute;
  top: -25%;
  right: -2%;
  transform: rotate(11deg);
}

.cover-brand {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 7px;
  font-weight: 850;
  position: absolute;
  top: 9%;
  left: 7%;
}

.cover-letter {
  opacity: .82;
  font-family: Georgia, serif;
  font-size: 82px;
  font-style: italic;
  line-height: 1;
  position: absolute;
  top: 7%;
  right: 6%;
}

.cover-circle {
  aspect-ratio: 1;
  background: var(--card-accent);
  border-radius: 50%;
  width: 31%;
  position: absolute;
  bottom: -18%;
  right: 5%;
}

.presentation-cover > strong {
  letter-spacing: -.04em;
  width: 65%;
  font-family: Georgia, serif;
  font-size: clamp(17px, 1.7vw, 25px);
  font-weight: 500;
  line-height: .95;
  position: absolute;
  bottom: 19%;
  left: 7%;
}

.presentation-cover > span {
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
  font-size: 7px;
  font-weight: 750;
  position: absolute;
  bottom: 8%;
  left: 7%;
}

.presentation-card-body {
  padding: 17px 18px 15px;
}

.card-meta {
  color: #8a8e96;
  text-transform: uppercase;
  letter-spacing: .07em;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  display: flex;
}

.card-meta > span {
  color: #454a54;
  font-weight: 800;
}

.presentation-card-body h2 {
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 10px 0 5px;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.05;
  overflow: hidden;
}

.presentation-card-body > p {
  color: #8b8f96;
  margin: 0;
  font-size: 9px;
}

.card-actions {
  border-top: 1px solid #ecebe7;
  grid-template-columns: 1fr 34px 34px 34px;
  gap: 6px;
  margin-top: 17px;
  padding-top: 13px;
  display: grid;
}

.card-actions a, .card-actions button {
  color: #555a63;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dfded9;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0;
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
  display: flex;
}

.card-actions .card-edit {
  color: #fff;
  background: #171d28;
  border-color: #171d28;
}

.card-actions .delete {
  color: #a15050;
}

.card-actions a:hover, .card-actions button:hover:not(:disabled) {
  background: #f7f7f4;
  border-color: #aeb0b2;
}

.card-actions .card-edit:hover {
  color: #fff;
  background: #252d3a;
}

.library-empty {
  text-align: center;
  background: #ffffff7a;
  border: 1px dashed #cccbc5;
  border-radius: 17px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 330px;
  padding: 40px;
  display: flex;
}

.library-empty > span {
  color: #151b26;
  background: #c9ff4f;
  border-radius: 17px;
  place-items: center;
  width: 57px;
  height: 57px;
  margin-bottom: 20px;
  display: grid;
}

.library-empty h2 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}

.library-empty p {
  color: #82868e;
  margin: 0 0 22px;
  font-size: 10px;
}

.library-empty .button {
  text-decoration: none;
}

.library-empty.compact {
  min-height: 230px;
}

.library-dialog-backdrop {
  z-index: 100;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #0d1118ad;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.library-dialog {
  background: #fff;
  border-radius: 17px;
  width: min(440px, 100%);
  padding: 29px;
  position: relative;
  box-shadow: 0 30px 90px #00000047;
}

.dialog-close {
  color: #777b84;
  cursor: pointer;
  background: #f2f1ed;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  display: grid;
  position: absolute;
  top: 16px;
  right: 16px;
}

.dialog-icon {
  color: #a43e3e;
  background: #fae8e8;
  border-radius: 12px;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 21px;
  display: grid;
}

.library-dialog > p {
  color: #a24a4a;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 7px;
  font-size: 8px;
  font-weight: 800;
}

.library-dialog h2 {
  margin: 0 0 10px;
  padding-right: 30px;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.05;
}

.library-dialog > span:not(.dialog-icon) {
  color: #7d8189;
  font-size: 10px;
  line-height: 1.5;
  display: block;
}

.library-dialog > div {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 28px;
  display: flex;
}

.button.danger {
  color: #fff;
  background: #b94545;
}

.global-settings-page {
  background: #f3f2ed;
  min-height: 100vh;
}

.settings-header {
  z-index: 30;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: #f9f8f4f0;
  border-bottom: 1px solid #dfded8;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 clamp(24px, 4vw, 64px);
  display: grid;
  position: sticky;
  top: 0;
}

.settings-header-title {
  text-align: center;
  gap: 2px;
  display: grid;
}

.settings-header-title span {
  color: #979a9f;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 8px;
  font-weight: 800;
}

.settings-header-title strong {
  font-size: 12px;
}

.settings-header-actions {
  justify-self: end;
  gap: 8px;
  display: flex;
}

.settings-header-actions .button {
  text-decoration: none;
}

.settings-main {
  width: min(1280px, 100% - 48px);
  margin: 0 auto;
  padding: 54px 0 84px;
}

.settings-intro {
  border-bottom: 1px solid #dcdbd5;
  justify-content: space-between;
  align-items: flex-end;
  gap: 42px;
  padding-bottom: 39px;
  display: flex;
}

.settings-intro > div:first-child {
  max-width: 710px;
}

.settings-intro > div:first-child > p {
  color: #216645;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin: 0 0 12px;
  font-size: 9px;
  font-weight: 850;
}

.settings-intro h1 {
  letter-spacing: -.045em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-family: Arial Narrow, Arial, sans-serif;
  font-size: clamp(36px, 4.2vw, 59px);
  font-weight: 600;
  line-height: .95;
}

.settings-intro > div:first-child > span {
  color: #777b84;
  max-width: 620px;
  font-size: 11px;
  line-height: 1.65;
  display: block;
}

.settings-rule {
  color: #234437;
  background: #edf5ef;
  border: 1px solid #d9e5dc;
  border-radius: 12px;
  align-items: flex-start;
  gap: 10px;
  min-width: 275px;
  padding: 15px;
  display: flex;
}

.settings-rule > svg {
  color: #70be49;
  flex: none;
}

.settings-rule p {
  gap: 3px;
  margin: 0;
  display: grid;
}

.settings-rule strong {
  font-size: 10px;
}

.settings-rule span {
  color: #6a8074;
  font-size: 8px;
  line-height: 1.45;
}

.settings-layout {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 44%);
  align-items: start;
  gap: 32px;
  padding-top: 34px;
  display: grid;
}

.settings-form {
  gap: 18px;
  display: grid;
}

.settings-section {
  background: #fff;
  border: 1px solid #dfded8;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px #1f232b09;
}

.settings-section-head {
  background: #fafaf7;
  border-bottom: 1px solid #ecebe7;
  align-items: center;
  gap: 12px;
  padding: 17px 19px;
  display: flex;
}

.settings-section-head > span {
  color: #fff;
  background: #216645;
  border-radius: 9px;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.settings-section-head > div {
  gap: 3px;
  display: grid;
}

.settings-section-head strong {
  font-size: 11px;
}

.settings-section-head small {
  color: #8b8f96;
  font-size: 8px;
}

.settings-fields {
  gap: 14px;
  padding: 19px;
  display: grid;
}

.settings-fields .field > span {
  align-items: center;
  gap: 6px;
  display: flex;
}

.settings-form .field > select {
  width: 100%;
  height: 43px;
  color: var(--ink);
  background: #fbfbf9;
  border: 1px solid #deddd8;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 12px;
}

.settings-logo-field {
  gap: 8px;
  display: grid;
}

.settings-logo-field > span, .settings-style-field > span {
  color: #4b505a;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  font-weight: 750;
}

.settings-logo-field > div {
  align-items: center;
  gap: 10px;
  display: flex;
}

.settings-logo-field label {
  color: #8b8e95;
  cursor: pointer;
  background: #fafaf8;
  border: 1px dashed #cfd0ce;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 92px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.settings-logo-field label strong {
  color: #363b44;
  font-size: 10px;
}

.settings-logo-field label small {
  font-size: 8px;
}

.settings-logo-field input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.settings-logo-field label.has-logo {
  border-style: solid;
}

.settings-logo-field label img {
  object-fit: contain;
  background: #173c32;
  width: 100%;
  height: 90px;
  padding: 12px;
}

.settings-logo-field button {
  color: #9c5050;
  cursor: pointer;
  background: #fff;
  border: 1px solid #eadede;
  border-radius: 8px;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  font-size: 8px;
  display: flex;
}

.settings-color-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  padding: 19px 19px 0;
  display: grid;
}

.settings-color {
  gap: 7px;
  display: grid;
}

.settings-color > span {
  color: #61656d;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 8px;
  font-weight: 750;
}

.settings-color > div {
  background: #fbfbf9;
  border: 1px solid #deddd8;
  border-radius: 9px;
  align-items: center;
  gap: 7px;
  padding: 5px;
  display: flex;
}

.settings-color input {
  background: none;
  border: 0;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  overflow: hidden;
}

.settings-color strong {
  min-width: 0;
  font-family: monospace;
  font-size: 8px;
}

.settings-section > .field-row {
  padding: 19px;
}

.settings-style-field {
  gap: 8px;
  display: grid;
}

.settings-style-field > div {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  display: grid;
}

.settings-style-field button {
  cursor: pointer;
  background: #fff;
  border: 1px solid #e0dfda;
  border-radius: 9px;
  place-items: center;
  gap: 4px;
  min-height: 62px;
  padding: 6px;
  display: grid;
  position: relative;
}

.settings-style-field button.active {
  border-color: #216645;
  box-shadow: 0 0 0 2px #21664514;
}

.settings-style-field button > svg {
  color: #216645;
  position: absolute;
  top: 4px;
  right: 4px;
}

.settings-style-field .style-swatch {
  width: 34px;
  height: 28px;
}

.settings-style-field small {
  font-size: 7px;
}

.settings-reset {
  color: #68716d;
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 7px;
  margin: 0 19px 19px;
  padding: 0;
  font-size: 8px;
  font-weight: 750;
  display: flex;
}

.settings-preview {
  background: #e8e9e4;
  border: 1px solid #d8d7d1;
  border-radius: 16px;
  position: sticky;
  top: 98px;
  overflow: hidden;
  box-shadow: 0 18px 48px #1f232b17;
}

.settings-preview-head {
  background: #ffffffb8;
  border-bottom: 1px solid #d8d7d1;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-height: 61px;
  padding: 12px 15px;
  display: flex;
}

.settings-preview-head > div:first-child {
  gap: 2px;
  display: grid;
}

.settings-preview-head span {
  font-size: 10px;
  font-weight: 800;
}

.settings-preview-head small {
  color: #8a8d92;
  font-size: 8px;
}

.settings-preview-head > div:last-child {
  gap: 4px;
  display: flex;
}

.settings-preview-head button {
  color: #767b82;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 8px;
}

.settings-preview-head button.active {
  color: #fff;
  background: #216645;
}

.settings-preview-stage {
  background-image: radial-gradient(#d2d5ce 1px, #0000 1px);
  background-size: 16px 16px;
  place-items: center;
  min-height: 420px;
  padding: 30px;
  display: grid;
}

.settings-preview-stage .slide-canvas {
  width: 100%;
  box-shadow: 0 22px 48px #15221d2e;
}

.settings-preview-note {
  color: #335546;
  background: #f7faf7;
  border-top: 1px solid #d8d7d1;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  display: flex;
}

.settings-preview-note > svg {
  color: #70be49;
  flex: none;
}

.settings-preview-note p {
  gap: 3px;
  margin: 0;
  display: grid;
}

.settings-preview-note strong {
  font-size: 9px;
}

.settings-preview-note span {
  color: #73837b;
  font-size: 8px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-preview {
    position: static;
  }

  .settings-preview-stage {
    min-height: 500px;
  }
}

@media (max-width: 920px) {
  .presentation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-header {
    grid-template-columns: 1fr 1fr;
  }

  .library-header nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .library-header {
    padding: 0 16px;
  }

  .library-header .button {
    min-width: 39px;
    font-size: 0;
  }

  .library-main {
    width: min(100% - 32px, 1220px);
    padding-top: 40px;
  }

  .library-hero {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 34px;
  }

  .library-stats {
    justify-content: space-between;
    width: 100%;
  }

  .library-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .library-toolbar > label {
    width: 100%;
  }

  .presentation-grid {
    grid-template-columns: 1fr;
  }

  .presentation-cover > strong {
    font-size: 25px;
  }
}

@media (max-width: 1050px) {
  .side-rail {
    width: 74px;
    padding-inline: 12px;
  }

  .app-brand {
    padding-inline: 6px;
  }

  .app-brand strong, .step-nav button > span:last-child, .settings-shortcut span, .save-state span {
    display: none;
  }

  .step-nav button {
    justify-content: center;
    padding-inline: 0;
  }

  .settings-shortcut {
    justify-content: center;
  }

  .studio-main {
    width: calc(100% - 74px);
    margin-left: 74px;
  }

  .workspace {
    grid-template-columns: minmax(390px, 48%) 1fr;
  }

  .topbar {
    padding-inline: 20px;
  }

  .button {
    padding-inline: 10px;
  }

  .top-actions .button.ghost {
    gap: 0;
    font-size: 0;
  }

  .top-actions .button.ghost svg {
    width: 17px;
  }

  .palette-presets {
    grid-template-columns: repeat(2, 1fr);
  }

  .color-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 780px) {
  .settings-header {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .settings-header-title {
    display: none;
  }

  .settings-header-actions .button.ghost {
    min-width: 39px;
    font-size: 0;
  }

  .settings-main {
    width: min(100% - 32px, 1280px);
    padding-top: 36px;
  }

  .settings-intro {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .settings-rule {
    min-width: 0;
  }

  .settings-color-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .settings-preview-stage {
    min-height: 360px;
    padding: 18px;
  }

  .app-shell {
    display: block;
  }

  .side-rail {
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 59px;
    padding: 8px 14px;
    position: static;
  }

  .app-brand {
    padding: 0;
  }

  .app-brand > span {
    width: 35px;
    height: 35px;
  }

  .step-nav, .settings-shortcut, .save-state {
    display: none;
  }

  .studio-main {
    width: 100%;
    margin: 0;
  }

  .topbar {
    height: 58px;
  }

  .project-crumb span, .project-crumb a, .project-crumb i, .top-actions .button.ghost {
    display: none;
  }

  .workspace {
    height: auto;
    display: block;
    overflow: visible;
  }

  .editor-panel {
    border: 0;
    min-height: calc(100vh - 117px);
  }

  .editor-scroll {
    padding: 30px 20px 110px;
  }

  .editor-footer {
    z-index: 30;
    padding: 11px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -4px 20px #00000012;
  }

  .preview-panel {
    display: none;
  }

  .mobile-progress {
    border-bottom: 1px solid var(--line);
    background: #fff;
    align-items: center;
    gap: 12px;
    height: 35px;
    padding: 0 20px;
    display: flex;
  }

  .mobile-progress > span {
    color: #777b83;
    white-space: nowrap;
    font-size: 8px;
  }

  .mobile-progress > div {
    background: #ecece9;
    border-radius: 2px;
    flex: 1;
    height: 3px;
    overflow: hidden;
  }

  .mobile-progress i {
    background: var(--blue);
    height: 100%;
    transition: width .3s;
    display: block;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .style-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .creative-editor {
    grid-template-columns: 1fr;
  }

  .creative-upload {
    min-height: 210px;
  }

  .viewer-stage {
    padding: 4vh 3vw 11vh;
  }

  .viewer-stage .slide-canvas {
    width: 94vw;
  }

  .viewer-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .settings-color-grid, .settings-style-field > div {
    grid-template-columns: 1fr 1fr;
  }

  .settings-preview-stage {
    min-height: 260px;
  }

  .upload-grid, .check-list {
    grid-template-columns: 1fr;
  }

  .upload-field.wide {
    grid-column: auto;
  }

  .palette-presets, .color-grid {
    grid-template-columns: 1fr 1fr;
  }

  .style-options {
    grid-template-columns: 1fr;
  }

  .style-options button {
    height: 50px;
  }

  .style-swatch {
    height: 33px;
  }

  .structure-item {
    grid-template-columns: 18px 30px 1fr auto;
  }

  .reorder {
    display: none !important;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/