@font-face {
  font-family: 'Source Sans';
  src: url('assets/ace/SourceSans3-Semibold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
:root { color-scheme: light; font-family: Arial, sans-serif; color: #172e43; background: #f4f7fa; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; gap: 18px; padding: 18px 28px; background: white; border-bottom: 2px solid #225f98; }
header img { width: 112px; height: auto; }
header div { flex: 1; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Source Sans', Arial, sans-serif; font-weight: 600; }
h1 { margin-bottom: 0; font-size: 23px; color: #225f98; }
.eyebrow { margin-bottom: 3px; color: #59718a; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
#connection { font-size: 12px; color: #805b19; white-space: nowrap; }
#connection.connected { color: #23704f; }
main { max-width: 850px; margin: 0 auto; padding: 28px; }
.build { margin-bottom: 8px; color: #225f98; font: 600 15px 'Source Sans', Arial, sans-serif; }
h2 { margin-bottom: 9px; font-size: clamp(26px, 4vw, 36px); line-height: 1.1; }
.slide-title { margin-bottom: 8px; color: #3c5266; font-size: 17px; }
.view { display: inline-block; margin-bottom: 20px; padding: 5px 10px; border: 1px solid #b8cddd; border-radius: 4px; color: #225f98; background: #eaf2f9; font-size: 13px; }
.view[hidden] { display: none; }
.presenter-navigation { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-top: 20px; padding: 14px; border: 1px solid #d8e3ec; border-radius: 7px; background: white; }
.presenter-navigation label { display: block; min-width: 0; color: #526b7d; font-size: 12px; }
.presenter-navigation select { display: block; width: 100%; margin-top: 5px; padding: 9px; border: 1px solid #adc3d5; border-radius: 4px; background: white; color: #172e43; font: 15px Arial, sans-serif; }
.presenter-navigation button { min-height: 39px; padding: 8px 11px; border: 1px solid #adc3d5; border-radius: 4px; background: #eaf2f9; font-size: 14px; text-decoration: none; white-space: nowrap; }
.presenter-navigation button:hover:not(:disabled) { background: #dcebf7; }
.presenter-navigation button:disabled { opacity: .45; cursor: default; }
section { margin-top: 20px; padding: 22px; background: white; border: 1px solid #d8e3ec; border-radius: 7px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
h3 { margin-bottom: 12px; color: #225f98; font-size: 18px; }
button { color: #225f98; border: 0; background: none; cursor: pointer; text-decoration: underline; }
button:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #225f98; outline-offset: 3px; }
textarea { display: block; width: 100%; min-height: clamp(260px, 40vh, 440px); padding: 12px; border: 1px solid #adc3d5; border-radius: 4px; background: #fff; color: #172e43; font: 17px/1.55 Arial, sans-serif; resize: vertical; }
.save-hint { margin: 9px 0 0; color: #5b6d7b; font-size: 12px; }
.version-controls { display: flex; align-items: end; gap: 12px; margin-top: 16px; }
.version-controls[hidden] { display: none; }
.version-controls label { flex: 1; min-width: 0; color: #526b7d; font-size: 12px; }
.version-controls select { display: block; width: 100%; margin-top: 5px; padding: 9px; border: 1px solid #adc3d5; border-radius: 4px; background: white; color: #172e43; font: 15px Arial, sans-serif; }
.version-controls button { min-height: 39px; padding: 8px 12px; border: 1px solid #225f98; border-radius: 4px; background: #225f98; color: white; font-size: 14px; text-decoration: none; white-space: nowrap; }
.version-controls button:hover:not(:disabled) { background: #174d7f; }
.version-controls button.secondary { border-color: #adc3d5; background: #eaf2f9; color: #225f98; }
.version-controls button.secondary:hover:not(:disabled) { background: #dcebf7; }
.version-controls button:disabled { opacity: .45; cursor: default; }
.share-status { margin: 10px 0 0; color: #526b7d; font-size: 13px; line-height: 1.4; }
.slide-copy p { margin-bottom: 10px; font-size: 16px; line-height: 1.45; }
.slide-copy p:empty { display: none; }
.next { margin: 20px 0 0; color: #506777; font-size: 14px; }
@media (max-width: 600px) { header { padding: 14px; gap: 10px; } header img { width: 80px; } h1 { font-size: 19px; } main { padding: 16px; } section { padding: 16px; } }
@media (max-width: 460px) { .presenter-navigation { grid-template-columns: 1fr 1fr; } .presenter-navigation label { grid-column: 1 / -1; grid-row: 1; } }
@media (max-width: 530px) { .version-controls { flex-direction: column; align-items: stretch; } }
