.sf-studio {
  --sf-paper: #FFFDF8;
  --sf-cream: #FFF4DC;
  --sf-yellow: #FFCC35;
  --sf-gold: #EBAA08;
  --sf-ink: #2F2118;
  --sf-olive: #515B30;
  --sf-line: #E3D2AD;
  --sf-serif: Georgia, 'Times New Roman', serif;
  --sf-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: #FFFCF5;
  color: var(--sf-ink);
  font-family: var(--sf-sans);
  font-size: 16px;
  line-height: 1.65;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}
.sf-studio *, .sf-studio *::before, .sf-studio *::after { box-sizing: border-box; }
.sf-studio h1, .sf-studio h2, .sf-studio h3 { margin: 0; color: var(--sf-ink); font-family: var(--sf-serif); font-weight: 700; letter-spacing: -.035em; line-height: 1.16; text-wrap: balance; }
.sf-studio h1 { font-size: clamp(38px, 4.2vw, 58px); }
.sf-studio h2 { font-size: 32px; }
.sf-studio h3 { font-size: 24px; }
.sf-studio p { margin: 0 0 1em; }
.sf-studio a { color: inherit; text-decoration: none; }
.sf-studio button, .sf-studio input, .sf-studio textarea, .sf-studio select { font: inherit; color: var(--sf-ink); }
.sf-studio button { cursor: pointer; }
.sf-studio button:disabled { cursor: default; }
.sf-studio img { display: block; max-width: 100%; height: auto; }
.sf-studio :focus-visible { outline: 3px solid var(--sf-olive); outline-offset: 4px; }
.sf-studio ::selection { background: #FFDF7A; color: var(--sf-ink); }
.sf-studio [hidden] { display: none !important; }
.sf-main:focus { outline: 0; }
.sf-icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; vertical-align: middle; }
.sf-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sf-skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 10px 18px; border-radius: 8px; background: var(--sf-ink); color: white !important; transform: translateY(-170%); }
.sf-skip-link:focus { transform: translateY(0); }
.sf-eyebrow { margin: 0 0 14px !important; color: var(--sf-ink); font-size: 11px; font-weight: 800; letter-spacing: .15em; line-height: 1.5; text-transform: uppercase; }
.sf-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 18px; border: 1px solid var(--sf-line); border-radius: 9px; background: var(--sf-paper); color: var(--sf-ink); font-family: var(--sf-sans); font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none; transition: background .18s, border-color .18s, box-shadow .18s; }
.sf-button-gold { border-color: #DBA114; background: linear-gradient(180deg, #FFD65C, #FFCC35 38%, #F4B310); box-shadow: inset 0 1px 0 #FFFFFF80, 0 4px 12px #99610013; }
.sf-button-gold:hover:not(:disabled) { border-color: #C38B00; background: linear-gradient(180deg, #FFDF78, #FFD048 38%, #F0AE0B); box-shadow: 0 5px 16px #99610020; }
.sf-button-outline { border-color: #CBB17B; background: var(--sf-paper); }
.sf-button-outline:hover:not(:disabled), .sf-button-paper:hover:not(:disabled) { border-color: #AF8730; background: #FFF2CB; }
.sf-button-paper { background: #FFFDF8F5; border-color: #D9C292; }
.sf-button-large { min-height: 53px; padding: 13px 23px; font-size: 16px; }
.sf-button:disabled { border-color: #DED2B8; background: #EFE6D1; color: #65513D; box-shadow: none; }
.sf-text-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--sf-ink); font-size: 14px; font-weight: 700; line-height: 1.6; text-decoration: underline !important; text-decoration-color: #D7A93E !important; text-underline-offset: 5px; }
.sf-text-link:hover { text-decoration-color: var(--sf-ink) !important; }
.sf-text-link:disabled { color: #69543A; cursor: default; }
.sf-small-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 7px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--sf-ink); font-size: 12px; font-weight: 600; line-height: 1.5; }
.sf-small-button .sf-icon { width: 17px; height: 17px; }
.sf-small-button:hover:not(:disabled) { border-color: #E2CCA0; background: #FFF2CF; }
.sf-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 37px; height: 37px; padding: 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; }
.sf-icon-button:hover { border-color: var(--sf-line); background: #FFF0C5; }
.sf-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 15px 0 22px; }
.sf-inline-actions > .sf-field-hint { flex: 1 1 190px; margin: 0; }

.sf-studio-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid #DCC28A; background: #FFFDF8F7; backdrop-filter: blur(12px); }
.sf-header-inner { display: flex; align-items: center; gap: 22px; width: calc(100% - 64px); max-width: 1280px; min-height: 98px; margin: 0 auto; }
.sf-brand { display: block; flex: 0 0 auto; width: 220px; }
.sf-brand img { width: 100%; aspect-ratio: 3 / 1; object-fit: contain; }
.sf-studio-label { padding-left: 22px; border-left: 1px solid #D8BD80; font-family: var(--sf-serif); font-size: 23px; font-weight: 700; }
.sf-header-nav { display: flex; align-items: center; gap: 25px; margin-left: 17px; font-size: 14px; font-weight: 600; }
.sf-header-nav button { padding: 7px 0; border: 0; background: none; font-weight: 600; }
.sf-header-nav a { display: inline-flex; align-items: center; gap: 6px; }
.sf-header-nav .sf-icon { width: 16px; height: 16px; }
.sf-header-nav button:hover, .sf-header-nav a:hover { text-decoration: underline; text-decoration-color: #D7A93E; text-underline-offset: 5px; }
.sf-owner { display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: auto; font-size: 12px; font-weight: 600; }
.sf-owner > span:not(.sf-owner-dot) { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-owner small { padding: 3px 8px; border: 1px solid #DBC58E; border-radius: 99px; background: #FFF3CB; font-size: 10px; }
.sf-owner-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--sf-olive); }
.sf-main { width: calc(100% - 64px); max-width: 1200px; margin: 0 auto; padding: 39px 0 72px; }

.sf-welcome { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 44px; padding: 43px 46px; overflow: hidden; border: 1px solid #E0BE64; border-radius: 23px; background: linear-gradient(120deg, #FFF0AF 0%, #FFF8DE 55%, #FFE8A0 100%); }
.sf-welcome-copy, .sf-welcome-guide { position: relative; z-index: 1; min-width: 0; }
.sf-welcome h1 { margin-bottom: 21px; font-size: clamp(39px, 4.2vw, 55px); line-height: 1.075; }
.sf-welcome-copy > p:not(.sf-eyebrow) { max-width: 530px; margin-bottom: 27px; font-size: 16px; line-height: 1.75; }
.sf-welcome-guide { padding: 27px; border: 1px solid #DEC37D; border-radius: 16px; background: #FFFDF3EB; box-shadow: 0 9px 27px #8151100A; }
.sf-welcome-guide > .sf-guide-leaf { float: right; width: 49px; margin: -8px -2px 0 9px; }
.sf-welcome-guide > .sf-eyebrow { max-width: 220px; margin-bottom: 21px !important; font-size: 10px; }
.sf-welcome-guide ol { display: grid; gap: 19px; margin: 0; padding: 0; list-style: none; }
.sf-welcome-guide li { display: flex; align-items: flex-start; gap: 13px; }
.sf-welcome-guide li > span { display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; background: #FFE18B; font-size: 11px; font-weight: 800; }
.sf-welcome-guide strong { font-size: 14px; font-weight: 750; }
.sf-welcome-guide li p { margin: 1px 0 0; font-size: 12px; line-height: 1.65; }
.sf-welcome-branch { position: absolute; right: -76px; bottom: -65px; z-index: 0; width: 205px; pointer-events: none; opacity: .72; }
.sf-guide-leaf { flex: 0 0 auto; transform-origin: 50% 85%; animation: sf-ginkgo-sway 4.5s ease-in-out 1; }
.sf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin: 23px 0 43px; }
.sf-stat { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 22px; border: 1px solid #E3D2AD; border-radius: 14px; background: #FFFEFA; }
.sf-stat-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 12px; background: #FFF1BD; color: #705112; }
.sf-stat strong { display: block; font-family: var(--sf-serif); font-size: 33px; font-weight: 700; line-height: 1.1; }
.sf-stat div > span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; }

.sf-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.sf-library-heading .sf-eyebrow { margin-bottom: 10px !important; }
.sf-library-heading h2 { font-size: 35px; }
.sf-library-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 19px; padding: 19px 0 20px; border-top: 1px solid var(--sf-line); border-bottom: 1px solid var(--sf-line); }
.sf-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.sf-filter-group button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 700; line-height: 1.5; }
.sf-filter-group button > span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; background: #F0E6CE; font-size: 10px; }
.sf-filter-group button[aria-pressed='true'] { border-color: #DFB64D; background: #FFDF7B; }
.sf-filter-group button[aria-pressed='true'] > span { background: #FFF2BD; }
.sf-filter-group button:hover { border-color: #D4B66E; }
.sf-search { display: flex; align-items: center; gap: 10px; min-width: 0; width: 285px; min-height: 43px; padding: 0 12px; border: 1px solid #CDB88E; border-radius: 8px; background: #FFFEFA; }
.sf-search input { width: 100%; min-width: 0; min-height: 41px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.sf-search input::placeholder { color: #4E3C29; opacity: 1; }
.sf-search:focus-within { outline: 2px solid var(--sf-olive); outline-offset: 3px; }
.sf-search .sf-icon { width: 18px; height: 18px; }
.sf-results { margin: 22px 0 16px !important; font-size: 12px; }
.sf-lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sf-lesson-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #DDC89B; border-top: 3px solid #E8BD48; border-radius: 14px; background: #FFFEFA; box-shadow: 0 7px 24px #75501807; }
.sf-card-cover { height: 148px; overflow: hidden; border-bottom: 1px solid #E1CCA2; background: #FFF0C5; }
.sf-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.sf-card-content { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.sf-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.sf-topic { font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.sf-reading-time { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 11px; }
.sf-reading-time .sf-icon { width: 14px; height: 14px; }
.sf-lesson-card h3 { margin-bottom: 14px; font-size: 27px; }
.sf-lesson-card h3 button { padding: 0; border: 0; border-radius: 2px; background: transparent; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-align: left; }
.sf-lesson-card h3 button:hover { text-decoration: underline; text-decoration-color: #D7A93E; text-underline-offset: 4px; }
.sf-card-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 19px !important; font-size: 14px; line-height: 1.75; }
.sf-badge { display: inline-flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; padding: 5px 9px; border: 1px solid #DDC99D; border-radius: 99px; background: #FFF1C2; color: var(--sf-ink); font-size: 10px; font-weight: 700; line-height: 1.6; }
.sf-badge > span { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #9B741B; }
.sf-badge-published { border-color: #B9C39A; background: #EDF0DD; }
.sf-badge-published > span { background: #58642E; }
.sf-badge-changes { border-color: #D9AD53; background: #FFEBC2; }
.sf-badge-changes > span { background: #B77813; }
.sf-card-date { margin: 12px 0 18px !important; font-size: 11px; }
.sf-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid #EADDC4; }
.sf-card-actions .sf-text-link { font-size: 12px; }
.sf-card-actions .sf-text-link .sf-icon { width: 17px; height: 17px; }
.sf-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 240px; padding: 35px; font-size: 16px; }
.sf-empty { display: flex; flex-direction: column; align-items: center; margin-top: 24px; padding: 48px 28px; border: 1px dashed #D2B56E; border-radius: 16px; background: #FFF8E5; text-align: center; }
.sf-empty > .sf-icon { width: 38px; height: 38px; margin-bottom: 19px; }
.sf-empty > img { width: 61px; margin-bottom: 20px; }
.sf-empty h3 { margin-bottom: 14px; font-size: 31px; }
.sf-empty > p { max-width: 520px; margin-bottom: 22px; }
.sf-empty .sf-inline-actions { justify-content: center; margin: 0; }
.sf-empty-error { background: #FFF5E7; border-color: #C9A07E; }

.sf-notice { display: flex; align-items: flex-start; gap: 13px; margin: 20px 0 24px; padding: 19px 22px; border: 1px solid #D7C48B; border-radius: 12px; background: #FFF4CD; font-size: 14px; }
.sf-notice > .sf-icon { margin-top: 2px; }
.sf-notice > div { flex: 1; min-width: 0; }
.sf-notice > .sf-icon-button { margin: -5px -8px -5px 0; }
.sf-notice p { margin: 0; overflow-wrap: anywhere; }
.sf-notice strong { display: block; margin-bottom: 4px; font-size: 14px; }
.sf-notice .sf-text-link { margin-top: 8px; font-size: 13px; }
.sf-notice-success { background: #F0F3E4; border-color: #BCC89B; }
.sf-notice-info { background: #FFF4D4; border-color: #DCC17B; }
.sf-notice-error { background: #FFF0E7; border-color: #CF9C7C; color: #662C1B; }
.sf-notice-error ul { display: grid; gap: 5px; margin: 12px 0 0; padding-left: 19px; }
.sf-error-link { padding: 0; border: 0; background: transparent; color: #662C1B !important; font-size: 13px !important; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.sf-notice .sf-inline-actions { margin-bottom: 0; }

.sf-editor-heading { margin: 2px 0 27px; }
.sf-editor-heading > .sf-text-link { margin-bottom: 28px; }
.sf-editor-title-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 17px; }
.sf-editor-title-row .sf-eyebrow { margin-bottom: 11px !important; }
.sf-editor-title-row h1 { font-size: 43px; }
.sf-editor-title-row > .sf-badge { flex: 0 0 auto; }
.sf-editor-heading > p { max-width: 850px; margin: 0; font-size: 16px; }
.sf-editor-bar { position: sticky; z-index: 25; top: 98px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin: 0 0 28px; padding: 15px 18px; border: 1px solid #DCC18A; border-radius: 12px; background: #FFFDF8F5; box-shadow: 0 6px 22px #6D45100C; backdrop-filter: blur(12px); }
.sf-save-status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.sf-status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #687543; }
.sf-is-dirty .sf-status-dot { background: #B9810E; }
.sf-editor-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.sf-editor-buttons .sf-button { min-height: 43px; padding: 10px 15px; font-size: 13px; }
.sf-editor-buttons .sf-icon { width: 18px; height: 18px; }
.sf-editor-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: start; gap: 30px; }
.sf-editor-sidebar { position: sticky; top: 208px; min-width: 0; padding: 18px 0; }
.sf-editor-sidebar > .sf-eyebrow { margin-bottom: 15px !important; font-size: 10px; }
.sf-editor-sidebar nav { display: grid; gap: 5px; }
.sf-editor-sidebar nav a { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 8px; color: #725321; font-size: 10px; font-weight: 750; }
.sf-editor-sidebar nav a span { color: var(--sf-ink); font-size: 13px; font-weight: 650; }
.sf-editor-sidebar nav a:hover { background: #FFF0BF; }
.sf-sidebar-note { margin: 24px 0 0; padding: 19px; border: 1px solid #E2CCA0; border-radius: 12px; background: #FFF6DE; }
.sf-sidebar-note img { width: 36px; margin-bottom: 11px; }
.sf-sidebar-note p { margin: 0; font-size: 12px; line-height: 1.75; }
.sf-publication-panel { margin-top: 23px; padding-top: 21px; border-top: 1px solid var(--sf-line); }
.sf-publication-panel .sf-eyebrow { font-size: 10px; margin-bottom: 10px !important; }
.sf-publication-panel p:not(.sf-eyebrow) { margin-bottom: 12px; font-size: 12px; }
.sf-publication-panel .sf-text-link { font-size: 12px; }
.sf-unpublish { display: block; min-height: 40px; margin-top: 13px; padding: 7px 0; border: 0; border-radius: 2px; background: transparent; color: #743A23 !important; font-size: 12px !important; text-decoration: underline; text-underline-offset: 4px; }
.sf-editor-form, .sf-form-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.sf-editor-section { margin: 0 0 25px; padding: 31px; border: 1px solid #E1CCA2; border-radius: 17px; background: #FFFEFA; box-shadow: 0 6px 22px #75501805; scroll-margin-top: 206px; }
.sf-section-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 27px; padding-bottom: 22px; border-bottom: 1px solid #EADDC2; }
.sf-section-number { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; margin-top: 2px; border-radius: 9px; background: #FFE6A0; font-size: 12px; font-weight: 800; }
.sf-section-heading h2 { margin-bottom: 9px; font-size: 30px; }
.sf-section-heading p { margin: 0; font-size: 13px; line-height: 1.75; }
.sf-field { min-width: 0; margin-bottom: 23px; }
.sf-field > label, .sf-check-field > legend { display: block; margin-bottom: 8px; color: var(--sf-ink); font-size: 14px; font-weight: 750; line-height: 1.5; }
.sf-required, .sf-optional { margin-left: 6px; font-size: 10px; font-weight: 500; }
.sf-field-hint { margin: -2px 0 10px !important; color: #49351F; font-size: 12px; line-height: 1.75; }
.sf-field input, .sf-field textarea, .sf-field select { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #C8B48C; border-radius: 8px; outline: 0; background: #FFFEFC; color: var(--sf-ink); font-size: 16px; line-height: 1.65; scroll-margin-top: 235px; }
.sf-field textarea { resize: vertical; min-height: 90px; }
.sf-field select { padding-right: 30px; appearance: auto; }
.sf-field input::placeholder, .sf-field textarea::placeholder { color: #6B583C; opacity: 1; }
.sf-field input:focus, .sf-field textarea:focus, .sf-field select:focus { border-color: #626E38; outline: 2px solid #626E3830; outline-offset: 2px; }
.sf-field input[readonly] { border-style: dashed; background: #F6EEDC; font-size: 14px; }
.sf-field input:disabled, .sf-field textarea:disabled, .sf-field select:disabled { background: #F7F0E2; color: #4C3925; }
.sf-field-row { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 19px; }
.sf-field-row > * { min-width: 0; }
.sf-field-error input, .sf-field-error textarea { border-color: #AF633F; background: #FFF9F3; }
.sf-field-message { margin: 7px 0 0 !important; color: #81351F; font-size: 12px; line-height: 1.65; }
.sf-check-field { margin: 0 0 24px; padding: 0; border: 0; }
.sf-checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sf-checkbox { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 11px; border: 1px solid #E4D7BA; border-radius: 8px; background: #FFFBF0; font-size: 12px; cursor: pointer; }
.sf-checkbox:has(input:checked) { border-color: #D2A83C; background: #FFF0BD; }
.sf-checkbox input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: #9B7317; }
.sf-editor-subsection { margin: 28px 0; padding: 24px; border: 1px solid #E5D0A0; border-radius: 12px; background: #FFF6DD; }
.sf-editor-subsection h3 { margin-bottom: 21px; font-size: 25px; }
.sf-editor-subsection .sf-field:last-child { margin-bottom: 0; }
.sf-cover-preview { position: relative; margin-bottom: 20px; overflow: hidden; border: 1px solid #D4BC85; border-radius: 13px; background: #FFF2C9; aspect-ratio: 16 / 7; }
.sf-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.sf-cover-remove { position: absolute; right: 13px; bottom: 13px; min-height: 38px; padding: 8px 11px; font-size: 11px; }
.sf-cover-remove .sf-icon { width: 16px; height: 16px; }
.sf-cover-empty { display: flex; flex-direction: column; align-items: center; padding: 33px 22px; border: 1px dashed #D9BE77; border-radius: 12px; background: linear-gradient(120deg, #FFF2C7, #FFFBEE); text-align: center; }
.sf-cover-empty > .sf-icon { width: 36px; height: 36px; margin-bottom: 13px; color: #8E691B; }
.sf-cover-empty p { margin: 0 0 5px; font-family: var(--sf-serif); font-size: 23px; font-weight: 700; }
.sf-cover-empty span { font-size: 12px; }
.sf-inline-empty { display: flex; gap: 17px; align-items: flex-start; margin-bottom: 21px; padding: 22px; border: 1px dashed #DDC390; border-radius: 12px; background: #FFF8E6; }
.sf-inline-empty > .sf-icon { width: 28px; height: 28px; margin-top: 3px; color: #8E691B; }
.sf-inline-empty h3 { margin-bottom: 9px; font-size: 23px; }
.sf-inline-empty p { margin: 0; font-size: 13px; }
.sf-entry-list { display: grid; gap: 22px; margin-bottom: 22px; }
.sf-entry-list:empty { margin: 0; }
.sf-entry-card { min-width: 0; padding: 24px; border: 1px solid #DEC18A; border-radius: 13px; background: #FFF8E9; }
.sf-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; padding-bottom: 13px; border-bottom: 1px solid #E3CFA4; }
.sf-entry-heading h3 { font-size: 25px; }
.sf-entry-card > .sf-field:last-child { margin-bottom: 0; }
.sf-media-extras { margin: 25px 0; padding-top: 23px; border-top: 1px solid #E3CFA4; }
.sf-aligned-action { align-self: end; margin-bottom: 24px; }
.sf-aligned-action .sf-button { font-size: 12px; }
.sf-reference-entry { padding: 21px; border: 1px solid #E1CCA2; border-radius: 11px; background: #FFF9EB; }
.sf-reference-entry .sf-field-row { grid-template-columns: .9fr 1.1fr; }
.sf-reference-entry .sf-field { margin-bottom: 8px; }
.sf-editor-end { display: flex; align-items: center; gap: 13px; margin: 14px 0 0 235px; padding: 23px 0 0; border-top: 1px solid #DFCAA1; }
.sf-editor-end > img { width: 33px; flex: 0 0 auto; }
.sf-editor-end > p { flex: 1; margin: 0; font-size: 12px; }
.sf-editor-end .sf-button { font-size: 13px; }

.sf-dialog { width: min(900px, calc(100vw - 40px)); min-height: 0; max-height: calc(100dvh - 48px); margin: auto; padding: 30px; overflow: auto; border: 1px solid #D4B570; border-radius: 20px; background: var(--sf-paper); box-shadow: 0 25px 100px #271A1840; }
.sf-dialog::backdrop { background: #2F211873; backdrop-filter: blur(3px); }
.sf-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.sf-dialog-heading .sf-eyebrow { margin-bottom: 9px !important; }
.sf-dialog-heading h2 { font-size: 33px; }
.sf-dialog-heading > .sf-icon-button { margin-top: -3px; }
.sf-upload-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 24px; border: 1px dashed #CBA54F; border-radius: 13px; background: #FFF1C2; }
.sf-upload-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #FFE39A; }
.sf-upload-icon .sf-icon { width: 27px; height: 27px; }
.sf-upload-panel h3 { margin-bottom: 7px; font-size: 24px; }
.sf-upload-panel p { margin: 0; font-size: 13px; }
.sf-upload-panel .sf-field-hint { margin-top: 7px !important; margin-bottom: 0 !important; font-size: 11px; }
.sf-upload-panel .sf-button { white-space: nowrap; }
.sf-media-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 29px 0 20px; }
.sf-media-library-heading h3 { font-size: 25px; }
.sf-media-library-heading .sf-search { width: 230px; }
.sf-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.sf-media-choice { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #DCC596; border-radius: 11px; background: #FFFEFA; text-align: left; }
.sf-media-choice:hover:not(:disabled) { border-color: #B58620; box-shadow: 0 5px 18px #75501813; }
.sf-media-thumbnail { display: flex; align-items: center; justify-content: center; width: 100%; height: 128px; overflow: hidden; border-bottom: 1px solid #E3CFA5; background: #FFF0BC; }
.sf-media-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.sf-media-thumbnail > .sf-icon { width: 39px; height: 39px; color: #866218; }
.sf-media-filename { display: block; width: 100%; margin-top: 12px; padding: 0 13px; overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.sf-media-detail { display: block; padding: 5px 13px 11px; font-size: 10px; }
.sf-media-use { display: flex; align-items: center; gap: 8px; margin: auto 13px 13px; font-size: 12px; font-weight: 700; }
.sf-media-use .sf-icon { width: 16px; height: 16px; }
.sf-media-empty { padding: 32px 20px; border: 1px solid #E1CCA2; border-radius: 12px; background: #FFFAEC; text-align: center; }
.sf-media-empty > .sf-icon { width: 34px; height: 34px; margin-bottom: 15px; }
.sf-media-empty h3 { margin-bottom: 12px; font-size: 26px; }
.sf-media-empty > p { max-width: 470px; margin: 0 auto 12px; font-size: 14px; }
.sf-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 21px; border-top: 1px solid #DFC99C; }
.sf-dialog-footer > p { max-width: 510px; margin: 0; font-size: 12px; }
.sf-dialog .sf-loading { min-height: 180px; }
.sf-confirm-dialog { max-width: 560px; padding: 29px; }
.sf-confirm-dialog .sf-dialog-heading h2 { font-size: 31px; }
.sf-confirm-body p { font-size: 15px; }
.sf-confirm-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--sf-line); }
.sf-confirm-actions .sf-button { font-size: 12px; }
.sf-dialog-error { padding: 12px; border: 1px solid #CCA083; border-radius: 8px; background: #FFF0E7; color: #662C1B; font-size: 13px !important; }

.sf-studio-footer { display: flex; align-items: center; gap: 22px; width: calc(100% - 64px); max-width: 1200px; margin: 0 auto; padding: 29px 0 32px; border-top: 1px solid var(--sf-line); }
.sf-studio-footer > span { font-family: var(--sf-serif); font-size: 22px; font-weight: 700; }
.sf-studio-footer > p { flex: 1; margin: 0; font-size: 12px; text-align: center; }
.sf-studio-footer > a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.sf-studio-footer > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sf-signout { padding-left: 19px; border-left: 1px solid var(--sf-line); }
.sf-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 38px 22px; background: radial-gradient(ellipse at 75% 25%, #FFE7A6, transparent 58%), #FFFDF8; }
.sf-gate-brand { display: block; width: 260px; margin-bottom: 23px; }
.sf-gate-card { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 590px; padding: 44px 46px; border: 1px solid #DDBB62; border-radius: 23px; background: #FFFCF3F0; box-shadow: 0 16px 55px #77501712; text-align: center; }
.sf-gate-card > img { width: 63px; margin-bottom: 20px; }
.sf-gate-card h1 { margin-bottom: 22px; font-size: 43px; }
.sf-gate-card > p:not(.sf-eyebrow) { margin-bottom: 27px; font-size: 16px; line-height: 1.8; }
.sf-gate-card > .sf-text-link { margin-top: 23px; }
.sf-gate-footer { margin: 25px 0 0 !important; font-family: var(--sf-serif); font-size: 17px; font-style: italic; }

@keyframes sf-spin { to { transform: rotate(360deg); } }
@keyframes sf-ginkgo-sway { 0% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(-3px); } 100% { transform: rotate(0); } }
.sf-spin { animation: sf-spin 1s linear infinite; }

@media (max-width: 1100px) {
  .sf-header-inner { gap: 18px; }
  .sf-brand { width: 200px; }
  .sf-studio-label { padding-left: 18px; }
  .sf-header-nav { gap: 18px; margin-left: 3px; font-size: 13px; }
  .sf-owner > span:not(.sf-owner-dot) { max-width: 115px; }
  .sf-welcome { gap: 29px; padding: 35px; }
  .sf-welcome-guide { padding: 24px; }
  .sf-welcome h1 { font-size: 45px; }
  .sf-stat { gap: 12px; padding: 19px; }
  .sf-stat-icon { width: 38px; height: 38px; }
  .sf-library-toolbar { align-items: stretch; }
  .sf-search { flex: 1 1 240px; max-width: 360px; }
  .sf-card-content { padding: 21px; }
  .sf-lesson-card h3 { font-size: 25px; }
  .sf-editor-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 24px; }
  .sf-editor-section { padding: 27px; }
  .sf-editor-end { margin-left: 209px; }
}

@media (max-width: 900px) {
  .sf-header-inner { min-height: 88px; }
  .sf-owner > span:not(.sf-owner-dot), .sf-owner-dot { display: none; }
  .sf-owner small { font-size: 11px; }
  .sf-welcome { grid-template-columns: 1fr; gap: 28px; padding: 35px; }
  .sf-welcome-copy > p:not(.sf-eyebrow) { max-width: 580px; }
  .sf-welcome h1 { font-size: 49px; }
  .sf-welcome-guide { display: grid; grid-template-columns: auto 1fr; gap: 10px 19px; padding: 24px; }
  .sf-welcome-guide > .sf-guide-leaf { float: none; grid-column: 1; grid-row: 1 / 3; margin: 0; width: 52px; }
  .sf-welcome-guide > .sf-eyebrow { grid-column: 2; max-width: none; margin: 0 0 5px !important; }
  .sf-welcome-guide ol { grid-column: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
  .sf-welcome-guide li { gap: 9px; }
  .sf-welcome-guide li > span { width: 22px; height: 22px; }
  .sf-welcome-guide li p { font-size: 11px; }
  .sf-welcome-guide strong { font-size: 12px; }
  .sf-stats { gap: 12px; }
  .sf-stat { flex-direction: column; align-items: flex-start; padding: 18px; }
  .sf-stat div > span { font-size: 11px; }
  .sf-lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-editor-bar { top: 88px; }
  .sf-editor-layout { grid-template-columns: 1fr; }
  .sf-editor-sidebar { position: static; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0; }
  .sf-editor-sidebar > .sf-eyebrow { display: none; }
  .sf-editor-sidebar nav { display: flex; flex-wrap: wrap; gap: 3px; }
  .sf-editor-sidebar nav a { gap: 8px; padding: 8px 10px; background: #FFF2CE; }
  .sf-sidebar-note { display: none; }
  .sf-publication-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; width: 100%; margin: 4px 0 2px; padding-top: 14px; }
  .sf-publication-panel .sf-eyebrow { margin: 0 !important; }
  .sf-publication-panel p:not(.sf-eyebrow) { margin: 0; }
  .sf-unpublish { margin: 0 0 0 auto; }
  .sf-editor-end { margin-left: 0; }
  .sf-editor-section { scroll-margin-top: 228px; }
  .sf-media-library-heading { align-items: flex-start; }
  .sf-media-library-heading .sf-search { flex: 0 1 230px; }
  .sf-studio-footer { flex-wrap: wrap; }
  .sf-studio-footer > p { text-align: left; }
}

@media (max-width: 680px) {
  .sf-header-inner, .sf-main, .sf-studio-footer { width: calc(100% - 36px); }
  .sf-header-inner { min-height: 82px; gap: 14px; }
  .sf-brand { width: 180px; }
  .sf-studio-label { padding-left: 14px; font-size: 21px; }
  .sf-header-nav { display: none; }
  .sf-main { padding-top: 24px; }
  .sf-welcome { padding: 28px; border-radius: 18px; }
  .sf-welcome h1 { font-size: 43px; }
  .sf-welcome-guide { display: block; padding: 22px; }
  .sf-welcome-guide > .sf-guide-leaf { float: right; width: 45px; margin: -5px -2px 5px 12px; }
  .sf-welcome-guide > .sf-eyebrow { margin-bottom: 19px !important; }
  .sf-welcome-guide ol { grid-template-columns: 1fr; gap: 15px; }
  .sf-welcome-guide strong { font-size: 14px; }
  .sf-welcome-guide li p { font-size: 12px; }
  .sf-welcome-guide li > span { width: 25px; height: 25px; }
  .sf-welcome-copy > .sf-button { width: 100%; }
  .sf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; margin-bottom: 34px; }
  .sf-stat { flex-direction: row; align-items: center; padding: 17px; }
  .sf-stat strong { font-size: 31px; }
  .sf-library-heading { align-items: flex-start; }
  .sf-library-heading h2 { font-size: 31px; }
  .sf-library-heading > .sf-button { padding: 10px 12px; font-size: 12px; }
  .sf-library-toolbar { gap: 16px; padding: 17px 0; }
  .sf-filter-group { gap: 5px; }
  .sf-filter-group button { gap: 6px; padding: 8px 9px; font-size: 11px; }
  .sf-search { width: 100%; max-width: none; flex: 1 1 100%; }
  .sf-search input { font-size: 16px; }
  .sf-search input::placeholder { font-size: 13px; }
  .sf-lesson-grid { gap: 17px; }
  .sf-card-content { padding: 21px; }
  .sf-lesson-card h3 { font-size: 25px; }
  .sf-card-top { gap: 8px; }
  .sf-reading-time { font-size: 10px; }
  .sf-card-actions { flex-wrap: wrap; gap: 8px; }
  .sf-notice { gap: 10px; padding: 16px; font-size: 13px; }
  .sf-notice > .sf-button { align-self: flex-start; }
  .sf-editor-title-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .sf-editor-title-row h1 { font-size: 37px; }
  .sf-editor-heading > p { font-size: 15px; }
  .sf-editor-bar { top: 82px; gap: 12px; padding: 12px; }
  .sf-save-status { font-size: 11px; }
  .sf-editor-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: 100%; }
  .sf-editor-buttons .sf-button { gap: 5px; min-height: 48px; padding: 8px; font-size: 11px; }
  .sf-editor-buttons .sf-icon { width: 16px; height: 16px; }
  .sf-editor-sidebar nav { gap: 6px; }
  .sf-editor-sidebar nav a { padding: 8px 10px; }
  .sf-editor-sidebar nav a span { font-size: 11px; }
  .sf-editor-section { padding: 24px; border-radius: 14px; scroll-margin-top: 225px; }
  .sf-section-heading { gap: 12px; }
  .sf-section-number { width: 30px; height: 30px; font-size: 11px; }
  .sf-section-heading h2 { font-size: 28px; }
  .sf-section-heading p { font-size: 12px; }
  .sf-field-row { gap: 15px; }
  .sf-field label, .sf-check-field legend { font-size: 13px; }
  .sf-field-hint { font-size: 12px; }
  .sf-checkbox-grid { gap: 8px; }
  .sf-checkbox { padding: 9px; gap: 7px; font-size: 11px; }
  .sf-editor-subsection { padding: 20px; }
  .sf-cover-preview { aspect-ratio: 4 / 3; }
  .sf-entry-card { padding: 20px; }
  .sf-media-extras .sf-field-row { grid-template-columns: 1fr; gap: 0; }
  .sf-media-extras .sf-field { margin-bottom: 12px; }
  .sf-aligned-action { margin-bottom: 22px; }
  .sf-reference-entry { padding: 17px; }
  .sf-reference-entry .sf-field-row { grid-template-columns: 1fr; }
  .sf-reference-entry .sf-field { margin-bottom: 10px; }
  .sf-editor-end { flex-wrap: wrap; gap: 11px; }
  .sf-editor-end > p { font-size: 12px; }
  .sf-editor-end .sf-button { width: 100%; }
  .sf-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 23px; border-radius: 16px; }
  .sf-dialog-heading h2 { font-size: 29px; }
  .sf-upload-panel { grid-template-columns: auto 1fr; gap: 14px; padding: 20px; }
  .sf-upload-panel > .sf-button { grid-column: 1 / -1; width: 100%; }
  .sf-upload-panel h3 { font-size: 23px; }
  .sf-media-library-heading { flex-direction: column; gap: 15px; }
  .sf-media-library-heading .sf-search { width: 100%; flex-basis: auto; }
  .sf-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .sf-media-thumbnail { height: 113px; }
  .sf-dialog-footer { gap: 15px; }
  .sf-dialog-footer > p { font-size: 11px; }
  .sf-confirm-actions { justify-content: stretch; }
  .sf-confirm-actions > * { flex: 1 1 auto; }
  .sf-studio-footer { justify-content: center; gap: 16px 20px; text-align: center; }
  .sf-studio-footer > p { flex: 1 1 100%; order: 2; text-align: center; }
  .sf-studio-footer > span { flex: 1 1 100%; }
  .sf-studio-footer > a { order: 3; }
  .sf-gate-card { padding: 33px 25px; }
  .sf-gate-card h1 { font-size: 36px; }
  .sf-gate-brand { width: 235px; }
}

@media (max-width: 480px) {
  .sf-header-inner { gap: 12px; }
  .sf-brand { width: 170px; }
  .sf-studio-label { padding-left: 12px; font-size: 20px; }
  .sf-owner { margin-left: auto; }
  .sf-owner small { padding: 3px 6px; font-size: 9px; }
  .sf-welcome { padding: 25px; }
  .sf-welcome h1 { font-size: 39px; }
  .sf-welcome-copy > p:not(.sf-eyebrow) { font-size: 15px; }
  .sf-stat { gap: 10px; padding: 15px; }
  .sf-stat-icon { width: 32px; height: 36px; }
  .sf-stat-icon .sf-icon { width: 18px; height: 18px; }
  .sf-stat div > span { font-size: 10px; }
  .sf-library-heading { flex-direction: column; gap: 17px; }
  .sf-library-heading > .sf-button { min-height: 43px; font-size: 13px; }
  .sf-library-heading h2 { font-size: 32px; }
  .sf-lesson-grid { grid-template-columns: 1fr; }
  .sf-lesson-card h3 { font-size: 28px; }
  .sf-card-content { padding: 25px; }
  .sf-card-actions { flex-wrap: nowrap; }
  .sf-topic { font-size: 11px; }
  .sf-reading-time { font-size: 12px; }
  .sf-notice { flex-wrap: wrap; }
  .sf-notice > .sf-icon-button { margin-left: auto; }
  .sf-notice > .sf-button { margin-left: 29px; }
  .sf-editor-section { padding: 22px 19px; }
  .sf-section-heading { gap: 10px; }
  .sf-section-heading h2 { font-size: 27px; }
  .sf-field-row { grid-template-columns: 1fr; gap: 0; }
  .sf-checkbox-grid { grid-template-columns: 1fr; }
  .sf-checkbox { font-size: 12px; }
  .sf-editor-subsection { padding: 18px; }
  .sf-entry-card { padding: 17px; }
  .sf-inline-empty { padding: 17px; gap: 13px; }
  .sf-inline-empty h3 { font-size: 22px; }
  .sf-inline-actions > .sf-button { width: 100%; font-size: 13px; }
  .sf-upload-panel { padding: 17px; }
  .sf-upload-icon { width: 39px; height: 43px; }
  .sf-media-thumbnail { height: 98px; }
  .sf-media-detail { font-size: 9px; }
  .sf-media-filename { font-size: 11px; }
  .sf-gate-card > .sf-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-studio *, .sf-studio *::before, .sf-studio *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .sf-studio { background: white; color: #222; }
  .sf-studio-header, .sf-studio-footer, .sf-editor-bar, .sf-editor-sidebar, .sf-editor-end, .sf-welcome-guide, .sf-welcome-branch, .sf-guide-leaf, .sf-studio button, .sf-dialog { display: none !important; }
  .sf-main { width: 100%; max-width: none; padding: 0; }
  .sf-editor-layout { display: block; }
  .sf-editor-section { break-inside: avoid; box-shadow: none; background: white; }
  .sf-studio input, .sf-studio textarea, .sf-studio select { background: white; color: #222; }
}

/* Keep the teaching guide close at hand without leaving an unsaved editor. */
.sf-welcome-help { display: flex; width: fit-content; margin-top: 19px; }
.sf-editor-top-links { float: right; margin: 0 0 14px 20px; }
@media (max-width: 880px) {
  .sf-header-nav .sf-header-guide { display: none; }
  .sf-header-nav { gap: 16px; margin-left: 0; font-size: 12px; }
}
@media (max-width: 680px) {
  .sf-editor-top-links { float: none; margin: 0 0 18px; }
}
