.wf-dialog {
  --wf-ink: var(--ink, #232326);
  --wf-muted: var(--muted, #66656e);
  --wf-line: var(--line, #e7e5e9);
  --wf-tint: #f0edf8;
  --wf-lilac-ink: #65548a;
  --wf-paper: var(--surface, #fff);
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(680px, calc(100vw - 44px));
  max-width: none;
  height: fit-content;
  max-height: min(88vh, 960px);
  max-height: min(88dvh, 960px);
  margin: auto;
  padding: 0;
  color: var(--wf-ink);
  background: var(--wf-paper);
  border: 1px solid rgba(30,25,38,.11);
  border-radius: 22px;
  box-shadow: 0 32px 100px rgba(27,24,34,.2);
  font-family: inherit;
  overflow: hidden;
  isolation: isolate;
}
.wf-dialog::backdrop { background: rgba(29,27,35,.32); backdrop-filter: blur(5px); }
.wf-dialog[open] { animation: wf-enter .18s ease-out both; }
.wf-dialog[open]::backdrop { animation: wf-shade .16s ease-out; }
.wf-dialog *,
.wf-dialog *::before,
.wf-dialog *::after { box-sizing: border-box; }
.wf-dialog button, .wf-dialog input, .wf-dialog select, .wf-dialog textarea { font: inherit; color: inherit; }
.wf-dialog button { cursor: pointer; }
.wf-dialog [tabindex="-1"]:focus { outline: none; }
.wf-dialog button:focus-visible, .wf-dialog a:focus-visible,
.wf-dialog input:focus-visible, .wf-dialog textarea:focus-visible,
.wf-dialog select:focus-visible { outline: 2px solid #7b68ae; outline-offset: 3px; }
.wf-frame { display: flex; flex-direction: column; min-height: 0; max-height: min(88vh,960px); max-height: min(88dvh,960px); }
.wf-toolbar, .wf-foot { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 12px; padding: 12px 25px; }
.wf-toolbar { min-height: 58px; border-bottom: 1px solid var(--wf-line); }
.wf-crumb { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--wf-muted); font-size: 13px; font-weight: 550; }
.wf-crumb > span:nth-last-child(3) { color: var(--wf-ink); }
.wf-divider { opacity: .45; }
.wf-brand { display: inline-flex; width: 23px; height: 23px; background: url(assets/mike.svg) center/contain no-repeat; }
.wf-round { border: 1px solid transparent; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f3f2f4; color: var(--wf-ink); padding: 0; }
.wf-round:hover { background: #eae8ec; }
.wf-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 28px 32px 32px; min-height: 0; scrollbar-gutter: stable; }
.wf-header { padding-bottom: 22px; }
.wf-header h2 { margin: 0; font-size: clamp(28px,3.4vw,41px); font-weight: 450; letter-spacing: -.045em; line-height: 1.11; overflow-wrap: anywhere; }
.wf-header p, .wf-prose, .wf-message p, .wf-insight p, .wf-note { margin: 0; font-size: 15px; line-height: 1.55; color: var(--wf-muted); font-weight: 400; }
.wf-header p { margin-top: 9px; }
.wf-header-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.wf-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; color: #64616b; background: #f2f1f3; border-radius: 7px; font-size: 12px; line-height: 1.2; font-weight: 550; white-space: nowrap; }
.wf-tint { color: var(--wf-lilac-ink); background: var(--wf-tint); }
.wf-green { background: #e9f3ed; color: #38684a; }
.wf-head-mark, .wf-tile { display: inline-grid; place-items: center; flex: none; width: 33px; height: 36px; border-radius: 8px; background: #f4f3f5; color: #6d6974; }
.wf-head-mark { margin-bottom: 10px; }
.wf-body { display: grid; gap: 23px; }
.wf-section { min-width: 0; }
.wf-section > h3 { margin: 0 0 11px; font-size: 15px; line-height: 1.4; font-weight: 620; letter-spacing: -.018em; }
.wf-note { font-size: 13px; line-height: 1.5; }
.wf-foot { min-height: 73px; border-top: 1px solid var(--wf-line); background: var(--wf-paper); }
.wf-foot > .wf-note { padding-right: 6px; }
.wf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; min-height: 39px; background: #fff; border: 1px solid var(--wf-line); border-radius: 9px; font-size: 14px !important; line-height: 1.2; font-weight: 570 !important; letter-spacing: -.012em; }
.wf-btn:hover { background: #f5f4f6; border-color: #d5d2d8; }
.wf-btn.wf-primary { background: #232326; border-color: #232326; color: white; }
.wf-btn.wf-primary:hover { background: #38373b; border-color: #38373b; }
.wf-btn svg, .wf-item > svg, .wf-insight > svg { flex: none; }
.wf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-message-tabs, .wf-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wf-message-tabs { margin-bottom: 8px; }
.wf-source-tab { display: inline-flex; align-items: center; gap: 5px; min-height: 33px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--wf-line); background: #fff; font-size: 13px !important; }
.wf-source-tab.is-current { background: #f4f3f6; border-color: #b8b3c2; }
.wf-app-icon { display: inline-grid; align-items: center; justify-items: center; width: 24px; height: 24px; flex: none; }
.wf-outlook { position: relative; }
.wf-outlook::before { content: ""; position: absolute; left: 6px; right: 1px; top: 3px; bottom: 4px; border-radius: 2px; background: linear-gradient(37deg, #1489d2 48%,#62b7e8 48% 73%,#1485cb 73%); }
.wf-outlook > span { z-index: 1; justify-self: start; margin-left: 1px; display: grid; place-items: center; width: 13px; height: 14px; border-radius: 2px; background: #086cbb; font: 650 9px/1 system-ui; color: white; }
.wf-source-tab .wf-app-icon { width: 18px; height: 18px; }
.wf-source-tab .wf-outlook > span { width: 10px; height: 11px; font-size: 7px; }
.wf-message { margin: 0; padding: 14px 16px 16px; background: #f8f8fa; border: 1px solid var(--wf-line); border-radius: 12px; }
.wf-message-head { display: flex; gap: 8px; align-items: center; margin: 0 0 11px; }
.wf-message-head strong, .wf-row-copy strong { display: block; color: var(--wf-ink); font-size: 14px; font-weight: 610; line-height: 1.4; }
.wf-message-head small, .wf-row-copy small, .wf-message-head time, .wf-timeline small { display: block; color: var(--wf-muted); font-size: 12px; line-height: 1.4; }
.wf-message-head time { margin-left: auto; white-space: nowrap; }
.wf-message p { white-space: pre-line; color: var(--wf-ink); }
.wf-changes, .wf-items { overflow: hidden; border: 1px solid var(--wf-line); border-radius: 12px; }
.wf-change { display: grid; grid-template-columns: minmax(85px,.47fr) minmax(0,1fr); align-items: center; gap: 8px; padding: 11px 13px; font-size: 14px; line-height: 1.45; }
.wf-change + .wf-change, .wf-item + .wf-item { border-top: 1px solid var(--wf-line); }
.wf-change > span { color: var(--wf-muted); }
.wf-change > div { display: flex; flex-wrap: wrap; gap: 4px 7px; align-items: center; }
.wf-change s { color: var(--wf-muted); text-decoration-color: #b3afb8; }
.wf-change strong { font-weight: 570; }
.wf-change svg { color: #8f8999; }
.wf-insight { display: flex; align-items: flex-start; gap: 10px; background: #f4f1f8; color: var(--wf-lilac-ink); padding: 15px; border-radius: 12px; }
.wf-insight > svg { margin-top: 1px; }
.wf-insight strong { font-size: 14px; color: #4f435f; font-weight: 600; line-height: 1.5; }
.wf-insight p { margin-top: 2px; font-size: 14px; color: #655e6e; }
.wf-insight.wf-success { background: #eef5ef; color: #48664c; }
.wf-success strong, .wf-success p { color: #47614a; }
.wf-tabs { border-bottom: 1px solid var(--wf-line); gap: 20px; flex-wrap: nowrap; }
.wf-tabs button { background: none; padding: 0 0 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--wf-muted); font-size: 14px; font-weight: 550; }
.wf-tabs button.is-current { color: var(--wf-ink); border-color: var(--wf-ink); }
.wf-tabs button span { margin-left: 5px; font-size: 12px; color: var(--wf-muted); }
.wf-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 20px; padding: 16px; margin: 0; border: 1px solid var(--wf-line); border-radius: 12px; }
.wf-facts dt { margin: 0 0 4px; font-size: 12px; color: var(--wf-muted); }
.wf-facts dd { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.wf-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: none; border-radius: 0; background: transparent; padding: 12px 14px; }
.wf-item:hover { background: #f8f7f9; }
.wf-row-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wf-timeline { list-style: none; padding: 0; margin: 0; }
.wf-timeline li { display: grid; grid-template-columns: 9px 1fr; gap: 10px; position: relative; padding-bottom: 15px; }
.wf-timeline li:last-child { padding-bottom: 0; }
.wf-timeline li::before { position: relative; z-index: 1; content: ""; width: 8px; height: 8px; align-self: start; margin-top: 7px; background: #93839d; border-radius: 50%; }
.wf-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 3.5px; top: 10px; bottom: -8px; width: 1px; background: var(--wf-line); }
.wf-timeline strong { font-size: 14px; font-weight: 600; }
.wf-timeline p { margin: 3px 0; font-size: 14px; color: var(--wf-muted); line-height: 1.45; }
.wf-public-link { display: inline-flex; gap: 6px; align-items: center; color: var(--wf-lilac-ink); text-underline-offset: 3px; font-size: 14px; }
.wf-public-link + .wf-note { margin-top: 5px; }
.wf-stage-track { display: flex; gap: 4px; margin-bottom: 12px; }
.wf-stage-track > span { height: 4px; flex: 1; background: #eeeef0; border-radius: 8px; }
.wf-stage-track > .completed { background: #b8aacd; }
.wf-stage-track > .current { background: #76628c; }
.wf-form { display: grid; gap: 14px; }
.wf-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.wf-inline-form { display: flex; gap: 8px; align-items: flex-end; }
.wf-inline-form .wf-input { flex: 1; }
.wf-input { display: grid; gap: 6px; min-width: 0; }
.wf-input > span { font-size: 13px; font-weight: 570; line-height: 1.4; }
.wf-input input, .wf-input select, .wf-input textarea {
  width: 100%; min-width: 0; border: 1px solid #dcd9e1; border-radius: 8px; background-color: #fff;
  padding: 9px 11px; font-size: 14px; line-height: 1.4; min-height: 39px; box-shadow: none;
}
.wf-input select { appearance: none; padding-right: 31px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23696670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 11px center; background-repeat: no-repeat; }
.wf-input textarea { resize: vertical; }
.wf-input textarea.wf-editor { font-family: Georgia,serif; line-height: 1.65; font-size: 16px; }
.wf-consent { display: flex; align-items: flex-start; gap: 7px; color: var(--wf-muted); font-size: 14px; line-height: 1.4; }
.wf-consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--wf-ink); }
.wf-paper { background: #fff; border: 1px solid var(--wf-line); padding: clamp(18px,4vw,33px); border-radius: 4px; box-shadow: 0 3px 12px #28243106; }
.wf-paper-meta { margin-bottom: 21px; padding-bottom: 10px; display: flex; gap: 12px; justify-content: space-between; color: #77717a; font-size: 11px; border-bottom: 1px solid var(--wf-line); }
.wf-paper h3 { font: 450 26px/1.17 Georgia,serif; letter-spacing: -.035em; margin: 0 0 17px; }
.wf-paper-body h4 { margin: 16px 0 3px; font: 600 15px/1.4 Georgia,serif; }
.wf-paper-body p { margin: 0 0 11px; }
.wf-paper-body { font: 15px/1.67 Georgia,serif; white-space: pre-wrap; overflow-wrap: anywhere; color: #39353c; }
.wf-signature { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--wf-line); display: grid; gap: 4px; }
.wf-signature small, .wf-signature span { font-size: 12px; color: var(--wf-muted); }
.wf-signature strong { font: italic 24px Georgia,serif; }
.wf-error { margin: 0; padding: 10px 13px; background: #fff1ec; color: #783e32; border-radius: 8px; font-size: 14px; }
@keyframes wf-enter { from { opacity: 0; transform: translateY(7px) scale(.992); } to { opacity: 1; transform: none; } }
@keyframes wf-shade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 650px) {
  .wf-dialog { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border: 0; border-radius: 0; }
  .wf-frame { height: 100%; max-height: 100%; }
  .wf-toolbar { padding: max(8px, env(safe-area-inset-top)) 15px 8px; min-height: 54px; }
  .wf-round { width: 40px; height: 40px; }
  .wf-crumb { gap: 6px; }
  .wf-scroll { flex: 1; padding: 24px 18px 28px; scrollbar-gutter: auto; }
  .wf-header h2 { font-size: 33px; }
  .wf-header p, .wf-prose, .wf-message p { font-size: 16px; }
  .wf-body { gap: 20px; }
  .wf-foot { padding: 10px 15px max(10px,env(safe-area-inset-bottom)); min-height: 68px; }
  .wf-foot .wf-btn, .wf-source-tab, .wf-inline-form .wf-btn { min-height: 44px; }
  .wf-foot .wf-note { font-size: 12px; }
  .wf-input input, .wf-input textarea, .wf-input select { font-size: 16px; min-height: 44px; }
  .wf-message-head { flex-wrap: wrap; gap: 6px; }
  .wf-message-head time { font-size: 11px; }
  .wf-message { padding: 12px; }
  .wf-change { grid-template-columns: minmax(70px,.37fr) minmax(0,1fr); padding: 10px 12px; }
  .wf-facts { gap: 13px 15px; padding: 14px; }
  .wf-tabs button { min-height: 42px; }
}
@media (max-width: 390px) {
  .wf-form-grid { grid-template-columns: minmax(0,1fr); }
  .wf-foot { gap: 6px; }
  .wf-btn { padding: 8px 10px; }
  .wf-message-head time { margin-left: 30px; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-dialog[open], .wf-dialog[open]::backdrop { animation: none; }
}
