.rs-canvas { margin: 0 !important; background: #f7f8f6 !important; }
.rs-canvas #main-content { padding: 0; margin: 0; max-width: none; }
.rs-app { --rs-green: #216a53; --rs-dark: #173c2f; --rs-ink: #24342c; --rs-muted: #7a877f; --rs-line: #e6ebe6; --rs-bg: #f7f8f6; --rs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-family: var(--rs-font); font-size: 14px; line-height: 1.6; font-weight: 400; color: var(--rs-ink); text-align: left; background: var(--rs-bg); width: 100%; min-width: 300px; min-height: 100vh; isolation: isolate; -webkit-font-smoothing: antialiased; }
.rs-app *, .rs-app *::before, .rs-app *::after { box-sizing: border-box; }
.rs-app [hidden] { display: none !important; }
.rs-app h1, .rs-app h2, .rs-app h3, .rs-app h4, .rs-app p { font-family: inherit; color: inherit; padding: 0; }
.rs-app h1, .rs-app h2, .rs-app h3, .rs-app h4 { font-weight: 650; text-transform: none; letter-spacing: normal; }
.rs-app button, .rs-app input, .rs-app textarea, .rs-app select { font: inherit; letter-spacing: normal; text-transform: none; }
.rs-app button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; width: auto; border: 0; border-radius: 8px; padding: 8px 12px; background: transparent; color: inherit; cursor: pointer; box-shadow: none; text-decoration: none; line-height: 1.3; transition: background .18s, color .18s, border-color .18s, transform .18s; }
.rs-app button:hover { background: #edf1ec; color: var(--rs-dark); }
.rs-app button:disabled { opacity: .45; cursor: not-allowed; }
.rs-app button:focus-visible, .rs-app a:focus-visible, .rs-app summary:focus-visible { outline: 3px solid #90bba7; outline-offset: 3px; }
.rs-app a { color: var(--rs-green); text-decoration: none; box-shadow: none; }
.rs-app a:hover { color: #134b39; }
.rs-app svg { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.rs-app .rs-btn-primary { background: var(--rs-dark); color: #fff; padding: 11px 17px; border: 1px solid var(--rs-dark); font-weight: 550; box-shadow: 0 2px 3px #173c2f0b; }
.rs-app .rs-btn-primary:hover { background: #245641; border-color: #245641; color: #fff; }
.rs-app .rs-btn-secondary { background: #fff; border: 1px solid #dfe6df; padding: 10px 16px; }
.rs-app .rs-btn-danger { color: #a5483b; border: 1px solid #efdcd5; background: #fff9f7; }
.rs-app .rs-icon-button { width: 32px; height: 32px; min-height: 32px; padding: 7px; color: #8a968e; }
.rs-app .rs-icon-button:hover { color: var(--rs-green); }
.rs-app .rs-icon-button[data-action="remove-row"]:hover { color: #ac4d3b; background: #fff0ec; }
.rs-app .rs-brand { display: flex; align-items: center; gap: 11px; color: var(--rs-dark); flex: none; }
.rs-app .rs-brand-mark { width: 34px; height: 37px; display: grid; place-items: center; background: var(--rs-dark); color: #fff; border-radius: 10px 10px 10px 3px; }
.rs-app .rs-brand-mark svg { width: 21px; height: 21px; }
.rs-app .rs-brand-name { font-size: 17px; line-height: 1.25; font-weight: 680; letter-spacing: 1px; }
.rs-app .rs-brand-sub { color: #8e9b92; font-size: 9px; letter-spacing: 2px; margin-top: 4px; }
.rs-app .rs-top-separator { width: 1px; height: 21px; background: var(--rs-line); margin: 0 11px 0 16px; }
.rs-app .rs-top-location { color: #7d8981; font-size: 12px; }
.rs-app .rs-user { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--rs-line); padding-left: 16px; font-size: 12px; max-width: 140px; }
.rs-app .rs-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #5f7c64; background: #eaf0e7; flex: none; font-weight: 600; }
.rs-app .rs-user-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rs-app .rs-main { max-width: 1680px; margin: 0 auto; padding: 16px 40px 24px; }
.rs-app .rs-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.rs-app .rs-primary-actions, .rs-app .rs-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rs-app .rs-toolbar-actions { flex: 1; justify-content: flex-end; }
.rs-app .rs-toolbar :is(button, .rs-gallery-link) { min-height: 52px; padding: 13px 20px; font-size: 16px; gap: 9px; white-space: nowrap; }
.rs-app .rs-toolbar :is(button, .rs-gallery-link) svg { width: 22px; height: 22px; }
.rs-app .rs-workspace { --rs-panel-height: clamp(640px, calc(100vh - 160px), 1000px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.rs-app .rs-editor { min-width: 0; container-type: inline-size; background: #fff; border: 1px solid var(--rs-line); border-radius: 13px; box-shadow: 0 4px 15px #263c2f03; overflow: hidden; }
.rs-app .rs-document-meta { display: flex; align-items: center; gap: 11px; padding: 20px 23px 18px; }
.rs-app .rs-document-icon { width: 37px; height: 42px; display: grid; place-items: center; border: 1px solid #e2e9e1; border-radius: 7px; background: #f8faf7; color: var(--rs-green); }
.rs-app .rs-document-icon svg { width: 20px; height: 20px; }
.rs-app .rs-document-title { flex: 1; min-width: 0; }
.rs-app .rs-document-title input { padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; width: 100%; max-width: none; height: auto; line-height: 1.5; min-height: 26px; font-size: 17px; font-weight: 620; background: transparent; color: var(--rs-ink); }
.rs-app .rs-document-title input:focus { outline: 0; box-shadow: 0 1px 0 #87ad95; }
.rs-app .rs-document-title small { color: #59675f; font-size: 12px; }
.rs-app .rs-example-tag { font-size: 10px; border: 1px solid #e6e9dc; background: #f8f9f0; color: #91916b; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.rs-app .rs-editor-tabs { display: flex; gap: 25px; padding: 0 24px; border-bottom: 1px solid var(--rs-line); }
.rs-app .rs-editor-tabs button { min-height: 47px; padding: 8px 0 12px; border-radius: 0; position: relative; color: #59675f; font-size: 15px; background: transparent; }
.rs-app .rs-editor-tabs button[aria-selected="true"] { color: var(--rs-green); font-weight: 600; }
.rs-app .rs-editor-tabs button[aria-selected="true"]::after { content: ""; position: absolute; bottom: -1px; height: 2px; background: var(--rs-green); width: 100%; border-radius: 2px; }
.rs-app .rs-editor-tabs svg { width: 15px; height: 15px; }
.rs-app .rs-editor-body { max-height: 820px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #dce5da transparent; }
.rs-app .rs-completion { display: flex; align-items: center; gap: 12px; margin: 18px 23px 7px; padding: 11px 12px; background: #f6f8f4; border-radius: 7px; font-size: 12px; color: #536359; }
.rs-app .rs-completion-track { flex: 1; height: 4px; background: #e4ebdf; border-radius: 5px; overflow: hidden; }
.rs-app .rs-completion-bar { height: 100%; background: #93b497; border-radius: inherit; transition: width .25s; }
.rs-app .rs-completion strong { color: #386344; font-size: 12px; font-weight: 600; }
.rs-app details.rs-section { padding: 0 23px; border-bottom: 1px solid #eef1ed; }
.rs-app details.rs-section:last-child { border-bottom: 0; }
.rs-app details.rs-section > summary { list-style: none; min-height: 62px; display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.rs-app details.rs-section > summary::-webkit-details-marker { display: none; }
.rs-app .rs-section-icon { display: grid; place-items: center; color: #8e9d8f; }
.rs-app .rs-section-icon svg { width: 17px; height: 17px; }
.rs-app .rs-section-name { font-size: 16px; font-weight: 600; }
.rs-app .rs-section-number { color: #657368; font-size: 12px; font-weight: 400; letter-spacing: 0; margin-left: 2px; }
.rs-app .rs-section-count { padding: 0 5px; font-size: 12px; border: 1px solid #d5ded5; border-radius: 4px; color: #536359; }
.rs-app .rs-section-chevron { margin-left: auto; color: #8f9d91; }
.rs-app .rs-section-chevron svg { width: 14px; height: 14px; transition: transform .18s; }
.rs-app details[open] > summary .rs-section-chevron svg { transform: rotate(180deg); }
.rs-app .rs-section-content { padding: 0 0 21px; }
.rs-app .rs-section-settings { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rs-line); }
.rs-app .rs-section-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 8px; }
.rs-app .rs-section-tools button { font-size: 12px; }
.rs-app .rs-section-name, .rs-app .rs-entry-label, .rs-app .rs-order-row > span { min-width: 0; overflow-wrap: anywhere; }
.rs-app .rs-custom-section-add { padding: 20px 23px; }
.rs-app .rs-custom-section-add p { margin: 8px 0 0; font-size: 12px; color: #657368; }
.rs-app .rs-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; row-gap: 14px; }
.rs-app .rs-field { display: block; margin: 0; color: #394a40; font-size: 14px; font-weight: 500; text-transform: none; }
.rs-app .rs-field-label { display: block; margin-bottom: 6px; }
.rs-app .rs-format-tools { display: flex; align-items: center; gap: 3px; margin: -1px 0 6px; }
.rs-app .rs-format-tools button { min-width: 28px; min-height: 27px; height: 27px; padding: 3px 7px; border: 1px solid #dfe7df; border-radius: 5px; background: #f8faf7; color: #526258; font-size: 13px; }
.rs-app .rs-format-tools button:hover { background: #edf4ec; color: var(--rs-green); }
.rs-app .rs-format-tools small { margin-left: 5px; color: #8a978d; font-size: 11px; }
.rs-app .rs-optional { color: #657368; margin-left: 5px; font-size: 12px; }
.rs-app .rs-field input, .rs-app .rs-field textarea { display: block; width: 100%; max-width: none; min-width: 0; margin: 0; border: 1px solid #cbd5cc; border-radius: 6px; padding: 10px 12px; line-height: 1.6; min-height: 46px; color: #24342c; background: #fff; outline: none; box-shadow: none; font-size: 16px; font-weight: 400; transition: border-color .18s, box-shadow .18s; }
.rs-app .rs-field textarea { min-height: 118px; resize: vertical; }
.rs-app .rs-field input::placeholder, .rs-app .rs-field textarea::placeholder { color: #6c786f; opacity: 1; }
.rs-app .rs-field input:focus, .rs-app .rs-field textarea:focus { border-color: #82ad94; box-shadow: 0 0 0 3px #e9f1e9; }
.rs-app .rs-field input:disabled { background: #f5f7f3; color: #a3ada2; }
.rs-app .rs-field input[aria-invalid="true"] { border-color: #ca8570; }
.rs-app .rs-full-width { grid-column: 1 / -1; }
.rs-app .rs-field-tip { display: flex; align-items: flex-start; gap: 6px; color: #59675f; font-size: 12px; margin: 10px 0 0; }
.rs-app .rs-field-tip svg { width: 13px; height: 13px; }
.rs-app .rs-entry-card { padding: 13px; border: 1px solid #e7ece5; border-radius: 8px; background: #fcfdfb; margin-bottom: 11px; }
.rs-app .rs-entry-card .rs-form-grid { gap: 12px; }
.rs-app .rs-entry-top { display: flex; align-items: center; justify-content: space-between; margin: -3px -5px 9px 0; }
.rs-app .rs-entry-label { font-size: 12px; color: #59675f; letter-spacing: 0; }
.rs-app .rs-entry-buttons { display: flex; align-items: center; gap: 0; }
.rs-app .rs-entry-buttons button { width: 27px; min-height: 27px; height: 27px; padding: 5px; }
.rs-app .rs-entry-buttons svg { width: 14px; height: 14px; }
.rs-app .rs-checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #455448; margin-top: 8px; font-weight: 400; cursor: pointer; }
.rs-app .rs-checkbox input { width: 13px; height: 13px; margin: 0; accent-color: var(--rs-green); }
.rs-app .rs-add-row { width: 100%; border: 1px dashed #b8cbb9; border-radius: 7px; background: #fafcf8; color: #386344; font-size: 14px; min-height: 42px; }
.rs-app .rs-add-row svg { width: 14px; height: 14px; }
.rs-app .rs-editor-footer { border-top: 1px solid var(--rs-line); padding: 13px 23px; display: flex; align-items: center; gap: 7px; color: #59675f; font-size: 12px; }
.rs-app .rs-editor-footer[data-tone="error"] { color: #ab634d; }
.rs-app .rs-editor-footer svg { width: 13px; height: 13px; }
.rs-app .rs-preview { min-width: 0; grid-column: 2; grid-row: 2; }
.rs-app .rs-preview-toolbar { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 44px; gap: 12px; padding: 0 2px 13px; }
.rs-app .rs-preview-heading { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 550; }
.rs-app .rs-live-dot { width: 5px; height: 5px; background: #80a388; border-radius: 50%; }
.rs-app .rs-preview-heading small { font-size: 9px; color: #a6afa6; font-weight: 400; margin-left: 3px; }
.rs-app .rs-preview-actions { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #8a978d; }
.rs-app .rs-preview-actions button { min-height: 26px; width: 26px; height: 26px; padding: 5px; }
.rs-app .rs-preview-actions svg { width: 13px; height: 13px; }
.rs-app .rs-preview-actions [data-role="zoom"] { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; font-size: 10px; }
.rs-app .rs-divider { width: 1px; height: 13px; background: #dce4db; margin: 0 6px; }
.rs-app .rs-preview-stage { position: relative; padding: 25px; border: 1px solid #e8ece5; border-radius: 10px; min-height: 420px; background: #edf1eae6; background-image: radial-gradient(#c4d0c155 .65px, transparent .65px); background-size: 12px 12px; overflow: auto; max-height: 1060px; scrollbar-width: auto; scrollbar-color: #8a9d8d #e5ebe2; }
.rs-app .rs-preview-stage:focus-visible { outline: 3px solid #90bba7; outline-offset: 3px; }
.rs-app .rs-paper-mount { position: relative; margin: 0 auto; }
.rs-app .rs-preview-frame { display: block; position: absolute; top: 0; left: 0; border: 0; background: transparent; width: 794px; max-width: none !important; transform-origin: top left; }
.rs-app .rs-preview-caption { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; color: #96a18f; font-size: 10px; margin-top: 14px; text-align: center; }
.rs-app .rs-preview-caption svg { width: 12px; height: 12px; }
.rs-app .rs-tip-card { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; border: 1px solid #e9ebe0; border-radius: 9px; padding: 15px 17px; background: #f8f8ef; }
.rs-app .rs-tip-icon { color: #9da26d; margin-top: 1px; }
.rs-app .rs-tip-card h3 { font-size: 11px; font-weight: 550; color: #7d8664; margin: 0 0 4px; }
.rs-app .rs-tip-card p { font-size: 10px; color: #a0a58b; margin: 0; line-height: 1.9; }
.rs-app .rs-bottom-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; color: #a5afa5; font-size: 10px; margin-top: 24px; letter-spacing: .5px; }
.rs-app .rs-bottom-note span { color: #c1c9bd; }
.rs-app .rs-notice { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 20px; border: 1px solid #e0e8dc; border-radius: 8px; background: #f0f5ed; color: #71856c; font-size: 11px; }
.rs-app .rs-notice[data-tone="error"] { background: #fff8f2; border-color: #f0dfce; color: #996940; }
.rs-app .rs-notice-message { flex: 1; }
.rs-app .rs-notice-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.rs-app .rs-notice button { min-height: 28px; font-size: 11px; padding: 5px 9px; border: 1px solid currentColor; }
.rs-app .rs-design-panel { padding: 23px; }
.rs-app .rs-design-label { display: block; margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.rs-app .rs-design-label small { font-size: 12px; font-weight: 400; color: #59675f; margin-left: 8px; }
.rs-app .rs-design-group + .rs-design-group { margin-top: 28px; }
.rs-app .rs-font-control { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rs-app .rs-font-control .rs-design-label { margin: 0; }
.rs-app .rs-font-control select { width: 110px; min-height: 42px; padding: 8px 12px; border: 1px solid #cbd5cc; border-radius: 6px; background: #fff; color: var(--rs-ink); font-size: 16px; }
.rs-app .rs-layout-sliders { display: grid; gap: 18px; margin-top: 22px; }
.rs-app .rs-layout-slider { display: block; margin: 0; color: #394a40; font-size: 14px; font-weight: 500; }
.rs-app .rs-slider-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 5px; }
.rs-app .rs-slider-heading output { min-width: 52px; padding: 0; color: #59675f; font: inherit; font-variant-numeric: tabular-nums; text-align: right; }
.rs-app .rs-layout-slider input[type="range"] { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 32px; min-height: 32px; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; accent-color: var(--rs-green); cursor: pointer; }
.rs-app .rs-layout-slider input::-webkit-slider-runnable-track { height: 8px; border: 0; border-radius: 4px; background: linear-gradient(to right, var(--rs-green) var(--range-progress), #e6ebe6 var(--range-progress)); }
.rs-app .rs-layout-slider input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border: 3px solid var(--rs-green); border-radius: 50%; background: #fff; }
.rs-app .rs-layout-slider input::-moz-range-track { height: 8px; border: 0; border-radius: 4px; background: #e6ebe6; }
.rs-app .rs-layout-slider input::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--rs-green); }
.rs-app .rs-layout-slider input::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid var(--rs-green); border-radius: 50%; background: #fff; }
.rs-app .rs-layout-slider input:focus-visible, .rs-app .rs-font-control select:focus-visible { outline: 3px solid #90bba7; outline-offset: 3px; }
.rs-app .rs-template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.rs-app button.rs-template { display: block; min-width: 0; padding: 12px 12px 10px; border: 1px solid #e3e9df; border-radius: 8px; background: #f7f9f4; text-align: center; }
.rs-app button.rs-template[aria-pressed="true"] { background: #f0f6ed; border-color: #82a989; box-shadow: 0 0 0 1px #82a989; }
.rs-app .rs-template-paper { display: flex; flex-direction: column; gap: 5px; background: white; padding: 14px 13px; width: 100%; aspect-ratio: 1 / 1.2; box-shadow: 0 1px 7px #27412a08; }
.rs-app .rs-template-paper i { display: block; height: 2px; background: #d9e2d8; width: 100%; }
.rs-app .rs-template-paper i:nth-child(1) { width: 33%; height: 4px; background: #56775d; margin-bottom: 4px; }
.rs-app .rs-template-paper i:nth-child(2) { width: 47%; margin-bottom: 5px; }
.rs-app .rs-template-paper i:nth-child(3), .rs-app .rs-template-paper i:nth-child(7) { width: 25%; height: 3px; background: #90ac91; margin-top: 9px; }
.rs-app .rs-template-paper i:nth-child(6), .rs-app .rs-template-paper i:nth-child(10) { width: 71%; }
.rs-app .rs-template-classic i:nth-child(1), .rs-app .rs-template-classic i:nth-child(2) { align-self: center; }
.rs-app .rs-template-classic i:nth-child(3), .rs-app .rs-template-classic i:nth-child(7) { width: 100%; background: #b0bcaf; height: 1px; }
.rs-app .rs-template-minimal { gap: 7px; }
.rs-app .rs-template-duotone { position: relative; padding-left: 39%; background: linear-gradient(90deg, #197e87 0 28%, #f2f9f9 28%, #fff 100%); }
.rs-app .rs-template-duotone::before { content: ""; position: absolute; left: 6%; top: 15px; width: 16%; aspect-ratio: 3 / 4; background: #dcebee; border: 2px solid #fff; }
.rs-app .rs-template-duotone i:nth-child(1), .rs-app .rs-template-duotone i:nth-child(3), .rs-app .rs-template-duotone i:nth-child(7) { background: #197e87; }
.rs-app .rs-photo-editor { display: flex; align-items: flex-start; gap: 16px; padding: 14px; margin-bottom: 20px; border: 1px solid var(--rs-line); border-radius: 8px; background: #f8faf7; }
.rs-app .rs-photo-thumbnail { flex: none; display: block; width: 72px; height: 96px; object-fit: contain; background: #fff; border: 1px solid #dce5de; border-radius: 4px; }
.rs-app .rs-photo-controls { min-width: 0; }
.rs-app .rs-photo-controls strong { display: block; font-size: 14px; }
.rs-app .rs-photo-controls small { margin-left: 6px; font-size: 12px; font-weight: 400; color: #718077; }
.rs-app .rs-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.rs-app .rs-photo-actions button { min-height: 34px; padding: 7px 10px; font-size: 13px; }
.rs-app .rs-photo-controls p { margin: 0; font-size: 12px; line-height: 1.6; color: #65776a; }
.rs-app .rs-template-minimal i:nth-child(1), .rs-app .rs-template-minimal i:nth-child(2) { width: 65%; height: 3px; background: #6d7d71; }
.rs-app .rs-template-sidebar { flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 5px; }
.rs-app .rs-template-sidebar i:nth-child(1) { width: 28%; height: 100%; background: #75917f; }
.rs-app .rs-template-sidebar i:not(:nth-child(1)) { width: 62%; }
.rs-app .rs-template-editorial i:nth-child(1) { width: 75%; height: 5px; background: #63776b; }
.rs-app .rs-template-editorial i:nth-child(3), .rs-app .rs-template-editorial i:nth-child(7) { width: 90%; height: 1px; background: #9cad9f; }
.rs-app .rs-template-mono { gap: 4px; }
.rs-app .rs-template-mono i { height: 2px; background: #84958a; }
.rs-app .rs-template-name { display: block; font-size: 14px; color: #455448; margin-top: 12px; }
.rs-app .rs-template-note { display: block; margin-top: 3px; color: #8b978d; font-size: 10px; }
.rs-app .rs-color-options { display: flex; gap: 15px; }
.rs-app button.rs-color { width: 32px; height: 32px; min-height: 32px; padding: 5px; border-radius: 50%; border: 1px solid transparent; }
.rs-app .rs-color span { width: 21px; height: 21px; border-radius: 50%; background: var(--swatch); display: grid; place-items: center; color: #fff; }
.rs-app .rs-color svg { display: none; width: 13px; height: 13px; }
.rs-app .rs-color[aria-pressed="true"] { border-color: var(--swatch); }
.rs-app .rs-color[aria-pressed="true"] svg { display: block; }
.rs-app .rs-segmented { display: flex; gap: 3px; padding: 4px; background: #f2f5ee; border: 1px solid #e9ede3; border-radius: 8px; }
.rs-app .rs-segmented button { flex: 1; font-size: 11px; color: #96a08f; min-height: 30px; border-radius: 5px; }
.rs-app .rs-segmented button[aria-pressed="true"] { background: #fff; color: #537451; box-shadow: 0 1px 5px #273d2c09; }
.rs-app .rs-design-panel .rs-segmented button { font-size: 14px; color: #59675f; }
.rs-app .rs-design-panel .rs-segmented button[aria-pressed="true"] { color: #216a53; font-weight: 600; }
.rs-app .rs-order-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eff2eb; color: #455448; font-size: 14px; }
.rs-app .rs-order-row > svg { width: 13px; height: 13px; color: #aab7a3; }
.rs-app .rs-order-row span { flex: 1; }
.rs-app .rs-order-row button { width: 27px; min-height: 27px; height: 27px; }
.rs-app .rs-order-row button svg { width: 13px; height: 13px; }
.rs-app .rs-mobile-switch { display: none; }
.rs-app .rs-toast { position: fixed; z-index: 100001; bottom: 26px; left: 50%; transform: translateX(-50%); max-width: min(90vw, 540px); padding: 12px 19px; border-radius: 9px; background: #213d2fea; color: #f5f9f0; box-shadow: 0 8px 25px #173c2f25; font-size: 12px; text-align: center; }
.rs-app .rs-dialog { width: min(450px, calc(100vw - 36px)); padding: 29px; border: 1px solid #e4e9dd; border-radius: 16px; background: #fff; color: var(--rs-ink); box-shadow: 0 25px 100px #17352426; font-family: var(--rs-font); }
.rs-app .rs-dialog::backdrop { background: #14291f60; backdrop-filter: blur(4px); }
.rs-app .rs-dialog h2 { font-size: 19px; letter-spacing: -.5px; margin: 0 0 11px; }
.rs-app .rs-dialog p { color: #7a8776; font-size: 12px; line-height: 1.9; margin: 0 0 19px; white-space: pre-line; }
.rs-app .rs-dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.rs-app .rs-dialog-actions button { font-size: 12px; }
.rs-app .rs-feedback-dialog { width: min(520px, calc(100vw - 32px)); padding: 20px; }
.rs-app .rs-feedback-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rs-app .rs-feedback-heading h2 { margin: 0; }
.rs-app .rs-feedback-heading button { flex: none; width: 32px; height: 32px; min-height: 32px; padding: 0; font-size: 24px; line-height: 1; }
.rs-app .rs-feedback-dialog img { display: block; width: auto; max-width: 100%; max-height: min(70vh, 680px); height: auto; margin: 0 auto; object-fit: contain; }
.rs-app .rs-versions-dialog { width: min(560px, calc(100vw - 32px)); }
.rs-app .rs-version-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rs-line); }
.rs-app .rs-version-row strong, .rs-app .rs-version-row small { display: block; }
.rs-app .rs-version-row small { margin-top: 3px; color: #8a978d; font-size: 11px; }
.rs-app .rs-version-row > span { display: flex; gap: 5px; flex-shrink: 0; }
.rs-app .rs-version-row button { min-height: 30px; padding: 6px 9px; font-size: 11px; border: 1px solid #dfe7df; }
.rs-app .rs-version-empty { color: #8a978d; font-size: 13px; }
.rs-app .rs-share-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 30px; border-radius: 16px; }
.rs-app .rs-share-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.rs-app .rs-share-heading h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.rs-app .rs-share-heading > div { flex: 1; min-width: 0; }
.rs-app .rs-share-heading > button { flex: none; margin-left: auto; align-self: flex-start; padding: 6px 0; white-space: nowrap; color: #657368; font-size: 12px; }
.rs-app .rs-share-mark { display: grid; place-items: center; flex: 0 0 46px; height: 46px; background: #edf4ee; border-radius: 12px; color: var(--rs-green); }
.rs-app .rs-share-mark svg { width: 23px; height: 23px; }
.rs-app .rs-share-dialog p { color: #59675f; font-size: 14px; }
.rs-app .rs-share-heading p { margin: 3px 0 0; font-size: 12px; }
.rs-app .rs-share-status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.rs-app .rs-share-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 5px; background: #f1f3f0; color: #657368; font-size: 12px; font-weight: 600; }
.rs-app .rs-share-status i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.rs-app .rs-share-status[data-published="true"] { background: #eaf4ee; color: var(--rs-green); }
.rs-app .rs-share-time { color: #657368; font-size: 12px; }
.rs-app .rs-share-dialog .rs-share-pending { margin: -5px 0 20px; color: #86632f; font-size: 12px; }
.rs-app .rs-share-address { padding: 15px; margin-bottom: 24px; border: 1px solid #e1e9e0; border-radius: 9px; background: #f7faf6; }
.rs-app .rs-share-link-label { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.rs-app .rs-share-link-label span { color: #657368; font-size: 11px; font-weight: 400; }
.rs-app .rs-share-link { display: flex; gap: 7px; }
.rs-app .rs-share-link input { min-width: 0; width: 100%; flex: 1; padding: 9px; border: 1px solid #dbe4db; border-radius: 6px; font-size: 13px; background: #fff; color: #455448; }
.rs-app .rs-share-link button, .rs-app .rs-share-link a { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 8px; border: 1px solid #dbe4db; border-radius: 6px; background: #fff; color: var(--rs-green); }
.rs-app .rs-share-link button:hover, .rs-app .rs-share-link a:hover { background: #eaf4ee; border-color: #91b29c; }
.rs-app .rs-share-code-setting { margin-bottom: 24px; }
.rs-app .rs-share-code-control { display: flex; align-items: center; gap: 8px; }
.rs-app .rs-share-code-control input { flex: 1; min-width: 0; width: 100%; height: 44px; padding: 9px 11px; border: 1px solid #cbd5cc; border-radius: 6px; color: var(--rs-ink); background: #fff; font-size: 16px; }
.rs-app .rs-share-code-control input::placeholder { color: #7a877f; font-size: 12px; }
.rs-app .rs-share-code-control input:focus { outline: 2px solid #90bba7; outline-offset: 1px; }
.rs-app .rs-share-code-control button { flex: none; min-height: 44px; padding: 9px 12px; border: 1px solid #dbe4db; background: #f7faf6; color: var(--rs-green); font-size: 13px; white-space: nowrap; }
.rs-app .rs-share-code-setting p { margin: 8px 0 0; color: #657368; font-size: 12px; line-height: 1.7; }
.rs-app .rs-share-code-setting #rs-code-hint[data-changed="true"] { color: #86632f; }
.rs-app .rs-share-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.rs-app .rs-share-contacts legend { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.rs-app .rs-share-contacts label, .rs-app .rs-share-consent { display: flex; align-items: flex-start; gap: 8px; color: #394a40; font-size: 14px; cursor: pointer; }
.rs-app .rs-share-contacts label { align-items: center; padding: 12px; border: 1px solid #dfe6df; border-radius: 8px; }
.rs-app .rs-share-contacts label:has(input:checked) { border-color: #87ad95; background: #f3f8f1; }
.rs-app .rs-share-contacts label > svg { width: 16px; height: 16px; color: #6b8975; }
.rs-app .rs-share-contacts label > span { flex: 1; }
.rs-app .rs-share-dialog input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--rs-green); }
.rs-app .rs-share-contacts input[type="checkbox"] { margin: 0; }
.rs-app .rs-share-consent { margin-bottom: 20px; color: #657368; font-size: 12px; line-height: 1.8; }
.rs-app .rs-share-dialog .rs-dialog-actions { border-top: 1px solid #e6ebe6; padding-top: 20px; gap: 10px; }
.rs-app .rs-share-dialog .rs-dialog-actions .rs-btn-primary { margin-left: auto; min-height: 42px; padding: 11px 19px; font-size: 14px; }
.rs-app .rs-share-dialog .rs-dialog-actions .rs-btn-danger { border: 0; background: transparent; padding-left: 0; color: #976557; }
.rs-app .rs-share-dialog [data-share-message]:empty { display: none; }
.rs-app .rs-share-login { padding: 8px 12px; }
@media (max-width: 480px) {
    .rs-app .rs-share-dialog { padding: 22px 18px; }
    .rs-app .rs-share-heading { gap: 10px; }
    .rs-app .rs-share-heading h2 { font-size: 20px; }
    .rs-app .rs-share-contacts label { padding: 11px 9px; gap: 6px; font-size: 13px; }
    .rs-app .rs-share-address { padding: 12px; }
}
.rs-app .rs-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 600px; color: #5b7461; }
.rs-app .rs-loading-mark { display: grid; place-items: center; width: 52px; height: 58px; border-radius: 16px 16px 16px 4px; background: var(--rs-dark); color: #fff; font-size: 28px; margin-bottom: 18px; font-family: Georgia, serif; }
.rs-app .rs-loading p { font-size: 12px; color: #8f9b8b; }
.rs-app .rs-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rs-app.rs-access-screen { display: grid; place-items: center; min-height: 75vh; padding: 36px 20px; }
.rs-app .rs-access-card { width: min(100%, 480px); padding: 45px 32px; background: #fff; border: 1px solid var(--rs-line); border-radius: 18px; text-align: center; }
.rs-app .rs-access-card .rs-loading-mark { margin: 0 auto 23px; }
.rs-app .rs-access-card h1 { font-size: 23px; margin: 0 0 14px; line-height: 1.5; }
.rs-app .rs-access-card p { color: #889682; font-size: 13px; margin: 0 0 24px; }
.rs-app .rs-access-card .rs-access-link { display: inline-block; padding: 11px 24px; background: var(--rs-dark); color: #fff; border-radius: 8px; font-size: 13px; }
.rs-app .rs-access-card small { display: block; font-size: 9px; letter-spacing: 1.5px; margin-top: 28px; color: #abb5a4; }
@keyframes rs-pulse { 50% { opacity: .35; } }
@container (max-width: 440px) { .rs-app .rs-form-grid { grid-template-columns: 1fr; } }
@media (min-width: 801px) {
    .rs-app .rs-editor { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; height: var(--rs-panel-height); }
    .rs-app .rs-document-meta, .rs-app .rs-editor-tabs, .rs-app .rs-editor-footer { flex-shrink: 0; }
    .rs-app .rs-editor-body { flex: 1; min-height: 0; max-height: none; }
    .rs-app .rs-preview-stage { height: var(--rs-panel-height); min-height: 0; max-height: none; }
}
@media (min-width: 1600px) { .rs-app .rs-workspace { column-gap: 35px; } }
@media (max-width: 1180px) { .rs-app .rs-main { padding: 12px 24px 24px; } .rs-app .rs-toolbar-actions { justify-content: flex-start; } .rs-app .rs-workspace { column-gap: 20px; } .rs-app .rs-preview-stage { padding: 17px; } }
@media (max-width: 800px) {
    .rs-app .rs-brand-name { font-size: 15px; } .rs-app .rs-brand-sub { font-size: 8px; }
    .rs-app .rs-main { padding: 12px 16px 24px; }
    .rs-app .rs-toolbar { gap: 10px; }
    .rs-app .rs-primary-actions, .rs-app .rs-toolbar-actions { gap: 6px; }
    .rs-app .rs-toolbar :is(button, .rs-gallery-link) { min-height: 44px; padding: 10px 12px; font-size: 14px; gap: 7px; }
    .rs-app .rs-toolbar :is(button, .rs-gallery-link) svg { width: 18px; height: 18px; }
    .rs-app .rs-toolbar-actions [data-action="start-blank"] { display: none; }
    .rs-app .rs-workspace { display: block; }
    .rs-app .rs-mobile-switch { display: flex; margin-bottom: 18px; }
    .rs-app .rs-mobile-switch button { min-height: 35px; }
    .rs-app .rs-mobile-switch svg { width: 14px; height: 14px; }
    .rs-app[data-mobile-view="editor"] .rs-workspace > .rs-preview-toolbar { display: none; }
    /* Keep the iframe laid out while editing so pagination can still be measured. */
    .rs-app[data-mobile-view="editor"] .rs-preview { position: absolute; left: -100000px; width: 794px; visibility: hidden; pointer-events: none; }
    .rs-app[data-mobile-view="preview"] .rs-editor { display: none; }
    .rs-app .rs-editor-body { max-height: none; }
    .rs-app .rs-preview-stage { max-height: none; }
    .rs-app .rs-notice { align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 11px 13px; }
    .rs-app .rs-notice-message { flex-basis: calc(100% - 35px); }
    .rs-app .rs-notice-actions { padding-left: 29px; }
    .rs-app .rs-notice button { font-size: 10px; }
    .rs-app .rs-document-meta { padding: 19px; }
    .rs-app .rs-editor-tabs { gap: 12px; padding: 0 19px; }
    .rs-app .rs-editor-tabs button { font-size: 13px; }
    .rs-app .rs-editor-tabs svg { width: 13px; height: 13px; }
    .rs-app details.rs-section { padding: 0 19px; }
    .rs-app .rs-completion { margin-left: 19px; margin-right: 19px; }
    .rs-app .rs-design-panel { padding: 20px; }
    .rs-app .rs-tip-card { margin-top: 16px; }
}
@media (max-width: 370px) { .rs-app .rs-form-grid { grid-template-columns: 1fr; } .rs-app .rs-brand-sub { display: none !important; } .rs-app .rs-document-meta { gap: 8px; } .rs-app .rs-main { padding: 10px 10px 20px; } .rs-app .rs-editor-tabs { gap: 7px; padding: 0 12px; } .rs-app .rs-editor-tabs button { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .rs-app *, .rs-app *::before, .rs-app *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.rs-template-gallery { --gallery-ink: #20372c; --gallery-muted: #6e7c73; max-width: 1440px; margin: 0 auto; padding: 48px 32px 72px; color: var(--gallery-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.rs-gallery-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.rs-gallery-eyebrow { color: #28745b; font-size: 11px; font-weight: 700; letter-spacing: 3px; }
.rs-gallery-header h1 { margin: 8px 0 8px; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.rs-gallery-header p { margin: 0; color: var(--gallery-muted); font-size: 15px; }
.rs-gallery-editor-link, .rs-gallery-use { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; border-radius: 7px; background: #173c2f; color: #fff; text-decoration: none; white-space: nowrap; }
.rs-gallery-editor-link:hover, .rs-gallery-use:hover { background: #245641; color: #fff; }
.rs-app .rs-gallery-link { display: inline-flex; align-items: center; justify-content: center; color: var(--rs-ink); text-decoration: none; }
.rs-gallery-unavailable { display: block; color: #8b5f46; font-size: 12px; }
.rs-gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.rs-gallery-filters button { border: 1px solid #dce5de; border-radius: 999px; padding: 8px 16px; background: #fff; color: #59675f; cursor: pointer; font: inherit; }
.rs-gallery-filters button[aria-pressed="true"] { border-color: #23735d; background: #23735d; color: #fff; }
.rs-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rs-gallery-card { overflow: hidden; border: 1px solid #e0e8e1; border-radius: 10px; background: #fff; box-shadow: 0 8px 28px #23372c0d; }
.rs-gallery-preview { position: relative; aspect-ratio: 210 / 297; overflow: hidden; background: #f2f5f1; border-bottom: 1px solid #e4ebe5; }
.rs-gallery-preview iframe { position: absolute; top: 0; left: 50%; width: 794px; height: 1123px; border: 0; transform: translateX(-50%) scale(.48); transform-origin: top center; background: #fff; }
.rs-gallery-card-body { padding: 17px 18px 18px; }
.rs-gallery-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rs-gallery-card-heading h2 { margin: 0; font-size: 19px; }
.rs-gallery-card-heading span { color: #28745b; font-size: 12px; }
.rs-gallery-card-body p { min-height: 44px; margin: 8px 0 10px; color: var(--gallery-muted); font-size: 13px; line-height: 1.7; }
.rs-gallery-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.rs-gallery-tags span { padding: 4px 8px; border-radius: 4px; background: #f0f5ef; color: #527060; font-size: 11px; }
@media (max-width: 900px) { .rs-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rs-template-gallery { padding: 30px 16px 48px; } .rs-gallery-header { display: block; } .rs-gallery-editor-link { margin-top: 18px; } .rs-gallery-grid { grid-template-columns: 1fr; } }

/* Documents and editing controls stay inside the existing workspace. */
.rs-app .rs-documents-dialog { width: min(820px, calc(100vw - 32px)); max-height: 85vh; overflow: auto; }
.rs-app .rs-document-create { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.rs-app .rs-document-create input { flex: 1; min-width: 180px; border: 1px solid var(--rs-line); border-radius: 7px; padding: 10px 12px; }
.rs-app .rs-document-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rs-line); }
.rs-app .rs-document-row > div:first-child { min-width: 0; }
.rs-app .rs-document-row strong { display: block; overflow-wrap: anywhere; }
.rs-app .rs-document-row small { font-size: 11px; color: var(--rs-green); margin-left: 8px; }
.rs-app .rs-document-row span { display: block; font-size: 11px; color: var(--rs-muted); }
.rs-app .rs-document-row-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 3px; }
.rs-app .rs-document-row-actions button { font-size: 12px; padding: 5px 8px; }
.rs-app .rs-document-row-actions [data-document-action="delete"] { color: #a5483b; }
.rs-app .rs-history-tools { display: flex; flex-shrink: 0; gap: 5px; padding: 0 20px 8px; }
.rs-app .rs-history-tools button { min-height: 28px; font-size: 12px; padding: 5px 9px; border: 1px solid var(--rs-line); }
.rs-app .rs-format-tools { flex-wrap: wrap; }
.rs-app [data-rich-command="bold"] { font-weight: 700; }
.rs-app [data-rich-command="italic"] { font-style: italic; }
.rs-app [data-rich-command="underline"] { text-decoration: underline; }
.rs-app .rs-rich-editor { min-height: 118px; padding: 10px 12px; border: 1px solid #cbd5cc; border-radius: 6px; background: #fff; color: #24342c; font-size: 16px; line-height: 1.6; font-weight: 400; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
.rs-app .rs-rich-editor:focus { border-color: #82ad94; box-shadow: 0 0 0 3px #e9f1e9; }
.rs-app .rs-rich-editor:empty::before { content: attr(data-placeholder); color: #6c786f; pointer-events: none; }
.rs-app .rs-rich-editor ul, .rs-app .rs-rich-editor ol { margin: 0; padding-left: 24px; }
.rs-app .rs-rich-editor b, .rs-app .rs-rich-editor strong { font-weight: 700; }
.rs-app .rs-rich-editor i, .rs-app .rs-rich-editor em { font-style: italic; }
.rs-app .rs-rich-editor[aria-invalid="true"] { border-color: #ca8570; }
.rs-app .rs-rich-error { display: block; margin-top: 5px; color: #a5483b; }
.rs-app .rs-rich-error:empty { display: none; }
.rs-gallery-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rs-gallery-inspect { border: 0; background: transparent; color: #28745b; cursor: pointer; padding: 0 0 12px; }
@media (max-width: 600px) { .rs-app .rs-document-row { flex-direction: column; align-items: flex-start; gap: 6px; } .rs-app .rs-document-create input { width: 100%; } }

/* Visibility and pagination controls retain all editable content. */
.rs-app .rs-visibility-controls, .rs-app .rs-pagination-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.rs-app .rs-visibility-controls button { border: 1px solid #dce5de; background: #fff; font-size: 12px; padding: 7px 10px; }
.rs-app .rs-visibility-controls button[aria-pressed="true"] { border-color: #83ad98; background: #edf6f0; color: #216a53; }
.rs-app .rs-visibility-controls small { flex-basis: 100%; color: #69766e; font-size: 12px; }
.rs-app .rs-content-hidden { border-style: dashed; border-color: #a9b5ae; }
.rs-app .rs-hidden-badge { font-size: 11px; background: #edf0ec; color: #647168; border-radius: 4px; padding: 3px 6px; white-space: nowrap; }
.rs-app .rs-pagination-actions button { font-size: 13px; }

/* Gallery source selection and full, scrollable A4 previews. */
.rs-template-gallery *, .rs-template-gallery *::before, .rs-template-gallery *::after { box-sizing: border-box; }
.rs-template-gallery [hidden] { display: none !important; }
.rs-template-gallery button, .rs-template-gallery select { font: inherit; text-transform: none; letter-spacing: normal; }
.rs-gallery-source { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rs-gallery-source > div { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-gallery-source button, .rs-gallery-card-actions button, .rs-gallery-dialog button, .rs-gallery-source select, .rs-gallery-dialog select { width: auto; min-height: 38px; padding: 8px 12px; border: 1px solid #dce5de; border-radius: 7px; color: #254936; background: #fff; font-size: 14px; line-height: 1.4; }
.rs-gallery-source button, .rs-gallery-card-actions button, .rs-gallery-dialog button { cursor: pointer; }
.rs-gallery-source button[aria-pressed="true"] { border-color: #23735d; color: #fff; background: #23735d; }
.rs-gallery-source label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rs-gallery-source select { max-width: min(320px, 65vw); }
.rs-gallery-source-status { color: #637268; font-size: 13px; line-height: 1.8; margin: 12px 0 22px; }
.rs-gallery-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rs-gallery-card-body .rs-gallery-page-note { min-height: 0; font-size: 12px; }
.rs-gallery-preview iframe { pointer-events: none; max-width: none !important; }
.rs-template-gallery button:focus-visible, .rs-template-gallery a:focus-visible, .rs-template-gallery select:focus-visible { outline: 3px solid #90bba7; outline-offset: 3px; }
.rs-template-gallery button:disabled { opacity: .5; cursor: not-allowed; }
.rs-gallery-dialog { width: min(1060px, calc(100vw - 24px)); max-width: none; height: min(920px, 92dvh); max-height: 92dvh; margin: auto; padding: 0; border: 1px solid #dce5de; border-radius: 12px; color: #20372c; background: #fff; overflow: hidden; }
.rs-gallery-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.rs-gallery-dialog::backdrop { background: #14291f88; }
.rs-gallery-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.rs-gallery-dialog h2 { margin: 0; font-family: inherit; font-weight: 600; font-size: 18px; line-height: 1.4; }
.rs-gallery-modal-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 18px 14px; font-size: 13px; }
.rs-gallery-modal-tools label { display: flex; align-items: center; gap: 6px; }
.rs-gallery-modal-tools .rs-gallery-use { margin-left: auto; font-size: 14px; }
.rs-gallery-large-stage { min-height: 0; min-width: 0; overflow: auto; background: #edf1ec; padding: 16px; overscroll-behavior: contain; }
.rs-gallery-large-mount { position: relative; width: 794px; margin: 0 auto; }
.rs-gallery-large-mount iframe { position: absolute; top: 0; left: 0; display: block; width: 794px; max-width: none !important; height: 1123px; border: 0; transform-origin: top left; background: #fff; }
@media (max-width: 600px) {
    .rs-gallery-dialog { width: calc(100vw - 12px); height: 94dvh; max-height: 94dvh; }
    .rs-gallery-dialog header { padding: 12px; }
    .rs-gallery-modal-tools { padding: 0 12px 10px; }
    .rs-gallery-modal-tools .rs-gallery-use { margin-left: 0; }
}
