:root {
  --green: #e8c96a;
  --bg: #0e1a2e;
  --line: #25395c;
  --muted: #9fb0c8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #f6f4ef;
  font:
    13px 'DM Sans',
    Arial,
    sans-serif;
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: #13233d;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 13px;
}
button:hover {
  background: #203451;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
  padding: 12px 20px;
}
header {
  height: 78px;
  background: #13233d;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}
.logo {
  text-decoration: none;
  color: #e8c96a;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.8px;
}
.logo > span:first-child {
  font-size: 36px;
  vertical-align: middle;
  margin-right: 8px;
}
.logo .studio {
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 400;
  color: #9fb0c8;
  margin-left: 14px;
}
.topmeta {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9fb0c8;
}
.workspace {
  display: grid;
  grid-template-columns: 238px minmax(450px, 1fr) 282px;
  min-height: calc(100vh - 78px);
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  background: #13233d;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #e8c96a;
}
.sidebar > .eyebrow {
  padding-left: 12px;
}
.navactive {
  background: #203d49;
  padding: 14px 12px;
  margin: 14px 0 35px;
  border-radius: 5px;
  font-weight: 600;
}
.navactive span {
  float: right;
  color: #53c9be;
  font-size: 11px;
}
.sideintro {
  padding: 0 12px;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 13px 0;
}
p {
  color: #9fb0c8;
  font-size: 11px;
  line-height: 1.8;
}
.template {
  display: flex;
  text-align: left;
  gap: 12px;
  width: 100%;
  padding: 11px 10px;
  background: transparent;
  border: 1px solid transparent;
  margin: 6px 0;
}
.template.selected {
  background: #13233d;
  border-color: #53c9be;
  box-shadow: 0 3px 10px #253c3010;
}
.ticon {
  width: 35px;
  height: 43px;
  background: #203451;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: 3px;
  color: #e8c96a;
}
.template strong {
  display: block;
  font-size: 11px;
  margin: 4px 0;
}
.template small {
  font-size: 10px;
  color: #9fb0c8;
}
.sidefoot {
  margin: 50px 12px 0;
  color: #9fb0c8;
  font-size: 10px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #8fa579;
  border-radius: 50%;
  margin-right: 7px;
}
main {
  min-width: 0;
  padding: 30px 32px 20px;
}
.projectrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.breadcrumb {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9fb0c8;
}
.breadcrumb span {
  padding: 0 8px;
  color: #9fb0c8;
}
#project {
  font-size: 24px;
  background: transparent;
  border: 0;
  padding: 10px 0 0;
  width: 100%;
  letter-spacing: -0.8px;
  outline: none;
}
#saved {
  font-size: 10px;
  color: #53c9be;
  white-space: nowrap;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  height: 45px;
}
.tabs {
  display: flex;
  height: 100%;
  gap: 23px;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 8px 0;
  color: #9fb0c8;
}
.tabs button.active {
  border-bottom: 2px solid var(--green);
  color: var(--green);
}
.tools {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
}
.tools select {
  border: 0;
  background: none;
  font-size: 10px;
}
.tools button {
  padding: 6px 9px;
  font-size: 10px;
}
#slideCount {
  color: #9fb0c8;
}
#stage {
  padding: 24px 0 18px;
  background: radial-gradient(#25395c 0.7px, transparent 0.7px);
  background-size: 10px 10px;
  min-height: 460px;
}
.canvaswrap {
  width: min(100%, 350px);
  margin: auto;
  box-shadow: 0 8px 22px #23352a19;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
}
.previewnote {
  display: flex;
  justify-content: space-between;
  width: min(100%, 350px);
  margin: 12px auto 0;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #9fb0c8;
}
.filmhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 13px;
  font-size: 9px;
  letter-spacing: 1.5px;
}
.filmhead span {
  font-size: 9px;
  color: #9fb0c8;
  letter-spacing: 0;
  margin-left: 15px;
}
.filmhead button {
  font-size: 10px;
  padding: 7px 10px;
}
#film {
  display: flex;
  gap: 12px;
  overflow: auto;
  padding: 3px 2px 14px;
}
.thumb {
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: 3px;
  width: 90px;
  flex-shrink: 0;
  position: relative;
}
.thumb.active {
  border-color: #53c9be;
  box-shadow: 0 0 0 3px #25395c;
}
.thumb canvas {
  border-radius: 1px;
}
.thumb span {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: #13233d;
  padding: 2px 5px;
  font-size: 8px;
  border-radius: 2px;
}
.bottomtip {
  text-align: center;
  font-size: 10px;
  color: #9fb0c8;
  margin-top: 10px;
}
.inspector {
  border-left: 1px solid var(--line);
  background: #13233d;
  padding: 27px 22px;
}
.inspecttitle {
  font-weight: 600;
  margin-bottom: 30px;
}
.inspecttitle span {
  float: right;
  color: #9fb0c8;
  font-size: 11px;
}
.inspector label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  margin-top: 16px;
  margin-bottom: 6px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0e1a2e;
  border-radius: 4px;
  padding: 9px;
  margin-top: 7px;
  outline-color: #53c9be;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
.hint {
  font-size: 9px;
  line-height: 1.6;
}
.labelrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin-top: 14px;
}
.labelrow button {
  padding: 0;
  border: 0;
  font-size: 9px;
  color: #9fb0c8;
}
.upload {
  text-align: center;
  padding: 12px;
  border: 1px dashed #53c9be;
  border-radius: 4px;
  cursor: pointer;
  color: #53c9be;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
.tag {
  font-size: 7px;
  background: #203451;
  padding: 4px;
  letter-spacing: 0.5px;
  float: right;
}
#palettes {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.palette {
  display: flex;
  padding: 4px;
  border-radius: 20px;
  gap: 2px;
}
.palette.active {
  border-color: #53c9be;
}
.palette i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}
.delete {
  margin-top: 24px;
  width: 100%;
  font-size: 10px;
  color: #ffab9e;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 35px;
  max-width: 440px;
  box-shadow: 0 20px 80px #122d3040;
}
dialog::backdrop {
  background: #172d2355;
  backdrop-filter: blur(4px);
}
dialog button:not(.close) {
  width: 100%;
  margin-top: 12px;
}
.close {
  float: right;
  border: 0;
  font-size: 22px;
  padding: 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #203451;
  color: #fff;
  padding: 12px 20px;
  border-radius: 7px;
  display: none;
}
#overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 25px 0;
}
#overview[hidden] {
  display: none;
}
#overview button {
  padding: 0;
  overflow: hidden;
}
@media (min-width: 1500px) {
  .canvaswrap,
  .previewnote {
    width: 420px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 190px minmax(350px, 1fr) 240px;
  }
  main {
    padding: 25px 20px;
  }
  .sidebar {
    padding: 25px 10px;
  }
  .topmeta {
    display: none;
  }
  .tools {
    gap: 5px;
  }
  #saved {
    display: none;
  }
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 165px 1fr;
  }
  .inspector {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 25px;
  }
  .inspecttitle,
  .divider {
    grid-column: 1/-1;
  }
  .studio {
    display: none;
  }
  .sidebar {
    padding: 25px 6px;
  }
  .sideintro {
    padding: 0 5px;
  }
  .template {
    padding: 10px 5px;
  }
  .tools #slideCount {
    display: none;
  }
}
@media (max-width: 560px) {
  header {
    padding: 0 16px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    border-right: 0;
    padding: 15px;
  }
  .sidebar > .eyebrow,
  .navactive,
  .sideintro,
  .sidefoot {
    display: none;
  }
  #templates {
    display: flex;
    overflow: auto;
    gap: 8px;
  }
  .template {
    min-width: 140px;
  }
  .template small {
    display: none;
  }
  .ticon {
    height: 30px;
    width: 25px;
  }
  .template strong {
    font-size: 10px;
  }
  main {
    padding: 18px;
  }
  .projectrow {
    margin-bottom: 12px;
  }
  #project {
    font-size: 22px;
  }
  .inspector {
    display: block;
  }
  .tools {
    gap: 3px;
  }
  .tools button {
    font-size: 9px;
  }
  #stage {
    min-height: 0;
  }
  .canvaswrap,
  .previewnote {
    max-width: 300px;
  }
}

h1 {
  font-size: 19px;
  line-height: 1.2;
  margin: 12px 0 20px;
  letter-spacing: -0.5px;
}
.choose {
  padding: 0;
  border: 0;
  border-radius: 0;
  width: 100%;
  display: block;
}
.thumb {
  position: relative;
}
.thumb span {
  bottom: 29px;
  pointer-events: none;
}
.reorder {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
}
.reorder button {
  font-size: 10px;
  padding: 1px 9px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
:focus-visible {
  outline: 2px solid #2e9bad;
  outline-offset: 3px;
}
#stage[hidden] {
  display: none;
}

#photoControls {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 18px 0 0;
  padding: 12px;
}
#photoControls legend {
  font-size: 11px;
  font-weight: 600;
}
#photoControls:disabled {
  opacity: 0.45;
}
#photoControls input[type='range'] {
  padding: 0;
  accent-color: #e8c96a;
}
#photoControls output {
  float: right;
  color: #9fb0c8;
}
.photoActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.photoActions button {
  font-size: 10px;
  padding: 7px;
}
.photoActions button[aria-pressed='true'] {
  background: #203d49;
}

.canvaswrap {
  position: relative;
}
#elementOverlay {
  position: absolute;
  inset: 0;
  touch-action: none;
}
.elementHit {
  position: absolute;
  cursor: move;
  border: 1px dashed transparent;
  touch-action: none;
}
.elementHit:hover {
  border-color: #2e9bad;
}
.elementHit.chosen {
  border: 2px solid #2e9bad;
}
.resizeHandle {
  display: none;
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #13233d;
  border: 2px solid #2e9bad;
  cursor: nwse-resize;
}
.chosen .resizeHandle {
  display: block;
}
.editorBar {
  margin: 14px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #13233d;
}
.actionRow {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0;
}
.actionRow button,
.fileButton {
  font-size: 10px;
  padding: 7px 9px;
}
.actionRow label {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.actionRow input[type='checkbox'] {
  width: auto;
  margin: 0;
}
.actionRow select {
  width: auto;
  max-width: 175px;
  margin: 0;
  font-size: 10px;
}
.fileButton {
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}
.elementPanel {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.elementPanel h2 {
  font-size: 17px;
}
.addElements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.addElements button {
  font-size: 10px;
  text-transform: capitalize;
  padding: 8px;
}
.fieldGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}
.fieldGrid input {
  min-width: 0;
}
.elementPanel fieldset {
  margin: 15px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.elementPanel legend {
  font-size: 11px;
}
.elementPanel fieldset:disabled {
  opacity: 0.45;
}
.layer {
  display: flex;
  gap: 3px;
  margin: 5px 0;
  padding: 3px;
  background: #13233d;
  border-radius: 4px;
}
.layer.selected {
  outline: 1px solid #2e9bad;
}
.layer button {
  font-size: 9px;
  padding: 6px 4px;
  min-width: 0;
}
.layer button:first-child {
  flex: 1;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#layers {
  margin-top: 14px;
  max-height: 220px;
  overflow: auto;
}
input[type='color'] {
  height: 36px;
  padding: 3px;
}
.inspector {
  max-height: calc(100vh - 78px);
  overflow: auto;
  position: sticky;
  top: 0;
}
@media (max-width: 850px) {
  .inspector {
    max-height: none;
    position: static;
  }
  .elementPanel {
    grid-column: 1/-1;
  }
  .editorBar .actionRow {
    gap: 4px;
  }
}

.inspector label > input[type='checkbox'] {
  width: auto;
  margin-right: 6px;
}
#photoControls output {
  float: right;
  font-size: 10px;
}

.templateLayer {
  font-size: 10px;
  padding: 9px 6px;
  border-top: 1px dashed #25395c;
  border-bottom: 1px dashed #25395c;
  margin: 7px 0;
  color: #9fb0c8;
  background: #13233d;
}

.positionPanel {
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.positionPanel h2 {
  font-size: 17px;
}
.positionPanel > button {
  width: 100%;
  font-size: 11px;
}
.positionPanel button[aria-pressed='true'] {
  background: #203d49;
  border-color: #53c9be;
}
#templateOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  touch-action: none;
}
#templateOverlay[hidden] {
  display: none;
}
.templateHit {
  position: absolute;
  border: 1px dashed #2e9bad;
  background: #2e9bad0b;
  pointer-events: auto;
  touch-action: none;
  cursor: move;
}
.templateHit.chosen {
  border: 2px solid #2e9bad;
}
.templateHit > span {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #e8c96a;
  color: white;
  font-size: 9px;
  padding: 2px 5px;
  white-space: nowrap;
  pointer-events: none;
}
.positioning #elementOverlay {
  pointer-events: none;
}
.positioning #elementOverlay .elementHit {
  pointer-events: none;
}
.positioning {
  touch-action: none;
}
@media (max-width: 850px) {
  .positionPanel {
    grid-column: 1/-1;
  }
}

.elementPanel {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.templateHit.chosen {
  z-index: 2;
}

/* Suite styling and a calmer editing workflow. */
:root {
  color-scheme: dark;
  --green: #e8c96a;
}
body {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 16px;
}
header {
  height: 76px;
  padding: 0 28px;
}
.logo {
  letter-spacing: -0.5px;
}
.logo .studio {
  font-size: 16px;
}
button {
  min-height: 36px;
  font-weight: 600;
}
button.primary {
  color: #0e1a2e;
  font-size: 16px;
}
button.primary:hover {
  background: #f4d981;
}
.workspace {
  grid-template-columns: 210px minmax(0, 1fr) 330px;
  max-width: 1800px;
  margin: auto;
}
.sidebar {
  padding: 26px 16px;
}
.navactive {
  margin: 14px 0 28px;
}
.navactive a {
  color: #f6f4ef;
  text-decoration: none;
}
h1 {
  font-size: 34px;
  text-transform: uppercase;
  line-height: 1;
  margin: 14px 0;
}
p,
.sidefoot,
.template small {
  font-size: 13px;
  line-height: 1.5;
}
.eyebrow,
.breadcrumb,
.filmhead,
.inspecttitle {
  font-size: 12px;
  letter-spacing: 1.5px;
}
.template strong {
  font-size: 15px;
}
.template.selected {
  background: #203451;
}
.sideintro {
  padding: 0 4px;
}
main {
  padding: 26px 24px;
}
.projectrow {
  gap: 16px;
}
.projectrow > div {
  min-width: 0;
  flex: 1;
}
#project {
  font-size: 28px;
}
#saved {
  font-size: 12px;
}
.toolbar {
  height: auto;
  min-height: 48px;
  flex-wrap: wrap;
  gap: 10px;
}
.tabs {
  gap: 20px;
}
.tools,
.tools select,
.tools button {
  font-size: 13px;
}
.tools select {
  background: #13233d;
}
#stage {
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #091323;
}
.previewnote {
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.4px;
}
.slideNavigation {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slideNavigation button {
  min-height: 32px;
  padding: 4px 10px;
}
.filmhead span,
.filmhead button,
.bottomtip {
  font-size: 12px;
}
.thumb {
  width: 100px;
}
.thumb span,
.reorder button {
  font-size: 12px;
}
.inspector {
  padding: 24px 20px;
  max-height: calc(100vh - 0px);
}
.inspecttitle {
  margin-bottom: 22px;
  color: #e8c96a;
}
.inspector label,
.labelrow {
  font-size: 14px;
}
.hint {
  font-size: 12px;
  color: #9fb0c8;
}
input,
textarea,
select {
  font-size: 15px;
}
input[type='checkbox'] {
  accent-color: #53c9be;
}
.upload {
  font-size: 15px;
}
.controlGroup {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  margin-top: 12px;
}
.controlGroup > summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #e8c96a;
  padding: 5px 0;
}
.controlGroup > summary:hover {
  color: #f6f4ef;
}
.controlGroup .positionPanel,
.controlGroup .elementPanel {
  border: 0;
  margin: 0;
  padding: 6px 0;
}
.controlGroup .positionPanel > h2,
.controlGroup .elementPanel > h2:first-child {
  display: none;
}
.actionRow button,
.actionRow label,
.fileButton,
.actionRow select,
.addElements button,
.layer button,
.photoActions button {
  font-size: 13px;
}
.editorBar {
  padding: 8px 12px;
}
.editorBar .controlGroup {
  margin-top: 6px;
  padding: 8px 0;
}
#photoControls {
  margin-top: 12px;
}
#photoControls input[type='range'] {
  accent-color: #53c9be;
}
.delete {
  font-size: 14px;
}
dialog {
  background: #13233d;
  color: #f6f4ef;
  width: min(440px, calc(100% - 32px));
}
dialog h2 {
  font-size: 28px;
}
dialog p {
  font-size: 16px;
}
#toast {
  z-index: 20;
  max-width: calc(100% - 32px);
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 180px minmax(0, 1fr) 290px;
  }
  main {
    padding: 24px 16px;
  }
  .projectrow {
    flex-wrap: wrap;
  }
}
@media (max-width: 950px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .sidebar {
    grid-column: 1/-1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
  }
  .sidebar > .eyebrow,
  .navactive,
  .sideintro,
  .sidefoot {
    display: none;
  }
  #templates {
    display: flex;
    overflow: auto;
    gap: 8px;
  }
  .template {
    min-width: 165px;
    width: auto;
    margin: 0;
  }
  .inspector {
    grid-column: auto;
    display: block;
    position: sticky;
    top: 0;
    max-height: 100vh;
  }
}
@media (max-width: 650px) {
  .workspace {
    display: block;
  }
  header {
    padding: 0 16px;
    gap: 10px;
  }
  .logo {
    font-size: 25px;
  }
  .logo .studio {
    display: none;
  }
  .sidebar {
    padding: 12px;
  }
  main {
    padding: 18px 14px;
  }
  .inspector {
    position: static;
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  #saved {
    display: block;
  }
  .tools #slideCount {
    display: inline;
  }
  .tools {
    flex-wrap: wrap;
  }
  .filmhead {
    gap: 10px;
  }
  .filmhead span {
    display: block;
    margin: 6px 0 0;
    letter-spacing: 0;
  }
  #overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Text size & fit: warning marker on slide thumbnails */
.thumb .overflowBadge,
#overview button .overflowBadge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 9px;
  background: #e8c96a;
  color: #0e1a2e;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}
#overview button {
  position: relative;
}
