.wr-workspace {
  --wr-ink: #252e30;
  --wr-teal: #143d43;
  --wr-ivory: #f9f8f3;
  --wr-pale: #e6eeea;
  --wr-gold: #c6ad83;
  --wr-muted: #536663;
  --wr-line: #dfe6e1;
  --wr-selection: linear-gradient(105deg, #e1ebe5, var(--wr-pale) 30%, var(--wr-ivory));
  color: var(--wr-ink);
  max-width: 1430px;
  margin: 0 auto;
}
.wr-workspace [hidden] { display: none !important; }
.wr-workspace ::selection { background: #d3e4db; color: var(--wr-teal); }
.wr-workspace :focus-visible { outline: 1px solid #547f75; outline-offset: 2px; box-shadow: none; }
.wr-workspace button, .wr-workspace summary { cursor: pointer; }
.wr-workspace button:disabled { cursor: default; opacity: .5; }
.wr-workspace input, .wr-workspace select, .wr-workspace textarea { min-width: 0; max-width: 100%; font: inherit; color: inherit; }
.wr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wr-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 33px; padding: 5px 10px; border: 1px solid var(--wr-line);
  border-radius: 4px; color: var(--wr-teal); background: #fff; font: inherit; font-size: 13px; font-weight: 500; line-height: 1.35; white-space: nowrap;
}
.wr-toolbar details[open] > summary, .wr-document-top details[open] > summary { background: var(--wr-selection); border-color: #baccc2; }
.wr-button:hover { background: var(--wr-ivory); border-color: #bdcdc5; }
.wr-primary { background: var(--wr-teal); color: white; border-color: var(--wr-teal); font-weight: 620; }
.wr-primary:hover { background: #20535a; border-color: #20535a; }
.wr-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  border-bottom: 1px solid var(--wr-line); padding: 0 1px 12px;
}
.wr-spacer { flex: 1; }
.wr-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.wr-toolbar-actions > span:empty { display: none; }
.wr-guide-entry.wr-button { border-color: transparent; background: transparent; gap: 5px; color: #446461; }
.wr-guide-entry.wr-button:is(:hover, :focus-visible) { border-color: #d9e4dc; background: #f9fbf7; color: var(--wr-teal); }
.wr-book-leaf { fill: #f9fbf7; transform-origin: 12px 12px; transition: transform .32s cubic-bezier(.24,.75,.35,1); }
.wr-guide-entry:is(:hover,:focus-visible) .wr-book-leaf { transform: perspective(22px) rotateY(-67deg); }
.wr-zone, .wr-meta, .wr-muted { color: var(--wr-muted); }
.wr-zone, .wr-muted { font-size: 12px; }
.wr-segments { display: flex; padding: 2px; margin: 0; border: 1px solid var(--wr-line); background: #f4f6f3; border-radius: 5px; }
.wr-segments label { position: relative; margin: 0; cursor: pointer; }
.wr-segments input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wr-segments span { display: block; border-radius: 3px; padding: 5px 11px; font-size: 13px; }
.wr-segments label:hover span { color: var(--wr-teal); background: #edf2ef; }
.wr-segments input:checked + span { background: var(--wr-selection); color: var(--wr-teal); font-weight: 650; box-shadow: inset 0 0 0 1px #c0d1c8; }
.wr-segments input:focus-visible + span { outline: 1px solid #547f75; outline-offset: 1px; }
.wr-dropdown { position: relative; margin: 0; }
.wr-dropdown summary { list-style: none; }
.wr-dropdown summary::-webkit-details-marker { display: none; }
.wr-menu {
  position: absolute; z-index: 5; inset: calc(100% + 5px) auto auto 0;
  min-width: 168px; padding: 5px; background: white; border: 1px solid var(--wr-line);
  border-radius: 6px; box-shadow: 0 8px 22px #172f281b;
}
.wr-document-top .wr-button:not(.wr-primary) { border-color: transparent; background-color: transparent; }
.wr-document-top .wr-button:not(.wr-primary):hover { background-color: #eff3f0; }
.wr-document-top .wr-export { border-inline-start: 1px solid var(--wr-line); padding-inline-start: 5px; }
.wr-export .wr-menu { right: 0; left: auto; }
.wr-menu > button {
  display: block; width: 100%; border: 0; border-radius: 3px;
  background: transparent; color: var(--wr-teal); padding: 8px 10px; text-align: left; font: inherit; font-size: 13px;
}
.wr-menu > button:hover { background: var(--wr-pale); }
.wr-date-menu { width: min(330px, calc(100vw - 52px)); padding: 14px; display: grid; gap: 12px; }
.wr-date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wr-workspace label:not(.wr-segments label) { display: grid; gap: 5px; font-size: 13px; color: var(--wr-muted); }
.wr-date-menu input, .wr-dialog input:not([type=checkbox]), .wr-dialog select, .wr-revision input {
  width: 100%; border: 1px solid #cad7d0; border-radius: 4px; padding: 7px 9px; background: white;
}
.wr-menu-footer, .wr-document-top { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.wr-menu-footer { justify-content: flex-end; }
.wr-layout { display: grid; grid-template-columns: clamp(150px, 14vw, 210px) minmax(0, 1fr); column-gap: 20px; margin-top: 16px; }
.wr-layout:has(.wr-document:not([hidden])) { min-height: 560px; }
.wr-history { align-self: start; padding: 11px 8px 13px; border: 1px solid #dce6df; border-radius: 10px; background: #f8faf780; }
.wr-history > summary { padding: 3px 8px 10px; font-size: 13px; font-weight: 650; color: var(--wr-teal); }
.wr-history > p { padding: 0 8px; }
.wr-history ol { list-style: none; margin: 0; padding: 0; }
.wr-history-entry {
  position: relative; width: 100%; display: grid; gap: 3px; border: 0; border-radius: 4px;
  background: none; color: var(--wr-ink); text-align: start; padding: 10px 12px; font: inherit; font-size: 12px;
}
.wr-history li + li { border-top: 1px solid var(--wr-line); }
.wr-history-entry:hover { background: #edf2ef; }
.wr-history-entry[aria-current=true] {
  background: var(--wr-selection);
}
.wr-history-entry[aria-current=true]::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 11px; bottom: 11px;
  width: 2px; border-radius: 1px; background: var(--wr-gold);
}
.wr-history-entry[aria-current=true] strong { color: var(--wr-teal); }
.wr-history-entry strong { font-size: 14px; }
.wr-history-entry > span { text-wrap: balance; }
.wr-history-entry small { color: var(--wr-muted); }
.wr-main { min-width: 0; border-radius: 12px; }
.wr-main:has(.wr-document:not([hidden])) { background: #fff; border: 1px solid var(--wr-line); }
.wr-empty {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(185px, .72fr); align-items: center;
  min-height: 295px; padding: clamp(24px, 4vw, 60px);
  background: linear-gradient(112deg, #fcfcf9 18%, #f2f7f2 65%, #f5f1e7);
  border: 1px solid #dce6df; border-radius: 12px;
}
.wr-start-copy h2 { color: var(--wr-teal); margin: 0; font-size: clamp(24px, 2.75vw, 38px); font-weight: 680; line-height: 1.2; text-wrap: balance; }
.wr-start-copy p { margin: 12px 0 18px; color: var(--wr-muted); font-size: 14px; line-height: 1.7; }
.wr-start-period { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-bottom: 17px; color: var(--wr-muted); font-size: 13px; }
.wr-start-period strong { color: var(--wr-teal); padding-inline-end: 9px; border-inline-end: 1px solid #c6b18e; }
.wr-start-copy .wr-generate { min-height: 41px; padding-inline: 19px; border-radius: 6px; }
.wr-cover-art { position: relative; isolation: isolate; display: grid; place-items: center; }
.wr-cover-art::before {
  content: ""; position: absolute; z-index: -1; inset: 3% 0; margin: auto; width: 164px;
  border: 1px solid #d4dcd1; border-radius: 7px; background: linear-gradient(130deg,#e3ede6,#faf6eb); transform: translate(12px, 7px) rotate(10deg);
}
.wr-cover-sheet {
  display: grid; gap: 7px; width: 172px; padding: 20px 18px 22px; border: 1px solid #e5e4da;
  border-radius: 7px; background: #fffefa; color: var(--wr-teal); font-size: 10px; transform: rotate(-5deg);
  box-shadow: 1px 14px 32px #203e3020;
}
.wr-cover-sheet strong { width: 100%; font-size: 18px; padding-bottom: 8px; margin-bottom: 3px; border-bottom: 1px solid #d5c3a0; }
.wr-cover-sheet i { display: block; width: 100%; height: 3px; border-radius: 4px; background: linear-gradient(90deg,#dfe8e0 77%,#edf1e9 77%); }
.wr-cover-sheet i:last-child { width: 78%; }
.wr-status { margin: 12px 16px 0; color: var(--wr-teal); font-size: 13px; background: var(--wr-pale); padding: 8px 11px; border-left: 2px solid #8fac9c; }
.wr-status[data-state=error] { color: #783021; background: #f8eeea; border-color: #ac6453; }
.wr-document { max-width: 1060px; margin: 0; padding: 18px clamp(18px, 2.4vw, 36px) 32px; }
.wr-document-top { font-size: 12px; color: var(--wr-muted); margin-bottom: 19px; }
.wr-provenance { color: #6f5b34; }
.wr-document h2 { margin: 0 0 5px; font-size: clamp(29px, 4vw, 39px); font-weight: 660; line-height: 1.23; color: var(--wr-teal); }
.wr-meta { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.wr-pillars { display: flex; flex-wrap: wrap; gap: 5px 0; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--wr-muted); padding: 14px 0 16px; border-bottom: 1px solid var(--wr-line); }
.wr-pillars span { padding-inline-end: 12px; margin-inline-end: 12px; border-inline-end: 1px solid var(--wr-line); }
.wr-pillars span:last-child { border: 0; margin: 0; padding: 0; }
.wr-section { padding: 13px 0 2px; }
.wr-section h3 { margin: 0 0 8px; font-size: 15px; color: var(--wr-teal); font-weight: 650; }
.wr-section p { margin: 0 0 9px; font-size: 15px; line-height: 1.73; overflow-wrap: anywhere; }
.wr-section .wr-muted { font-size: 13px; }
.wr-section textarea {
  width: 100%; min-height: 40px; padding: 3px 2px;
  border: 0; border-bottom: 1px solid var(--wr-line); border-radius: 0;
  resize: none; background: var(--wr-ivory); line-height: 1.65; overflow: hidden;
}
.wr-ref { border: 0; padding: 1px 4px; margin-left: 4px; font: inherit; font-size: 10px; font-weight: 600; line-height: 1.4; color: #27635a; background: var(--wr-pale); border-radius: 2px; vertical-align: 1px; }
.wr-sources { border-top: 1px solid var(--wr-line); margin-top: 16px; padding-top: 12px; }
.wr-sources summary { font-size: 13px; color: var(--wr-teal); font-weight: 620; }
.wr-sources ol { list-style: none; margin: 9px 0 0; padding: 0; max-height: 290px; overflow: auto; }
.wr-sources li { padding: 7px 4px; border-bottom: 1px solid var(--wr-line); font-size: 13px; overflow-wrap: anywhere; }
.wr-sources li:focus { background: var(--wr-pale); }
.wr-sources p { margin: 5px 0 0; }
.wr-revision { padding-top: 15px; }
.wr-revision > div { display: flex; gap: 7px; margin-top: 6px; }
.wr-dialog { max-width: min(450px, calc(100vw - 28px)); }
.wr-dialog form, .wr-schedule-fields { display: grid; gap: 11px; }
.wr-dialog h2, .wr-dialog p { margin: 0; }
.wr-dialog .wr-switch { display: flex !important; align-items: center; cursor: pointer; gap: 8px; }
#appShell:has(#sidebarExpandBtn:not(.hidden)) .wr-toolbar { padding-inline-start: 48px; }
.wr-toolbar-title { color: var(--wr-teal); font-size: 13px; white-space: nowrap; }
.wr-history li { position: relative; }
.wr-history li:has(.wr-history-more) .wr-history-entry { padding-right: 35px; }
.wr-history-more { position: absolute; right: 3px; top: 6px; }
.wr-history-more > summary { border: 0; background: transparent; }
.wr-history-more .wr-menu { right: 0; left: auto; min-width: 100px; }
.wr-dialog .wr-segments { display: flex; }
.wr-dialog .wr-segments label { flex: 1; text-align: center; }
.wr-dialog .wr-switch { justify-content: space-between; padding-block: 10px; border-bottom: 1px solid var(--wr-line); }
.wr-switch strong, .wr-switch small { display: block; }
.wr-switch small { margin-top: 3px; }
.wr-dialog .wr-switch input { appearance: none; position: relative; flex: 0 0 35px; width: 35px; height: 21px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 20px; background: #bdcac5; cursor: pointer; }
.wr-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: white; }
.wr-dialog .wr-switch input:checked { background: var(--wr-teal); }
.wr-switch input:checked::after { transform: translateX(14px); }
.wr-dialog label.wr-time-row, .wr-zone-editor summary { display: flex; justify-content: space-between; align-items: center; }
.wr-dialog .wr-time-row input { width: auto; }
.wr-zone-editor { font-size: 13px; }
.wr-zone-editor summary { padding-block: 6px; }
.wr-zone-editor summary span { text-decoration: underline dotted; text-underline-offset: 3px; }
.wr-section[data-kind=next] { margin-top: 16px; padding: 13px 16px 9px; border-inline-start: 2px solid var(--wr-gold); background: linear-gradient(105deg, var(--wr-ivory), #fcfcf9 70%, #fff); }
.wr-section[data-kind=next] button.wr-button { margin-inline-start: 8px; }
.wr-dialog input:focus-visible { box-shadow: none; outline: 1px solid #547f75; outline-offset: 1px; }

body:has(.wr-guide[open]) { overflow: hidden; }
.wr-guide {
  width: min(900px, calc(100% - 36px)); max-width: none; max-height: calc(100dvh - 34px); padding: 0;
  overflow: hidden; border: 1px solid #d4ded4; border-radius: 15px; background: #fbfcf8; color: var(--wr-teal);
  box-shadow: 0 27px 82px #193c3434;
}
.wr-guide[open] { display: flex; flex-direction: column; }
.wr-guide::backdrop { background: #162e3261; backdrop-filter: blur(3px); }
.wr-guide-top, .wr-guide-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(16px, 3vw, 30px); }
.wr-guide-top { background: linear-gradient(105deg, #f4f7f1, #fcf8ef); border-bottom: 1px solid var(--wr-line); }
.wr-guide-top h2 { margin: 0; font-size: clamp(17px, 2vw, 21px); font-weight: 665; }
.wr-guide-close { width: 34px; height: 34px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 23px; line-height: 1; }
.wr-guide-close:hover { background: #f0f3eb; border-color: var(--wr-line); }
.wr-guide-steps { display: flex; gap: 4px; padding: 8px clamp(16px, 3vw, 30px); border-bottom: 1px solid var(--wr-line); }
.wr-guide-steps .wr-button { background: none; border-color: transparent; }
.wr-guide-steps .wr-button[aria-pressed=true] { background: var(--wr-selection); border-color: #d4e1d7; font-weight: 650; }
.wr-guide-content {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); align-items: stretch;
  overflow: auto; gap: 20px; min-height: 0; padding: 23px clamp(16px, 3vw, 30px);
}
.wr-guide-scene {
  display: grid; align-content: center; gap: 11px; min-height: 292px; padding: 24px;
  background: linear-gradient(135deg,#e7f0e9,#f7f1e5); border: 1px solid #dce6db; border-radius: 10px;
}
.wr-guide-example-label { color: #4b665f; font-size: 12px; }
.wr-guide-example { display: grid; gap: 10px; padding: 15px; border: 1px solid #dce5dc; border-radius: 9px; background: #fffefa; font-size: 13px; box-shadow: 0 9px 22px #29423612; }
.wr-guide-example-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #dce6dc; padding-bottom: 10px; }
.wr-guide-example-tabs { display: flex; gap: 2px; padding: 2px; border-radius: 6px; background: #f1f5ef; }
.wr-guide-example-tabs > *, .wr-guide-example-chip { padding: 4px 6px; border-radius: 4px; }
.wr-guide-example-tabs b, .wr-guide-example-chip { background: #e5eee5; color: var(--wr-teal); }
.wr-guide-example-input { display: flex; flex-wrap: wrap; gap: 4px 9px; justify-content: space-between; padding: 10px; border: 1px solid #dfe8df; border-radius: 5px; color: var(--wr-muted); }
.wr-guide-example-input strong { color: var(--wr-teal); }
.wr-guide-example-cta { justify-self: end; background: var(--wr-teal); color: #fff; padding: 6px 10px; border-radius: 4px; }
.wr-guide-example-body { line-height: 1.55; }
.wr-guide-example-body p { margin: 4px 0 0; color: var(--wr-muted); }
.wr-guide-example-options { display: grid; gap: 5px; }
.wr-guide-example-options span { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 5px; background: #f1f5ef; }
.wr-guide-example-options small { color: var(--wr-muted); }
.wr-guide-note { display: grid; align-content: space-between; justify-items: start; min-width: 0; gap: 4px; padding: 6px 0 0 6px; }
.wr-guide-note h3 { margin: 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.27; text-wrap: balance; }
.wr-guide-note p { margin: 9px 0 0; color: var(--wr-muted); font-size: 14px; line-height: 1.65; }
.wr-guide-note img { justify-self: end; display: block; width: auto; height: 170px; max-width: 100%; object-fit: contain; object-position: bottom; }
.wr-guide-footer { border-top: 1px solid var(--wr-line); color: var(--wr-muted); font-size: 13px; padding-block: 12px; }
.wr-guide-footer > div { display: flex; gap: 8px; }
.wr-guide-footer .wr-button { min-width: 72px; }
@media (prefers-reduced-motion: reduce) {
  .wr-guide-entry:is(:hover,:focus-visible) .wr-book-leaf { transform: none; }
  .wr-book-leaf { transition: none; }
}

.wr-print-layer { display: none; }
@media (max-width: 940px) { .wr-zone { display: none; } .wr-layout { grid-template-columns: minmax(145px, 175px) minmax(0, 1fr); } }
@media (max-width: 760px) {
  .wr-layout { grid-template-columns: minmax(0,1fr); min-height: 0; gap: 10px; margin-top: 10px; }
  .wr-layout:has(.wr-document:not([hidden])) { min-height: 0; }
  .wr-guide-content { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 15px; }
  .wr-guide-scene { min-height: 0; padding: 12px; }
  .wr-guide-note { grid-row: 1; grid-template-columns: minmax(0,1fr) 73px; align-items: end; align-content: start; padding: 0; }
  .wr-guide-note img { height: auto; max-height: 111px; }
  .wr-history { padding: 6px 8px; }
  .wr-history > summary { padding: 4px 3px; }
  .wr-history ol { max-height: 210px; overflow: auto; }
  .wr-document { padding: 17px 16px 30px; }
  .wr-document-top { margin-bottom: 13px; }
  .wr-section { padding-top: 13px; }
  .wr-date-menu { position: fixed; top: 122px; left: 50%; right: auto; transform: translateX(-50%); }
}
@media (max-width: 520px) {
  .wr-empty { grid-template-columns: minmax(0, 1fr) 100px; gap: 13px; min-height: 228px; padding: 18px; overflow: hidden; }
  .wr-start-copy h2 { font-size: 22px; }
  .wr-start-copy p { margin-block: 8px 12px; font-size: 13px; }
  .wr-start-period { font-size: 12px; margin-bottom: 12px; }
  .wr-cover-art::before { width: 87px; transform: translate(5px, 5px) rotate(8deg); }
  .wr-cover-sheet { width: 94px; padding: 13px 10px; font-size: 8px; gap: 5px; }
  .wr-cover-sheet strong { font-size: 12px; padding-bottom: 5px; }
  .wr-guide { width: calc(100% - 22px); }
}
@media (max-width: 380px) { .wr-toolbar > .wr-spacer { display: none; } .wr-button { padding-inline: 7px; } }
@media print {
  @page { size: A4; margin: 18mm 20mm; }
  body:has(.wr-print-layer) > :not(.wr-print-layer) { display: none !important; }
  .wr-print-layer { display: block; color: #202829; overflow: visible; background: #fff; font: 11pt/1.55 system-ui, sans-serif; }
  .wr-print-layer h1 { font-size: 25pt; margin: 0 0 4mm; }
  .wr-print-layer h2 { font-size: 13pt; margin: 6mm 0 2mm; break-after: avoid; }
  .wr-print-layer p { margin: 0 0 3mm; orphans: 3; widows: 3; overflow-wrap: anywhere; }
  .wr-print-period { color: #536461; padding-bottom: 3mm; border-bottom: 1px solid #c9c0a8; }
  .wr-print-metrics { color: #354846; font-weight: 500; }
  @page { @bottom-center { content: counter(page); font: 9pt sans-serif; color: #65726e; } }
}
