:root {
  color-scheme: light;
  --accent: #7a1114;
  --accent-deep: #4f0c0e;
  --accent-soft: #f7eaea;
  --gold: #b9892a;
  --ink: #171717;
  --muted: #67605c;
  --line: #ded7d1;
  --paper: #fffdf9;
  --panel: rgba(255, 255, 255, 0.94);
  --reader-font-size: 14px;
  --office-title-size: 17px;
  --reader-font: Verdana, Arial, Helvetica, sans-serif;
  --topbar-offset: 88px;
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: var(--topbar-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.reader-inner .txt-verses,
.office-route-heading,
.office-route-subheading,
.office-route-end {
  -webkit-user-select: none;
  user-select: none;
}

button {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.loading,
.error {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: var(--accent);
}

.loading img {
  width: 56px;
  height: 102px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) calc(10px + var(--safe-right)) 9px calc(10px + var(--safe-left));
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.topbar-main {
  min-height: 36px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}

.brand-mark img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.app-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-title strong {
  display: block;
  overflow: hidden;
  font-size: var(--office-title-size);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  width: 36px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn:active,
.icon-btn.active {
  background: #eeeeee;
}

.icon-btn:disabled {
  color: #b8b0ab;
  cursor: default;
}

.schema-arrow-glyph {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.current-psalm-reference {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.current-psalm-reference[hidden] {
  display: none;
}

.sf-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.tabs[hidden] {
  display: none;
}

.tab-btn {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tab-btn[hidden] {
  display: none;
}

.index-schema-content {
  width: 100%;
  max-width: none;
  margin-top: 12px;
  font-size: 14px;
}

.index-schema-content .index-schema-panel {
  margin-bottom: 20px;
}

.index-schema-content .schema-table-wrap {
  overflow-x: auto;
}

.index-schema-content [hidden] {
  display: none !important;
}

.office-document-panel {
  margin-top: 12px;
  color: #1e2c35;
}

.office-document-panel h2 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 22px;
}

#office-document-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.office-document-heading-row,
.office-document-date,
.office-document-check {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.office-document-heading-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.office-document-title-row,
.office-document-date-navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

.office-document-title-row h2 {
  margin: 0;
}

.office-document-title-row button,
.office-document-date-navigation button {
  min-width: 34px;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-deep);
  font: 700 12px/1 system-ui, sans-serif;
  cursor: pointer;
}

.office-document-date {
  grid-template-columns: auto auto;
  align-items: center;
  font-size: 12px;
}

.office-document-date input[type="date"] {
  width: 132px;
  min-height: 34px;
  box-sizing: border-box;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: 700 12px/1 system-ui, sans-serif;
}

.office-document-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.office-document-compact-options {
  flex: 1 1 150px;
  margin: 0;
  padding: 0;
  border: 0;
}

.office-document-compact-options legend {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
}

.office-document-check {
  cursor: pointer;
}

.office-document-hours-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.office-document-hours {
  position: relative;
}

.office-document-hours summary {
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.office-document-hours-options {
  position: absolute;
  z-index: 3;
  inset: auto 0 auto 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px #0002;
}

.office-document-hours-options button {
  text-align: left;
}

.office-document-hours-options button[aria-pressed="true"] {
  font-weight: 800;
}

.office-document-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  line-height: 1.35;
}

.office-document-generate {
  flex: 1 1 150px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: var(--accent-deep);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.office-document-generate:disabled {
  cursor: wait;
  opacity: 0.65;
}

.office-document-status {
  min-height: 1.25em;
  margin: 0;
  color: #49606f;
  font-size: 13px;
}

.office-document-preview {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafb;
}

.office-document-preview h3,
.office-document-preview p {
  margin: 0 0 8px;
}

.office-document-preview-date {
  color: var(--muted);
  font-weight: 700;
}

.office-document-preview-intro {
  color: #49606f;
  font-size: 12px;
  line-height: 1.4;
}

.office-document-preview-office {
  padding: 11px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.office-document-preview-office h4 {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 15px;
}

.office-document-component-list,
.office-document-reference-list {
  display: grid;
  gap: 7px;
}

.office-document-reference-list {
  padding: 7px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 7px;
  background: #fff;
}

.office-document-reference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.office-document-component-link,
.office-document-component-missing,
.office-document-component-label {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.office-document-component-link {
  width: fit-content;
  color: var(--accent-deep);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

.office-document-component-missing {
  font-weight: 800;
}

.office-document-component-missing-word {
  color: #b42318;
}

.office-document-component-label {
  font-weight: 750;
}

.office-document-matins-nights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.office-document-matins-night {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
}

.office-document-matins-night h5 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 13px;
}

.office-document-antiphon {
  justify-self: end;
  white-space: nowrap;
}

body.office-preview-modal-open {
  overflow: hidden;
}

.office-preview-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.office-preview-modal[hidden] {
  display: none;
}

.office-preview-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(16, 29, 38, 0.58);
  cursor: default;
}

.office-preview-modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(78vh, 720px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.office-preview-modal-card header {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.office-preview-modal-card h3 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 17px;
}

.office-preview-modal-card header button {
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.office-preview-modal-body {
  overflow: auto;
  padding: 14px 2px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.office-preview-modal-external {
  width: fit-content;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px calc(16px + var(--safe-right)) 42px calc(16px + var(--safe-left));
}

.layout.index-closed {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
}

.index-panel {
  position: fixed;
  top: var(--topbar-offset);
  right: calc(10px + var(--safe-right));
  left: calc(10px + var(--safe-left));
  z-index: 30;
  width: auto;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  max-height: calc(100vh - var(--topbar-offset) - 14px);
  max-height: calc(100svh - var(--topbar-offset) - 14px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.index-panel.collapsed {
  display: none;
}

.settings-panel {
  position: fixed;
  top: var(--topbar-offset);
  right: calc(10px + var(--safe-right));
  left: calc(10px + var(--safe-left));
  z-index: 31;
  width: auto;
  max-width: 470px;
  max-height: calc(100vh - var(--topbar-offset) - 14px);
  max-height: calc(100svh - var(--topbar-offset) - 14px);
  margin: 0 auto;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.settings-panel.collapsed {
  display: none;
}

.settings-header {
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.settings-header-action {
  justify-self: start;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-deep);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.close-settings {
  justify-self: end;
}

.close-index {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.index-version {
  justify-self: start;
  color: var(--muted);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  min-width: 0;
  overflow-wrap: anywhere;
}

.settings-header-action:active {
  background: #eeeeee;
}

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

.settings-time-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.settings-section {
  margin: 0 0 12px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: #f5f2eb;
}

.settings-section legend {
  margin: 0 0 9px;
  padding: 0;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 800;
}

.reader-font-size-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reader-font-size-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.reader-font-size-label label {
  flex: 1;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.reader-font-size-label output {
  color: var(--muted);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.reader-font-size-controls {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.reader-font-size-controls input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}

.reader-font-size-stepper {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.reader-font-size-stepper:active {
  background: #f5f2eb;
}

.reader-font-size-preview-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.reader-font-size-preview {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: var(--reader-font);
  line-height: 1.2;
}

.reader-font-size-preview sup {
  color: var(--accent);
  font-size: 0.58em;
  font-weight: 800;
  vertical-align: super;
}

.reader-font-size-reset {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
}

.settings-cycle-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.settings-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 7px;
  background: #e7e4dc;
}

.settings-segment-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.settings-segment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-segment-option span {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.settings-segment-option input:checked + span {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.settings-schema-control {
  margin-top: 9px;
}

.settings-profile-section {
  margin-bottom: 12px;
}

.settings-select {
  width: 100%;
  min-height: 38px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.settings-cycle-option {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
}

.settings-cycle-option input {
  accent-color: var(--accent);
}

.settings-schema-option {
  width: 100%;
}

.settings-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.settings-time-row input {
  width: 90px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-deep);
  font: inherit;
  font-size: 14px;
  text-align: center;
}

.settings-action {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.settings-action.secondary {
  background: #fff;
  color: var(--accent-deep);
  border-color: var(--line);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
}

.quick-link,
.canticle-link {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-deep);
  text-decoration: none;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.quick-link:focus-visible,
.canticle-link:focus-visible,
.gospel-link:focus-visible,
.index-search-result:focus-visible,
.index-search-form input:focus-visible,
.tab-btn:focus-visible,
.icon-btn:focus-visible,
.brand-mark:focus-visible,
.settings-header-action:focus-visible,
.close-settings:focus-visible,
.settings-action:focus-visible,
.settings-time-row input:focus-visible,
.settings-select:focus-visible,
.settings-cycle-option:focus-within,
.settings-segment-option:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

.gospel-index {
  display: grid;
  gap: 16px;
}

.gospel-index-week {
  display: grid;
  gap: 8px;
}

.gospel-index-week h3 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 15px;
}

.gospel-index-week h3.gospel-index-week-current {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 5px;
  color: #633c0d;
  background: #ffe7a8;
  box-shadow: inset 0 -2px 0 #b67f14;
}

.gospel-index-day {
  display: grid;
  gap: 7px;
}

.gospel-index-day h4 {
  width: fit-content;
  margin: 0;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--accent-deep);
  font-size: 14px;
}

.gospel-index-day-current h4 {
  border-color: #b67f14;
  background: #ffe7a8;
  color: #633c0d;
}

.gospel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 7px;
}

.gospel-link {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.gospel-link:active {
  background: #f5f2ef;
}

.gospel-link.gospel-link-current {
  border-color: #b67f14;
  background: #ffe7a8;
  box-shadow: inset 0 0 0 1px #b67f14;
}

.gospel-link strong {
  color: var(--accent-deep);
  font-size: 13px;
  line-height: 1.25;
}

.gospel-link span {
  color: var(--accent);
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}

.index-search-form {
  margin: 0 0 10px;
}

.index-search-form input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.index-search-empty {
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.index-search-hint,
.index-search-summary {
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
}

.index-search-summary strong {
  color: var(--accent-deep);
}

.index-search-results {
  display: grid;
  gap: 8px;
}

.index-search-result {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.index-search-result:active {
  background: #f5f2ef;
}

.index-search-result-reference {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.index-search-result-preview {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.index-search-result mark {
  padding: 0 0.08em;
  border-radius: 3px;
  background: #ffec99;
  color: inherit;
}

.txt-verse.text-search-hit {
  background: #fff5c9;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.txt-verse .text-search-match {
  padding: 0 0.06em;
  border-radius: 2px;
  background: #ccebd5;
  color: #124f2b;
}

.canticle-link {
  min-height: 42px;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: start;
  gap: 8px;
  text-align: left;
  place-items: center start;
}

.canticle-link strong {
  min-width: 48px;
  color: var(--accent);
}

.canticle-link span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-version {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  text-align: center;
}

.reader {
  min-width: 0;
  padding: 6px 0 20px;
}

.reader-inner {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--reader-font);
  font-size: var(--reader-font-size);
  line-height: 1.62;
}

.reader-inner .calibre:first-child {
  margin-top: 0;
}

.reader-inner .calibre {
  margin: 0 0 22px;
  text-align: center;
}

.reader-inner .weeks-schema {
  margin: 0 0 28px;
  padding: 0 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.reader-inner.schema-tables-hidden .weeks-schema {
  display: none;
}

.reader-inner .weeks-schema h1 {
  margin: 10px 0 12px;
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28em;
  line-height: 1.2;
  text-align: center;
}

.schema-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reader-inner .schema-liturgical-day-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 14px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.reader-inner .schema-liturgical-day-title {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.2;
}

.reader-inner .schema-liturgical-weekday,
.reader-inner .schema-liturgical-date {
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 600;
  white-space: nowrap;
}

.reader-inner .schema-liturgical-date {
  color: var(--muted);
}

.daily-office-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.daily-office-block {
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.daily-office-block.daily-office-current {
  border-color: #b67f14;
  background: #ffe7a8;
  box-shadow: inset 0 0 0 1px #b67f14;
}

.daily-matins-block {
  display: grid;
  gap: 8px;
}

.daily-matins-nights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: flex-start;
}

.daily-matins-night {
  width: fit-content;
  max-width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.daily-matins-night-label {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  white-space: nowrap;
}

.daily-office-main {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.daily-office-label {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  white-space: nowrap;
}

.daily-office-link {
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.daily-office-references {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.daily-office-references .schema-ref {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.daily-office-gospel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--accent-deep);
  font-size: 0.92em;
  font-weight: 700;
}

.daily-office-gospel a {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-deep);
  text-decoration: none;
}

@media (max-width: 520px) {
  .office-document-heading-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .office-document-date span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .office-document-date {
    grid-template-columns: auto;
  }

  .office-document-controls-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-document-generate {
    grid-column: 1 / -1;
  }

  .office-document-reference-row {
    gap: 5px;
  }

  .office-document-matins-nights {
    grid-template-columns: 1fr;
  }

  .reader-inner .schema-liturgical-day-row {
    gap: 5px 8px;
    padding: 8px;
  }

  .reader-inner .schema-liturgical-weekday,
  .reader-inner .schema-liturgical-date {
    font-size: 11px;
  }
}

.reader-inner .weeks-schema table {
  table-layout: fixed;
  margin: 0;
  border-collapse: collapse;
}

.reader-inner .weeks-schema th,
.reader-inner .weeks-schema td {
  padding: clamp(3px, 1vw, 7px);
  border: 1px solid var(--line);
  vertical-align: top;
}

.reader-inner .weeks-schema thead th {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: clamp(10px, 1.45vw, 13px);
  text-align: center;
}

.reader-inner .weeks-schema td {
  width: 24%;
}

.reader-inner .weeks-schema .schema-day {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  padding-right: 2px;
  padding-left: 2px;
  background: #fff;
  color: var(--accent);
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
}

.reader-inner .weeks-schema .schema-day.schema-day-current {
  border-color: #b67f14;
  background: #ffe7a8;
  color: #633c0d;
  box-shadow: inset 0 0 0 1px #b67f14;
}

.reader-inner .cenobio-schema .schema-table-wrap {
  overflow: visible;
}

.reader-inner .cenobio-schema .schema-table-wrap + .schema-table-wrap {
  margin-top: 14px;
}

.reader-inner .family-schema .schema-table-wrap + .schema-table-wrap {
  margin-top: 14px;
}

.reader-inner .family-schema table {
  width: 100%;
}

.reader-inner .family-schema .schema-day-column {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
}

.reader-inner .family-schema .family-compieta-table td {
  width: auto;
}

.reader-inner .cenobio-schema table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.reader-inner .cenobio-schema caption {
  padding: 8px 10px;
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.reader-inner .family-schema caption {
  padding: 8px 10px;
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.reader-inner .cenobio-schema caption .schema-ref {
  margin-left: 6px;
  vertical-align: middle;
}

.reader-inner .cenobio-schema td {
  width: auto;
  min-width: 0;
  vertical-align: middle;
}

.reader-inner .cenobio-schema .cenobio-matins-table,
.reader-inner .cenobio-schema .cenobio-lodi-table,
.reader-inner .cenobio-schema .cenobio-daytime-table,
.reader-inner .cenobio-schema .cenobio-evening-table {
  width: 100%;
}

.reader-inner .cenobio-schema .schema-day-column {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
}

.reader-inner .cenobio-schema .cenobio-lodi-special {
  padding: clamp(4px, 1vw, 7px);
}

.reader-inner .cenobio-schema .schema-office-current {
  border-color: #b67f14;
  background: #ffe7a8;
  box-shadow: inset 0 0 0 2px #b67f14;
}

.reader-inner .cenobio-schema .schema-office-current .schema-ref {
  border-color: #b67f14;
  background: #fff9e8;
}

.reader-inner .cenobio-schema .schema-lodi-week-current {
  border-color: #d6a02f;
  background: #fff8df;
  box-shadow: inset 0 0 0 1px #d6a02f;
}

.reader-inner .cenobio-schema .schema-lodi-week-current .schema-ref {
  border-color: #d6a02f;
  background: #fffdf7;
}

.reader-inner .cenobio-schema .schema-lodi-week-current.schema-office-current {
  border-color: #b67f14;
  background: #ffe7a8;
  box-shadow: inset 0 0 0 2px #b67f14;
}

.reader-inner .cenobio-schema .schema-lodi-week-current.schema-office-current .schema-ref {
  border-color: #b67f14;
  background: #fff9e8;
}

.reader-inner .cenobio-schema .schema-lodi-week-header-current {
  color: #633c0d;
  background: #ffe7a8;
  box-shadow: inset 0 -2px 0 #b67f14;
}

.reader-inner .family-schema .schema-office-current {
  border-color: #d6a02f;
  background: #fff8df;
  box-shadow: inset 0 0 0 1px #d6a02f;
  border-radius: 6px;
}

.reader-inner .family-schema .schema-office-current .schema-ref {
  border-color: #d6a02f;
  background: #fffdf7;
}

.reader-inner .weeks-schema thead .schema-week-current {
  color: #633c0d;
  background: #ffe7a8;
  box-shadow: inset 0 -2px 0 #b67f14;
}

.reader-inner .family-evening-table .family-compline-column {
  width: 18%;
}

.schema-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  min-height: 28px;
  padding: 2px 0;
}

.reader-inner .weeks-schema .schema-ref {
  min-width: 0;
  max-width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf9;
  color: var(--accent-deep);
  font-size: clamp(10px, 1.55vw, 13px);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.reader-inner .weeks-schema .schema-ref:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.reader-inner .weeks-schema .schema-ref.unresolved {
  color: var(--muted);
  text-decoration: line-through;
}

.reader-inner .weeks-schema .schema-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 5px;
  color: var(--muted);
  font-size: clamp(10px, 1.55vw, 13px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.book-index {
  margin: 10px 0 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.book-index strong {
  display: block;
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 14px;
}

.book-index div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 5px;
}

.book-index-toggle {
  cursor: pointer;
  user-select: none;
}

.book-index-toggle::after {
  content: " +";
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.8em;
  font-style: normal;
  font-weight: 800;
}

.book-index-toggle[aria-expanded="true"]::after {
  content: " -";
}

.book-index-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.book-index-content {
  margin-top: 10px;
}

.reader-inner .calibre2 {
  max-width: min(100%, 420px);
  height: auto;
}

.reader-inner .calibre3 {
  scroll-margin-top: var(--topbar-offset);
  margin: 0 0 28px;
}

.reader-inner .verse-anchor {
  scroll-margin-top: var(--topbar-offset);
}

.office-route-marker {
  display: block;
  max-width: 100%;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.office-route-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 10px;
  color: var(--accent-deep);
  font-size: var(--office-title-size);
  font-weight: 700;
  scroll-margin-top: var(--topbar-offset);
}

.office-route-subheading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 8px;
  color: var(--accent-deep);
  font-size: var(--office-title-size);
  font-weight: 700;
  scroll-margin-top: var(--topbar-offset);
}

.office-route-heading-title {
  min-width: 0;
  padding: 0.12em 0.5em;
  color: var(--accent);
  background: #ffe7a8;
  line-height: 1.4;
}

.office-route-heading-next {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: var(--office-title-size);
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.office-route-next {
  margin: 12px 0 20px;
  color: var(--accent);
  font-size: var(--office-title-size);
  font-style: italic;
}

.office-route-next a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.office-route-next-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 20px;
  color: var(--accent);
  font-size: var(--office-title-size);
  font-style: italic;
}

.office-route-next-choice {
  flex: 1 1 0;
  min-width: 0;
}

.office-route-next-choice:last-child {
  text-align: right;
}

.office-route-next-choice a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.office-route-gospel {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 9px;
  margin: 16px 0 22px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--accent-deep);
  font-size: 0.86em;
}

.office-route-gospel-title {
  font-weight: 700;
}

.office-route-gospel a {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.office-route-psalm-division {
  margin: 12px 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1em;
  line-height: 1.5;
}

.office-route-psalm-division-symbol {
  font-size: inherit;
}

.office-route-canticle-antiphon {
  margin: 16px 0 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: #f2f6f8;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.office-route-canticle-antiphon p strong {
  color: var(--accent-deep);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 700;
}

.office-route-canticle-antiphon p {
  margin: 3px 0 0;
  font-style: italic;
}

.office-route-collect {
  margin: 18px 0 22px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: #f8f2e5;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

.office-route-collect-title {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-deep);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.office-route-collect p {
  margin: 0;
}

.office-route-fixed-part {
  margin: 14px 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

.office-route-fixed-part-title {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-deep);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.office-route-fixed-part p {
  margin: 0;
  white-space: pre-line;
}

.office-route-small-rule {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: #f2f6f8;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

.office-route-small-rule-title {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-deep);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.office-route-small-rule-text {
  display: block;
}

.office-route-small-rule-text br:last-child {
  display: none;
}

.office-route-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 38px;
  color: #b58936;
}

.office-route-end-line {
  flex: 1 1 auto;
  min-width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.82;
}

.office-route-end-symbol {
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5em;
  line-height: 1;
}

#schema-settimane {
  scroll-margin-top: var(--topbar-offset);
}

.reader-inner .sgc {
  margin: 26px 0 12px;
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45em;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.reader-inner table {
  width: 100%;
  margin: 12px 0 28px;
  border-collapse: collapse;
}

.reader-inner td {
  padding: 2px;
}

.reader-inner table a {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-deep);
  background: #fff;
  text-decoration: none;
}

.reader-inner h1,
.reader-inner h2 {
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.reader-inner h1 {
  margin: 30px 0 14px;
  font-size: 1.45em;
  line-height: 1.22;
}

.reader-inner h2 {
  margin: 30px 0 14px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
  font-size: 1.25em;
  font-style: italic;
  line-height: 1.25;
  text-align: center;
}

.reader-inner h2 a,
.reader-inner p a {
  color: inherit;
  text-decoration: none;
}

.reader-inner p {
  margin: 1em 0;
}

.reader-inner sup {
  color: var(--accent);
  font-size: 0.62em;
  font-weight: 700;
  line-height: 0;
}

.reader-inner .weekour {
  color: var(--accent);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.78em;
  font-style: italic;
  font-weight: 700;
}

.reader-inner .subtitle {
  color: var(--muted);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.72em;
  font-style: italic;
  font-weight: 700;
}

.reader-inner .eb,
.reader-inner .eb1 {
  float: left;
  margin: 0.08em 0.22em 0 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9em;
  line-height: 1;
}

.reader-inner hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.reader-inner .active-section {
  animation: section-pulse 1.4s ease;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 50;
  transform: translateX(-50%);
  max-width: min(92vw, 420px);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  font-size: 14px;
  font-weight: 700;
}

.update-activity {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 55;
  transform: translate(-50%, -50%);
  max-width: min(92vw, 420px);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e7a9b9;
  background: #f8dce4;
  color: #702d42;
  box-shadow: 0 6px 18px rgba(91, 35, 53, 0.16);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.update-notice {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 56;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 12px;
  border: 1px solid #e7a9b9;
  border-radius: 10px;
  background: #f8dce4;
  color: #702d42;
  box-shadow: 0 6px 18px rgba(91, 35, 53, 0.16);
  font-size: 13px;
  font-weight: 650;
}

.update-notice button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #b75c79;
  border-radius: 8px;
  background: #fff;
  color: #702d42;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

@keyframes section-pulse {
  0% {
    background: #fff3cb;
  }
  100% {
    background: transparent;
  }
}

@media (max-width: 760px) {
  .topbar-main {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  }

  .layout {
    display: block;
    padding: 12px calc(10px + var(--safe-right)) 36px calc(10px + var(--safe-left));
  }

  .index-panel {
    max-height: calc(100vh - var(--topbar-offset) - 10px);
    max-height: calc(100svh - var(--topbar-offset) - 10px);
  }

  .settings-panel {
    max-height: calc(100vh - var(--topbar-offset) - 10px);
    max-height: calc(100svh - var(--topbar-offset) - 10px);
  }

  .index-panel.collapsed {
    display: none;
  }

  .reader-inner {
    font-size: var(--reader-font-size);
    line-height: 1.58;
  }

  .reader-inner .calibre3 {
    scroll-margin-top: var(--topbar-offset);
  }

  #schema-settimane {
    scroll-margin-top: var(--topbar-offset);
  }
}

@media (min-width: 761px) {
  .layout.index-closed .reader-inner {
    max-width: 900px;
  }
}

.reader-inner .cenobio-schema .schema-invitatory {
  text-align: center;
}

.daily-sesta-references .daily-office-gospel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.office-document-inline-components {
  line-height: 1.6;
}

.office-document-inline-reference {
  display: inline;
}

.office-document-reference-separator {
  white-space: pre-wrap;
}

.office-document-actions {
  flex-basis: 300px;
  grid-column: 1 / -1;
}
.office-document-actions .settings-segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  background: #e7e4dc;
}
.office-document-actions .office-document-generate {
  grid-column: auto;
  min-width: 0;
  padding: 6px;
  border-radius: 5px;
  background: #fff;
  color: var(--accent-deep);
  font-size: 14px;
}
