.workbench {
  --wb-font: 'Geist', system-ui, -apple-system, sans-serif;
  --wb-rail: #191a22;
  --wb-panel: #20212a;
  --wb-border: #30323d;
  --wb-hover: #282a36;
  --wb-accent: #b99cf4;
  --wb-subtle: #aaaaba;
  --wb-active: #443667;
  --bg: #12131a;
  --ink: #f2f1f6;
  --text: #e7e6ef;
  --muted: var(--wb-subtle);
  --surface: var(--wb-panel);
  --line: var(--wb-border);
  --hover: var(--wb-hover);
  background: var(--bg);
  color: var(--text);
  font-family: var(--wb-font);
  overscroll-behavior: contain;
}
.workbench.tone-light {
  --bg: #f6f6fa; --wb-rail: #ededf5; --wb-panel: #fff; --wb-border: #dbdce6; --wb-hover: #edecf5;
  --wb-subtle: #55586b; --wb-active: #e4dcf9; --wb-accent: #6e43b4; --ink: #181828; --text: #252637;
}
.wb-shell { min-height: 100%; display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.wb-rail { display: flex; flex-direction: column; align-self: start; position: sticky; top: 0; min-height: 100dvh; background: var(--wb-rail); border-right: 1px solid var(--wb-border); padding: 14px 10px 12px; }
.wb-brand { display: flex; align-items: center; gap: 7px; padding: 5px 3px 14px; font-size: 13px; font-weight: 650; white-space: nowrap; color: var(--ink); text-decoration: none; }
.wb-logo { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--wb-accent); color: var(--bg); }
.wb-rail nav { display: grid; gap: 4px; }
.wb-nav-item { min-height: 36px; width: 100%; display: flex; align-items: center; gap: 8px; text-align: start; padding: 6px 8px; border-radius: 7px; font-size: 12.5px; white-space: nowrap; }
.wb-nav-item svg, .wb-btn svg { flex: none; }
.wb-nav-item:hover { background: var(--wb-hover); }
.wb-nav-item[aria-current=page] { background: var(--wb-active); color: var(--ink); font-weight: 600; }
.wb-storage { display: flex; align-items: start; gap: 8px; min-width: 0; text-align: start; width: 100%; margin-top: auto; padding: 12px 5px 4px; font-size: 12px; border-top: 1px solid var(--wb-border); }
.wb-storage > span { min-width: 0; overflow-wrap: anywhere; }
.wb-storage small { display: flex; align-items: center; gap: 5px; color: var(--wb-subtle); line-height: 1.3; margin-top: 3px; }
.wb-storage .cb-dot { flex: none; }
.wb-main { min-width: 0; }
.wb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 16px; border-bottom: 1px solid var(--wb-border); }
.wb-top h1 { margin: 0; font-size: 21px; color: var(--ink); font-weight: 650; letter-spacing: -.025em; }
.wb-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wb-btn, .wb-icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--wb-border); border-radius: 7px; background: var(--wb-panel); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.wb-icon-btn { width: 32px; padding: 0; }
.wb-btn:hover, .wb-icon-btn:hover { filter: brightness(1.1); }
.wb-primary { background: var(--wb-accent); color: #181222; border-color: transparent; }
.tone-light .wb-primary { color: #fff; }
.wb-glass {
  color: var(--text);
  background: var(--wb-panel);
  background: color-mix(in srgb, var(--wb-panel) 83%, transparent);
  border: 1px solid color-mix(in srgb, var(--wb-border) 82%, var(--wb-accent));
  border-radius: 14px;
  box-shadow: 0 18px 52px #090b183d;
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
  font-family: inherit;
}
.wb-notifications { position: relative; }
.wb-bell { min-width: 35px; padding-inline: 8px; }
.wb-bell-count { background: var(--wb-accent); color: var(--bg); border-radius: 999px; padding: 1px 5px; font-size: 10px; line-height: 1.35; }
.wb-notification-panel {
  position: absolute; z-index: 16; top: calc(100% + 8px); right: 0;
  width: min(342px, calc(100vw - 24px)); max-height: min(440px, 66dvh);
  padding: 12px; overflow: auto;
}
.wb-notification-panel h2, .wb-conversation h2 { margin: 0; color: var(--ink); font-weight: 650; font-size: 17px; }
.wb-notification-panel > p { font-size: 12px; color: var(--wb-subtle); margin: 7px 0; }
.wb-alert {
  display: grid; width: 100%; text-align: start; gap: 3px; margin-top: 6px; padding: 8px 9px;
  border: 1px solid var(--wb-border); border-radius: 8px; background: color-mix(in srgb, var(--wb-panel) 68%, transparent);
}
.wb-alert:hover, .wb-alert:focus-visible { background: var(--wb-hover); }
.wb-alert strong { font-weight: 650; font-size: 12px; }
.wb-alert span, .wb-notification-panel summary { font-size: 12px; color: var(--wb-subtle); overflow-wrap: anywhere; }
.wb-notification-panel details { margin-top: 10px; }
.wb-conversation {
  /* The glass backdrop makes a fixed custom arrow relative to this dialog. */
  --smile-cursor: pointer;
  width: min(438px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  padding: 0; margin: auto; overflow: auto; overscroll-behavior: contain;
  font-size: 13px; line-height: 1.45;
  font-family: var(--wb-font);
  cursor: default;
  color-scheme: dark;
}
.wb-conversation .smile-cursor { display: none; }
.wb-conversation :is(button, input, select, textarea) { font-family: inherit; }
.wb-conversation :is(input:not([type=date]), textarea) { cursor: text; }
.wb-conversation button:disabled { --smile-cursor: not-allowed; }
.tone-light .wb-conversation { color-scheme: light; }
.wb-conversation::backdrop { background: #08091148; }
.wb-link-close-confirm { width: min(376px, calc(100vw - 24px)); }
.wb-link-close-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; margin-top: 4px; }
.wb-link-close-danger { color: #fff; background: #a83140; border-color: transparent; }
.wb-conversation-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--wb-border); }
.wb-conversation-head p { margin: 4px 0 0; color: var(--wb-subtle); overflow-wrap: anywhere; }
.wb-conversation-head .wb-icon-btn { flex: none; font-size: 19px; }
.wb-conversation-body { display: grid; gap: 9px; padding: 12px 16px 14px; }
.wb-conversation p { margin: 0; }
.wb-conversation-body > .wb-btn, .wb-visit-form > .wb-btn { justify-self: start; }
.wb-conversation label { display: grid; gap: 4px; font-weight: 600; min-width: 0; }
.wb-conversation label strong { font-weight: inherit; }
.wb-conversation label span { font-weight: 400; color: var(--wb-subtle); }
.wb-conversation input, .wb-conversation select, .wb-conversation textarea {
  width: 100%; min-width: 0; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--wb-border);
  background: color-mix(in srgb, var(--bg) 68%, transparent); color: var(--ink); font: inherit; font-weight: 400;
}
.wb-conversation select option { background: var(--wb-panel); color: var(--ink); }
.wb-conversation textarea { resize: vertical; }
.wb-instruction-thumbnail { display: grid; gap: 6px; }
.wb-instruction-thumbnail > div { display: flex; align-items: center; gap: 8px; }
.wb-instruction-thumbnail img { width: 74px; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; }
.wb-conversation-status { font-size: 12px; color: var(--wb-subtle); }
.wb-message-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.wb-thread { display: grid; gap: 7px; padding: 9px 10px; border: 1px solid var(--wb-border); border-radius: 9px; max-height: 230px; overflow: auto; }
.wb-thread h3 { font-size: 12px; font-weight: 650; margin: 0; }
.wb-thread > p { color: var(--wb-subtle); }
.wb-message { justify-self: end; max-width: 90%; display: grid; gap: 4px; padding: 7px 10px; border-radius: 10px 10px 3px 10px; background: var(--wb-active); overflow-wrap: anywhere; }
.wb-message p { white-space: pre-wrap; }
.wb-message a { color: var(--ink); text-decoration: underline; }
.wb-message-form, .wb-visit-form, .wb-composer-link { display: grid; gap: 8px; }
.wb-attachment-teeth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wb-conversation summary, .wb-notification-panel summary { cursor: pointer; font-weight: 600; }
.wb-conversation details[open] summary { margin-bottom: 7px; }
.wb-composer-link > .wb-btn { justify-self: start; }
.wb-patient-link-note { font-size: 12px; color: var(--wb-subtle); }
.wb-link-copy-notice:not(:empty) {
  display: inline-block; margin-top: 6px; padding: 3px 7px; border-radius: 6px;
  color: var(--ink); background: var(--wb-active); font-size: 12px;
}
.wb-composer-subhead,.wb-guide-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wb-composer-subhead h3 { margin: 0; font-weight: 620; }
.wb-composer-subhead .wb-lang { margin-left: auto; min-height: 32px; padding: 3px 8px; border: 1px solid #d6d3d1; border-radius: 8px; background: #fff; font: inherit; font-size: 13px; }
.wb-template-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.wb-template-list .wb-btn {
  justify-content: flex-start; text-align: start; white-space: normal; overflow-wrap: anywhere;
  min-height: 36px; background: var(--wb-active); border-color: color-mix(in srgb, var(--wb-accent) 25%, var(--wb-border));
}
.wb-conversation .wb-composer-check { display: flex; align-items: center; gap: 7px; font-weight: 400; color: var(--wb-subtle); font-size: 12px; }
.wb-conversation .wb-composer-check input { width: 15px; height: 15px; accent-color: var(--wb-accent); flex: none; }
.wb-composer-history, .wb-composer-queue { border-top: 1px solid var(--wb-border); padding-top: 8px; }
.wb-composer-history > button { margin-top: 7px; }
.wb-composer-queue { display: grid; gap: 5px; }
.wb-composer-queue > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wb-composer-queue strong { overflow-wrap: anywhere; }
.wb-composer-queue > .wb-btn { justify-self: end; }
.wb-message-actions > div, .wb-guide-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.wb-elastic-editor { display: grid; gap: 7px; }
.wb-guide-tabs button[aria-pressed=true] { background: var(--wb-active); border-color: var(--wb-accent); }
.wb-elastic-guide { width: 100%; display: block; touch-action: none; cursor: crosshair; user-select: none; }
.wb-guide-controls small { color: var(--wb-subtle); }
.wb-conversation-status:empty { display: none; }
@media (max-width: 660px) {
  .wb-notification-panel { position: fixed; top: 70px; right: 12px; }
  .wb-conversation-head, .wb-conversation-body { padding-inline: 12px; }
}
.workbench button:disabled { opacity: .55; cursor: default; }
.workbench :is(button, a, input):focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 2px; }
.wb-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(185px, 24%); gap: 13px; padding: 13px 16px 22px; align-items: start; }
.wb-content, .wb-shortcuts { display: grid; gap: 12px; min-width: 0; }
.wb-panel { border: 1px solid var(--wb-border); border-radius: 10px; background: var(--wb-panel); min-width: 0; }
.wb-panel h2 { font-size: 14px; line-height: 1.25; margin: 0; color: var(--ink); font-weight: 650; }
.wb-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wb-metric { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 66px; padding: 9px 12px; border-radius: 8px; color: #181523; font-size: 11px; font-weight: 650; }
.wb-metric b { display: block; font-size: 24px; letter-spacing: -.04em; line-height: 1.12; margin-top: 3px; }
.wb-metric svg { flex: none; }
.wb-yellow { background: #f8ce7a; }
.wb-purple { background: #bd9ff4; }
.wb-green { background: #c7e39f; }
.wb-activity { padding: 10px 12px 9px; }
.wb-activity > header { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; }
.wb-activity > header span, .wb-chart-dates, .wb-chart-numbers { color: var(--wb-subtle); font-size: 10px; }
.wb-chart { display: grid; grid-template-columns: 20px 1fr; align-items: stretch; }
.wb-chart-numbers { display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.wb-chart svg { width: 100%; height: 103px; overflow: visible; }
.wb-chart-line { fill: none; stroke: var(--wb-border); vector-effect: non-scaling-stroke; }
.wb-chart-area { fill: var(--wb-accent); fill-opacity: .14; }
.wb-chart-series { fill: none; stroke: var(--wb-accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wb-chart-point { fill: var(--wb-accent); stroke: var(--wb-panel); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wb-chart-dates { display: flex; justify-content: space-between; padding-left: 19px; margin-top: 4px; }
.wb-shortcut { position: relative; min-height: 106px; padding: 9px 12px 10px 13px; }
.wb-shortcut h2, .wb-shortcut > p { padding-right: 35px; }
.wb-shortcut::before { content: ''; position: absolute; width: 3px; height: 25px; left: 0; top: 8px; border-radius: 0 3px 3px 0; background: var(--wb-card-accent); }
.wb-shortcut p { font-size: 11.5px; color: var(--wb-subtle); line-height: 1.35; margin: 4px 0 8px; overflow-wrap: anywhere; }
.wb-shortcut-icon { display: grid; place-items: center; position: absolute; right: 10px; top: 11px; width: 28px; height: 28px; border-radius: 7px; color: var(--wb-card-accent); background: color-mix(in srgb, var(--wb-card-accent) 12%, transparent); }
.wb-shortcut .wb-btn { min-height: 29px; background: var(--wb-card-accent); color: #171423; border-color: transparent; }
.wb-mint { --wb-card-accent: #a6dcc9; } .wb-gold { --wb-card-accent: #f8ce7a; }
.wb-coral { --wb-card-accent: #f99c90; } .wb-lavender { --wb-card-accent: #bfadf1; }
.wb-case-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; }
.wb-case-toolbar .wb-actions { justify-content: flex-end; }
.workbench .cb-search { min-width: 122px; width: min(190px, 24vw); padding: 0 7px; height: 31px; border-radius: 6px; }
.workbench .cb-search input { font-size: 12px; }
.workbench .cb-btn, .workbench .cb-view button { min-height: 30px; height: 30px; padding: 0 7px; color: var(--text); }
.wb-case-head { display: grid; grid-template-columns: minmax(0, 1fr) 122px 90px; padding: 6px 10px 6px 34px; background: var(--wb-rail); color: var(--wb-subtle); font-size: 10px; font-weight: 650; }
.workbench .case-list { padding: 0; gap: 0; }
.workbench .case-row { min-height: 39px; border-width: 1px 0 0; border-radius: 0; gap: 6px; padding: 2px 7px 2px 9px; box-shadow: none; background: var(--wb-panel); }
.workbench .case-row:last-child { border-radius: 0 0 9px 9px; }
.workbench .case-row:hover { background: var(--wb-hover); }
.workbench .case-row .cr-ico { width: 20px; height: 24px; border-radius: 0; background: none; color: var(--wb-accent); }
.workbench .case-row .cr-ico svg { width: 15px; height: 15px; }
.wb-case-actions { display: flex; align-items: center; gap: 3px; flex: none; }
.case-card .wb-case-actions { flex-direction: column; align-items: flex-end; align-self: flex-start; margin-top: -5px; gap: 1px; }
.wb-case-message-actions { display: flex; align-items: flex-start; gap: 2px; }
.wb-case-bulbs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; max-width: 56px; }
.wb-case-bulb {
  display: grid; place-items: center; flex: none; width: 27px; height: 29px; border-radius: 7px;
  color: var(--bulb-tone); background: color-mix(in srgb, var(--bulb-tone) 13%, transparent);
}
.wb-case-bulb:hover, .wb-case-bulb:focus-visible { background: color-mix(in srgb, var(--bulb-tone) 24%, transparent); }
.wb-case-bulb svg { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--bulb-tone) 50%, transparent)); }
.wb-case-bulb .wb-bulb-light { fill: color-mix(in srgb, var(--bulb-tone) 38%, transparent); }
.wb-case-bulb.bulb-amber { --bulb-tone: #ffd275; --bulb-dark-tone: #8b5300; }
.wb-case-bulb.bulb-coral { --bulb-tone: #ff978a; --bulb-dark-tone: #a24335; }
.wb-case-bulb.bulb-blue { --bulb-tone: #7ed3ff; --bulb-dark-tone: #126b97; }
.wb-case-bulb.bulb-purple { --bulb-tone: #c5a2ff; --bulb-dark-tone: #693da1; }
.tone-light .wb-case-bulb { color: var(--bulb-dark-tone); }
.wb-case-messages {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 29px; border-radius: 7px; color: var(--wb-accent);
}
.wb-case-messages:hover, .wb-case-messages:focus-visible { background: var(--wb-active); color: var(--ink); }
.workbench .case-row .cr-name { font-size: 12px; font-weight: 550; }
.workbench .case-row .cr-text { gap: 8px; }
.workbench .case-row .cr-meta { width: 114px; font: 11px Geist, system-ui, sans-serif; }
.workbench .case-row .more { width: 25px; height: 28px; border-radius: 5px; }
.workbench .case-row .more svg { width: 12px; }
.wb-open-case { display: inline-flex; align-items: center; gap: 5px; padding: 2px 5px; border: 1px solid var(--wb-border); border-radius: 5px; font-size: 10px; }
.workbench .case-grid { padding: 0 9px 10px; }
.workbench .cases-folder-panel, .workbench .cd-move { margin: 0; }
.workbench .cases-privacy { margin: 12px 0 0; }
.workbench .cd-empty { margin: 0 10px 10px; border-radius: 7px; padding: 24px 12px; font-size: 12px; }
.workbench .cd-hidden { margin: 7px 10px 10px; }
.workbench .book-overlay .bo-search { width: auto; }
.workbench .book-overlay .bo-bar :is(.cb-btn, .cb-search) {
  background: linear-gradient(155deg, #ffffff27, #ffffff08 48%, #00000021);
  border: 1px solid #ffffff46;
  color: #fafafa;
  box-shadow: inset 0 1px 0 #ffffff2c, 0 3px 10px #00000026;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.workbench .book-overlay .bo-bar .cb-btn:hover:not(:disabled),
.workbench .book-overlay .bo-bar .cb-search:focus-within {
  background: linear-gradient(155deg, #ffffff38, #ffffff15 65%, #00000016);
  border-color: #ffffff78;
}
.workbench .book-overlay .bo-bar .cb-btn.on {
  background: linear-gradient(150deg, #ffffff42, #ffffff18 62%, #00000012);
  border-color: #ffffffa0;
  color: #fafafa;
  box-shadow: inset 0 1px 0 #ffffff47, 0 3px 10px #00000026;
}
.workbench .book-overlay .bo-bar .cb-btn.on:hover:not(:disabled) {
  background: linear-gradient(150deg, #ffffff50, #ffffff24 62%, #00000014);
  border-color: #ffffffc0;
}
.workbench .book-overlay .bo-bar .cb-search input,
.workbench .book-overlay .bo-bar .cb-search input::placeholder { color: #e4e4e4; }
.workbench .book-overlay .bo-bar .cb-btn:focus-visible,
.workbench .book-overlay .bo-bar .cb-search:focus-within { outline-color: #fff; }
.workbench .wb-columns.wb-columns-shelf { grid-template-columns: minmax(0, 1fr); }
.rf-notes { padding: 4px 8px 22px; }
.rf-toolbar { display: flex; align-items: center; gap: 7px; margin-bottom: 17px; }
.workbench .rf-toolbar .cb-search { flex: 0 1 310px; min-width: 0; }
.workbench .rf-toolbar .cb-search:focus-within { outline: 2px solid var(--wb-accent); outline-offset: 1px; }
.workbench .rf-toolbar .cb-search input:focus-visible { outline: none; }
.rf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 184px), 242px)); gap: 14px; align-items: stretch; }
.rf-note {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 188px;
  padding: 13px; text-align: start; border-radius: 13px; background: #f7d18b; color: #272131;
  border: 1px solid #17131c14; box-shadow: 0 4px 9px #10101913;
  transition: transform .17s ease, box-shadow .17s ease;
}
.rf-note { position: relative; }
.rf-note-body { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; text-align: start; }
.rf-note-body > b { padding-inline-end: 34px; }
.rf-note-delete {
  position: absolute; inset: 7px 7px auto auto; display: grid; place-items: center;
  width: 31px; height: 31px; border-radius: 8px; color: #332725;
}
.rf-note-delete:hover { color: #820f20; background: #865a4a1c; }
.rf-note-case { position: absolute; inset: 7px 42px auto auto; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: #332725; }
.rf-note-case:hover { background: #865a4a1c; }
.rf-note-body > b { padding-inline-end: 70px; }
.rf-reader-actions { display: flex; align-items: center; gap: 8px; }
.rf-note :is(.rf-note-body,.rf-note-delete):focus-visible { outline-color: #362725; }
@media (pointer: coarse) {
  .rf-note-delete { inset: 3px 3px auto auto; width: 44px; height: 44px; }
  .rf-note-body > b { padding-inline-end: 42px; }
}
.rf-note[data-tone="1"] { background: #f5a78f; }
.rf-note[data-tone="2"] { background: #dce99c; }
.rf-note[data-tone="3"] { background: #c3adf4; }
.rf-note[data-tone="4"] { background: #a5daea; }
.rf-note:hover { transform: translateY(-2px); box-shadow: 0 8px 17px #10101922; }
.rf-note b { font-size: 15px; font-weight: 650; line-height: 1.25; -webkit-line-clamp: 2; }
.rf-note b, .rf-preview { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rf-preview { font-size: 13px; line-height: 1.5; -webkit-line-clamp: 4; }
.rf-note-footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; padding-top: 4px; font-size: 11px; }
.rf-open { width: 25px; height: 25px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #24202a; color: #fff; }
.rf-reader {
  margin: auto; width: min(650px, calc(100% - 26px)); max-height: 88dvh; padding: 0;
  background: var(--wb-panel); color: var(--ink); border: 1px solid var(--wb-border);
  border-radius: 14px; box-shadow: 0 16px 40px #14111d42;
}
.rf-reader[open] { display: flex; flex-direction: column; }
.rf-reader::backdrop { background: #11121d99; }
.rf-reader header { display: flex; align-items: start; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--wb-border); }
.rf-reader header h2 { font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.rf-reader header small { color: var(--wb-subtle); font-size: 11px; }
.rf-answers { overflow: auto; padding: 0 16px 14px; }
.rf-answers section { padding: 13px 0 0; }
.rf-answers section + section { margin-top: 13px; border-top: 1px solid var(--wb-border); }
.rf-answers h3 { font-size: 12px; color: var(--wb-accent); font-weight: 650; margin-bottom: 5px; }
.rf-answers p { font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.rf-toolbar { flex-wrap: wrap; }
.rnp-reader {
  width: min(510px, calc(100% - 28px)); max-width: none; max-height: calc(100dvh - 20px);
  margin: auto; padding: 11px 14px 13px; border: 0; border-radius: 17px;
  color: var(--ink); background: var(--wb-panel); box-shadow: 0 22px 65px #0006;
}
.rnp-reader::backdrop { background: #10111ac4; backdrop-filter: blur(4px); }
.rnp-header, .rnp-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rnp-header { margin-bottom: 19px; }
.rnp-header h2 { margin: 0; font-size: 15px; font-weight: 650; }
.rnp-pad {
  position: relative; isolation: isolate; perspective: 1140px;
  height: clamp(205px, calc(100dvh - 153px), 600px);
  border-radius: 7px 7px 10px 10px; background: #d9d1c0;
  box-shadow: 0 3px #cbc4b6, 0 6px #eee8da, 0 9px #afa79a, 0 15px 24px #0004;
}
.rnp-binding {
  position: absolute; z-index: 4; top: -10px; inset-inline: 8%;
  display: flex; justify-content: space-between; pointer-events: none;
}
.rnp-binding span {
  width: clamp(11px, 3.4vw, 19px); height: 25px; box-sizing: border-box;
  border: 3px solid #625e5a; border-top-color: #c4bfb9; border-right-color: #8a847d;
  border-radius: 48% 48% 39% 39%; box-shadow: 1px 2px 1px #29252566;
  transform: rotate(9deg);
}
.rnp-sheet {
  position: absolute; inset: 0; transform-origin: center 0;
  border-radius: inherit; backface-visibility: hidden; overflow: hidden;
  color: #272e39;
  background: linear-gradient(90deg, transparent 0 11%, #df9b90a0 11% calc(11% + 1px), transparent 0),
    repeating-linear-gradient(#fbf8ef 0 27px, #cad6e3 27px 28px);
}
.rnp-cover {
  background: linear-gradient(124deg, #ff8b60, #f2633e 66%, #df4f2e);
  color: #362019; box-shadow: inset 0 1px #fff5, inset 0 -2px #85352050;
}
.rnp-cover-label {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; padding: 12%; text-align: start;
}
button.rnp-cover-label { cursor: pointer; }
.rnp-cover-label strong { font-size: clamp(32px, 6vw, 49px); font-weight: 750; letter-spacing: -.045em; }
.rnp-cover-label span { margin-top: 5px; font-size: 13px; }
.rnp-paper {
  height: 100%; box-sizing: border-box; overflow: auto; overscroll-behavior: contain;
  padding: 28px 8% 27px 15%; font: 16px/28px 'Coming Soon', cursive;
  overflow-wrap: anywhere;
}
.rnp-paper h3 { font-size: 24px; line-height: 28px; font-weight: 700; }
.rnp-paper time { display: block; min-height: 28px; color: #566279; font-size: 13px; }
.rnp-paper section { margin-top: 14px; }
.rnp-paper h4 { font-weight: 700; color: #293a63; }
.rnp-paper p { white-space: pre-wrap; }
.rnp-nav { padding-top: 17px; }
.rnp-nav span { font-size: 12px; color: var(--wb-subtle); }
.rnp-nav button:last-child svg { transform: rotate(180deg); }
.rnp-turn-up { z-index: 3; pointer-events: none; animation: reflection-page-up 410ms cubic-bezier(.4,.08,.28,1) both; }
.rnp-turn-down { z-index: 3; pointer-events: none; animation: reflection-page-up 410ms cubic-bezier(.4,.08,.28,1) reverse both; }
@keyframes reflection-page-up {
  from { transform: rotateX(0); filter: brightness(1); }
  to { transform: rotateX(112deg); filter: brightness(.84); }
}
@media (prefers-reduced-motion: reduce) {
  .rnp-turn-up, .rnp-turn-down { animation-duration: 1ms; }
}
@media (max-width: 600px) {
  .rf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .rf-note { min-height: 164px; padding: 9px; }
  .rf-note b { font-size: 13px; }
  .rf-preview { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .rf-note { transition: none; } }
.wb-books { padding: 11px 8px 22px; }
.wb-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 185px), 235px)); align-items: start; gap: 26px 22px; }
.wb-shelf-card { min-width: 0; }
.wb-shelf-cover {
  box-sizing: border-box; position: relative; display: block; width: 100%; aspect-ratio: 3 / 4;
  border-radius: 5px 11px 11px 5px; background: #ddcfbc; border: 1px solid #0002;
  box-shadow: 2px 8px 17px #0003, 2px 2px 0 #9b9b9b66; transition: transform .18s ease, box-shadow .18s ease;
}
.wb-shelf-cover:has(button:not(:disabled)):hover, .wb-shelf-new:not(:disabled):hover {
  transform: translateY(-3px); box-shadow: 2px 12px 21px #0004, 2px 2px 0 #9b9b9b66;
}
.wb-shelf-art { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.wb-shelf-cover::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, #0002 0, #ffffff1f 3%, #0002 4.4%, transparent 7%, transparent 98%, #0002);
  box-shadow: inset 0 1px 0 #ffffff38;
}
.wb-shelf-open { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.wb-shelf-open:disabled { cursor: default; }
.wb-shelf-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(145deg, #d0d1d4, #abadb1); color: #282a31; padding: 10px; font-size: 14px; }
.wb-shelf-add-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #68697059; border-radius: 50%; background: #ffffff32; }
.wb-shelf-caption { display: flex; align-items: center; gap: 4px; padding: 9px 0 0; }
.wb-shelf-caption > span { min-width: 0; flex: 1; }
.wb-shelf-caption b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.wb-shelf-caption small, .wb-book-pick :is(p, small, legend) { display: block; color: var(--wb-subtle); font-size: 11px; }
.wb-shelf-caption .wb-icon-btn { width: 30px; }
.workbench .wb-publication-action { margin-top: 7px; }
.wb-publication-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--wb-subtle); }
.ml-dialog .wb-publication-cases label { display: flex; align-items: flex-start; gap: 9px; padding-block: 8px; }
.ml-dialog .wb-publication-cases label input { flex: none; width: auto; margin-top: 3px; accent-color: var(--wb-accent); }
.wb-publication-cases label small { margin-top: 3px; line-height: 1.4; }
.wb-clinic-share { border-top: 1px solid var(--wb-border); padding-top: 8px; }
.wb-clinic-share summary { cursor: pointer; font-size: 13px; font-weight: 650; }
.wb-clinic-share > :not(summary) { margin-top: 8px; }
.ml-dialog .wb-share-check { display: flex; align-items: flex-start; gap: 8px; }
.ml-dialog .wb-share-check input { width: auto; flex: none; margin-top: 2px; accent-color: var(--wb-accent); }
.wb-share-qr { width: 200px; margin: 6px auto; padding: 8px; background: #fff; border-radius: 10px; }
.wb-share-qr svg { display: block; width: 100%; height: auto; }
.wb-btn.wb-send { background: #0ea5e9; border-color: #0ea5e9; color: #fff; font-weight: 600; }
.wb-share-opts { display: grid; gap: 6px; margin: 4px 0; padding: 8px 10px; border: 1px solid var(--wb-border); border-radius: 8px; }
.wb-share-opts legend { padding-inline: 4px; font-size: 12px; color: var(--wb-subtle); }
@media (max-width: 600px) {
  .wb-books { padding-inline: 4px; }
  .wb-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 11px; }
}
@media (prefers-reduced-motion: reduce) { .wb-shelf-cover { transition: none; } }
.wb-book-pick { max-height: 42dvh; overflow: auto; border: 1px solid var(--wb-border); border-radius: 7px; padding: 5px; }
.wb-book-pick legend { padding-inline: 5px; }
.wb-book-pick label { display: flex; gap: 8px; align-items: center; padding: 4px 6px; min-height: 34px; border-radius: 5px; }
.wb-book-pick label:hover { background: var(--wb-hover); }
.ml-dialog .wb-book-pick label { display: flex; gap: 8px; font-size: 13px; }   /* checkbox beside the name */
.ml-dialog .wb-book-pick label span { color: inherit; }
.wb-book-pick .wb-book-all { font-weight: 600; border-bottom: 1px solid var(--wb-border); border-radius: 0; margin-bottom: 2px; }
.ml-dialog .wb-book-pick input { width: auto; flex: none; padding: 0; accent-color: var(--wb-accent); }   /* beats the full-width dialog input rule */
.wb-book-pick small { margin-left: auto; }
.wb-error { color: var(--danger); font-size: 12px; }
.ml-library { min-width: 0; max-width: 1380px; }
.ml-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.ml-tools .wb-btn { min-height: 36px; }
.ml-search-box { display: flex; align-items: center; gap: 7px; width: min(380px,100%); min-height: 36px;
  padding: 0 9px; color: var(--wb-subtle); background: var(--wb-panel); border: 1px solid var(--wb-border); border-radius: 8px; }
.ml-search-box:focus-within { border-color: var(--wb-accent); }
.ml-search-box svg { flex: none; }
.ml-search { min-width: 0; width: 100%; background: none; color: var(--ink); font-size: 13px; }
.ml-search:focus-visible { outline: none !important; }
.ml-dialog input, .ml-dialog select { width: 100%; background: var(--bg); border: 1px solid var(--wb-border); color: var(--ink); padding: 7px 9px; border-radius: 6px; }
.ml-helper, .ml-empty { color: var(--wb-subtle); font-size: 12px; }
.ml-helper { margin: 0 0 9px; }
.ml-empty { padding: 20px 10px; border: 1px dashed var(--wb-border); border-radius: 8px; text-align: center; }
.ml-explorer { display: grid; grid-template-columns: clamp(164px,19%,220px) minmax(0,1fr); gap: 12px; align-items: start; }
.ml-folder-nav { position: sticky; top: 10px; padding: 8px; }
.ml-folder-nav h2 { padding: 5px 8px 8px; font-size: 12px; color: var(--wb-subtle); }
.ml-folder-list { display: grid; gap: 2px; max-height: calc(100dvh - 95px); overflow: auto; padding: 2px; overscroll-behavior: contain; }
.ml-folder { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; min-height: 37px; width: 100%;
  border-radius: 6px; padding: 6px 8px; text-align: start; font-size: 13px; }
.ml-folder:hover { background: var(--wb-hover); }
.ml-folder[aria-pressed=true], .ml-folder[data-drop-active=true] { background: var(--wb-active); color: var(--ink); font-weight: 600; }
.ml-folder[data-drop-active=true] { outline: 2px solid var(--wb-accent); outline-offset: -2px; }
.ml-folder-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-folder-count { flex: none; color: var(--wb-subtle); font-size: 11px; font-variant-numeric: tabular-nums; }
.ml-folder[aria-pressed=true] .ml-folder-count { color: var(--ink); }
.ml-path, .ml-content-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ml-path { min-height: 20px; flex-wrap: wrap; margin-bottom: 4px; color: var(--wb-subtle); font-size: 12px; }
.ml-path button:hover { color: var(--ink); text-decoration: underline; }
.ml-path span { overflow-wrap: anywhere; }
.ml-content-head { justify-content: space-between; margin-bottom: 8px; }
.ml-content-head h2 { min-width: 0; color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ml-content-head > span { flex: none; color: var(--wb-subtle); font-size: 12px; }
.ml-type-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ml-type-filters .wb-btn { min-height: 28px; color: var(--wb-subtle); }
.ml-type-filters .wb-btn[aria-pressed=true] { background: var(--wb-active); color: var(--ink); border-color: transparent; }
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,190px),1fr)); gap: 13px; align-items: start; }
@media (max-width: 640px) {
  .ml-explorer { grid-template-columns: minmax(0,1fr); }
  .ml-folder-nav { top: 0; z-index: 2; padding: 5px; }
  .ml-folder-nav h2 { padding-bottom: 3px; }
  .ml-folder-list { display: flex; max-height: none; overflow: auto; }
  .ml-folder { width: auto; min-height: 40px; flex: 0 0 auto; max-width: 220px; }
  .ml-search-box { width: 100%; }
  .ml-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
}
.ml-card { min-width: 0; }
.ml-card.ml-dragging { opacity: .65; user-select: none; }
.ml-media { position: relative; }
.ml-cover { display: block; width: 100%; border-radius: 13px; }
.ml-cover img { display: block; width: 100%; height: auto; border-radius: inherit; }
.ml-reference-placeholder { display: flex; align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 105px; padding: 13px; border-radius: inherit; background: var(--wb-panel); border: 1px solid var(--wb-border);
  color: var(--ink); text-align: start; overflow-wrap: anywhere; }
.ml-reference-placeholder svg { color: var(--wb-accent); margin-bottom: 3px; }
.ml-reference-placeholder strong { font-size: 12px; font-weight: 650; }
.ml-reference-placeholder small { font-size: 11px; color: var(--wb-subtle); }
.ml-media-actions { position: absolute; top: 7px; right: 7px; display: flex; align-items: center; gap: 2px; padding: 2px;
  background: rgba(23,23,23,.74); border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
  color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ml-card-action, .ml-grip { display: grid; place-items: center; flex: none; width: 27px; min-height: 27px; border-radius: 5px; }
.ml-card-action:hover { background: rgba(255,255,255,.18); }
.ml-grip { cursor: grab; touch-action: none; }.ml-grip:active { cursor: grabbing; }
@media (hover: hover) and (pointer: fine) {
  .ml-media-actions { opacity: 0; pointer-events: none; }
  .ml-media:hover .ml-media-actions, .ml-media:focus-within .ml-media-actions,
  .ml-dragging .ml-media-actions { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: no-preference) { .ml-media-actions { transition: opacity .14s ease; } }
@media (pointer: coarse) {
  .ml-media-actions { top: 4px; right: 4px; }
  .ml-card-action, .ml-grip { width: 34px; min-height: 34px; }
}

.ml-dialog { width: min(460px, 92vw); margin: auto; max-height: 92dvh; background: var(--wb-panel); color: var(--ink); border: 1px solid var(--wb-border); border-radius: 12px; padding: 14px; }
.ml-dialog::backdrop { background: #101018b0; }
.ml-dialog form { display: grid; gap: 11px; }
.ml-dialog h2 { font-size: 16px; }
.ml-dialog label { display: grid; gap: 4px; font-size: 12px; }
.ml-dialog label span { color: var(--wb-subtle); }
.ml-dialog input, .ml-dialog select { font-size: 16px; }
.ml-dialog .ml-consent { display: flex; flex-wrap: wrap; align-items: center; }
.ml-dialog .ml-consent input { width: auto; accent-color: var(--wb-accent); }
.ml-dialog footer { display: flex; justify-content: flex-end; gap: 7px; }
.ml-picture { width: min(820px, 92vw); }
.ml-picture header { display: flex; gap: 6px; margin-bottom: 8px; }
.ml-picture header b { margin-right: auto; }
.ml-picture > img { max-height: 75dvh; margin: auto; object-fit: contain; }
.phone-case-dialog { inset: 0; margin: 0; border: 0; padding: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; background: #f7f8fa; color: #182031; }
.phone-case-dialog[open] { display: flex; flex-direction: column; }
.phone-case-dialog::backdrop { background: #131822b0; }
.phone-case-header { display: flex; align-items: center; gap: 11px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; background: #fff; border-bottom: 1px solid #e0e5ec; }
.phone-case-header button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid #e0e5ec; flex: none; }
.phone-case-header h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 650; }
.phone-case-content { overflow: auto; padding: 14px 12px max(18px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.phone-case-visit + .phone-case-visit { margin-top: 22px; padding-top: 16px; border-top: 1px solid #dde3eb; }
.phone-case-visit h2 { font-weight: 650; font-size: 16px; margin-bottom: 10px; }
.phone-case-group + .phone-case-group { margin-top: 15px; }
.phone-case-group h3 { font-weight: 600; font-size: 13px; color: #465975; margin-bottom: 7px; }
.phone-case-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 7px; }
.phone-case-photo { min-width: 0; background: #fff; border-radius: 8px; border: 1px solid #e0e5ec; overflow: hidden; }
.phone-case-image { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #eef1f5; }
.phone-case-image > :is(img, svg) { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.phone-case-photo figcaption { font-size: 11px; padding: 4px 6px; }
@media (orientation: landscape) { .phone-case-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .wb-shell { grid-template-columns: 143px minmax(0, 1fr); }
  .wb-nav-item { font-size: 11.5px; padding-inline: 5px; gap: 5px; }
  .wb-columns { grid-template-columns: minmax(0, 1fr) minmax(153px, 24%); }
  .wb-top, .wb-columns { padding-inline: 10px; }
}
@media (max-width: 760px) {
  .wb-shell { display: block; }
  .wb-rail { position: static; min-height: 0; padding: 6px 9px; border: 0; border-bottom: 1px solid var(--wb-border); }
  .wb-brand { padding: 1px 3px 4px; }
  .wb-rail nav { display: flex; overflow: auto; padding: 2px 3px; }
  .wb-nav-item { width: auto; }
  .wb-storage { display: none; }
  .wb-columns { grid-template-columns: minmax(0, 1fr); }
  .wb-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 445px) {
  .wb-top h1 { font-size: 17px; }
  .wb-top .wb-actions { flex-wrap: nowrap; gap: 3px; }
  .wb-top .wb-btn { padding-inline: 5px; font-size: 10px; }
  .wb-metrics { gap: 5px; }
  .wb-metric { padding-inline: 7px; }
  .wb-metric b { font-size: 19px; }
  .wb-metric svg { display: none; }
  .wb-case-toolbar { gap: 6px; align-items: start; flex-direction: column; }
  .workbench .cb-search { width: min(175px, 44vw); }
  .workbench .case-row .cr-meta { width: 84px; font-size: 10px; }
  .wb-case-head { grid-template-columns: minmax(0, 1fr) 87px 77px; }
  .wb-chart-dates span:nth-child(even) { visibility: hidden; }
}
@media (pointer: coarse) {
  .wb-nav-item, .workbench .case-row, .wb-btn, .wb-icon-btn { min-height: 42px; }
  .wb-shortcut .wb-btn { min-height: 38px; }
}

.wb-overview { display: grid; gap: 12px; min-width: 0; }
.dashboard-appearance-controls { display: grid; gap: 9px; }
.wb-appearance {
  width: min(350px, calc(100vw - 32px)); margin: auto; padding: 16px;
  border-radius: 16px; color: var(--text); box-shadow: 0 20px 65px #11182144;
}
.wb-appearance::backdrop { background: #17201e66; backdrop-filter: blur(4px); }
.wb-appearance header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wb-appearance header h2 { font-size: 16px; }
.wb-appearance .set-themes, .wb-appearance .set-seg { margin: 0; }
.wb-appearance .set-themes button, .wb-appearance .set-seg button { color: var(--ink); background: var(--surface); border-color: var(--line); }
.wb-appearance .set-themes button.on, .wb-appearance .set-seg button.on {
  background: var(--hover); border-color: var(--wb-accent); box-shadow: inset 0 0 0 1px var(--wb-accent);
}

.workbench.t-framed {
  --wb-rail: #111;
  --bg: #1d1d1d;
  --wb-panel: #252525;
  --wb-border: #383838;
  --wb-hover: #323232;
  --wb-accent: #e7e7e7;
  --wb-subtle: #bcbcbc;
  --wb-active: #444;
  --ink: #fafafa;
  --text: #eee;
  --activity: #272d34;
  --activity-series: #a6c8ee;
  --metric-lilac: #3b3447; --metric-mint: #2d4035; --metric-cream: #423d30;
  --metric-ink: #f7f7f7;
}
.workbench.t-framed.tone-light {
  --wb-rail: #191919;
  --bg: #fff;
  --wb-panel: #fff;
  --wb-border: #e5e5e5;
  --wb-hover: #f1f1f1;
  --wb-accent: #202020;
  --wb-subtle: #595959;
  --wb-active: #eee;
  --ink: #151515;
  --text: #242424;
  --activity: #e8f2fc;
  --activity-series: #336f9e;
  --metric-lilac: #e9e3f1; --metric-mint: #e0efe3; --metric-cream: #f5f0dd;
  --metric-ink: #232323;
}
.t-framed .wb-shell { grid-template-columns: 65px minmax(0, 1fr); }
.t-framed .wb-rail {
  --ink: #fafafa; --wb-active: #333; --wb-hover: #292929; --wb-border: #424242;
  --wb-accent: #f5f1e4;
  padding: 12px 11px 8px; color: #ddd; border: 0; align-items: center;
}
.t-framed .wb-brand { padding: 0 0 20px; }
.t-framed .wb-logo { width: 34px; height: 34px; border-radius: 11px; color: #191919; }
.t-framed .wb-nav-item { justify-content: center; width: 41px; position: relative; padding: 6px; min-height: 40px; border-radius: 10px; }
.t-framed .wb-nav-item[aria-current=page]::before {
  content: ''; position: absolute; inset: 10px auto 10px 0; width: 2px; border-radius: 4px; background: #eee;
}
.t-framed .wb-brand-label, .t-framed .wb-nav-item span, .t-framed .wb-storage > span { display: none; }
.t-framed .wb-storage { justify-content: center; padding: 10px 3px 5px; }
.t-framed .wb-top { padding-inline: clamp(12px, 2vw, 24px); min-height: 58px; border-bottom: 0; }
.t-framed .wb-columns { padding-inline: clamp(12px, 2vw, 24px); }
.t-framed .wb-panel { border-radius: 13px; }
.t-framed .wb-metric { border-radius: 12px; color: var(--metric-ink); min-height: 78px; }
.t-framed .wb-primary { color: #171717; }
.t-framed.tone-light .wb-primary { color: #fff; }
.t-framed .wb-yellow { background: var(--metric-lilac); }
.t-framed .wb-purple { background: var(--metric-mint); }
.t-framed .wb-green { background: var(--metric-cream); }
.t-framed .wb-activity { --wb-accent: var(--activity-series); background: var(--activity); border-color: transparent; }
.t-framed .wb-shortcut::before { display: none; }
.t-framed .wb-gold { --wb-card-accent: #e5edf8; background: #232323; }
.t-framed .wb-gold h2 { color: #fff; }
.t-framed .wb-gold p { color: #ddd; }
.t-framed .wb-shortcut-icon { background: color-mix(in srgb,var(--wb-card-accent) 24%,transparent); }
.t-framed.tone-light .wb-shortcut:not(.wb-gold) .wb-shortcut-icon { color: #525252; }
@media (min-width: 1180px) {
  .t-framed .wb-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
  .t-framed .wb-activity { grid-row: 1; grid-column: 1; }
  .t-framed .wb-metrics { grid-row: 1; grid-column: 2; gap: 7px; }
  .t-framed .wb-metric { align-items: flex-start; padding: 12px 10px; }
  .t-framed .wb-metric b { margin-top: 8px; font-size: clamp(17px, 1.65vw, 25px); }
}
@media (max-width: 760px) {
  .t-framed .wb-shell { display: block; }
  .t-framed .wb-rail { position: static; min-height: 0; padding: 6px 6px 7px; align-items: stretch; }
  .t-framed .wb-brand { padding: 3px 3px 6px; }
  .t-framed .wb-brand-label, .t-framed .wb-nav-item span { display: inline; }
  .t-framed .wb-nav-item { width: auto; padding: 4px 8px; }
  .t-framed .wb-nav-item[aria-current=page]::before { display: none; }
  .t-framed .wb-top, .t-framed .wb-columns { padding-inline: 9px; }
}

/* "Put it on your website": small, calm steps that match the rest of the panel */
.wb-embed { margin-top: 10px; border: 1px solid var(--wb-border); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.wb-embed summary { cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.wb-embed ol { list-style: none; counter-reset: step; margin: 10px 0 12px; padding: 0; display: grid; gap: 8px; }
.wb-embed li { counter-increment: step; position: relative; padding-left: 30px; min-height: 20px; color: var(--wb-subtle); font-size: 12.5px; }
.wb-embed li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--wb-accent); border: 1px solid var(--wb-accent); }
.wb-embed li b { color: var(--ink); font-weight: 600; }
.ml-dialog .wb-embed label { font-size: 11.5px; letter-spacing: .02em; }
.ml-dialog .wb-embed input { font-size: 13px; height: 34px; padding: 0 10px; border-radius: 8px; }
.ml-dialog .wb-embed textarea { width: 100%; box-sizing: border-box; margin: 8px 0; font: 11.5px/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--wb-border); background: var(--bg); color: var(--ink); resize: none; }
.wb-embed .wb-publication-note { font-size: 11.5px; margin-top: 8px; }

/* Share buttons: Send, Show QR, and the two downloads joined in one bar.
   Colours come from the dialog's own text colour, so they work in light and dark mode. */
.wb-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.wb-share-row button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; margin: 0; box-sizing: border-box;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 9px; background: transparent; color: inherit;
  font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer; transition: background .15s; }
.wb-share-row button:hover:not(:disabled) { background: color-mix(in srgb, currentColor 8%, transparent); }
.wb-share-row button:active:not(:disabled) { transform: scale(.98); }
.wb-share-row button:disabled { opacity: .45; cursor: default; }
.wb-share-row .wb-send { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.wb-share-row .wb-send:hover:not(:disabled) { background: #0284c7; }
.wb-share-group { display: inline-flex; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 9px; overflow: hidden; }
.wb-share-group button { border: 0; border-radius: 0; }
.wb-share-group button + button { border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.wb-send-wrap { position: relative; display: inline-flex; }
.wb-send-wrap .wb-send span { font-size: 10px; opacity: .85; margin-left: -2px; }
.wb-send-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; display: grid; min-width: 140px; padding: 4px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent); background: var(--wb-panel); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
body.board-dark-mode .wb-send-menu { background: #26262a; }
.wb-share-row .wb-send-menu button { border: 0; height: 32px; justify-content: flex-start; border-radius: 7px; }


/* Create content (create-content.js) */
.cc-panel{padding:4px 2px;min-height:calc(100dvh - 110px);display:flex;flex-direction:column;border:0;background:none}
.cc{color:inherit}
.cc-lead{font-size:15px;margin:0 0 14px}
.cc-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,220px));gap:14px}
.cc-tile{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:18px;border:1px solid var(--wb-border);border-radius:14px;background:var(--wb-hover);color:inherit;font:inherit;text-align:left;cursor:pointer}
.cc-tile:hover{border-color:var(--wb-accent)}
.cc-tile svg{width:28px;height:28px;stroke:var(--wb-accent);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-bottom:6px}
.cc-tile b{font-size:15px}.cc-tile small,.cc-note,.cc-cases small{color:var(--wb-subtle);font-size:12.5px}
.cc-note{margin:10px 0}
.cc-bar{display:flex;align-items:center;gap:10px;margin-bottom:14px}.cc-bar b{font-size:15px}.cc-sp{flex:1}
.cc-bar label.wb-btn{cursor:pointer}
.cc-search{width:100%;max-width:360px;padding:8px 12px;border-radius:10px;border:1px solid var(--wb-border);background:var(--wb-hover);color:inherit;font:inherit;font-size:14px;margin-bottom:10px}
.cc-cases{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.cc-cases button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:11px 13px;border:1px solid var(--wb-border);border-radius:10px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.cc-cases button:hover{background:var(--wb-hover)}
.cc-slots{display:flex;gap:12px}
.cc-slot{position:relative;width:200px;aspect-ratio:4/3;border-radius:12px;overflow:hidden;border:1px solid var(--wb-border);background:var(--wb-hover)}
.cc-slot.empty{border-style:dashed}
.cc-slot img{width:100%;height:100%;object-fit:cover}
.cc-slot span{position:absolute;left:6px;bottom:6px;background:rgba(0,0,0,.65);color:#fff;font-size:11.5px;padding:2px 8px;border-radius:6px}
.cc-visits h3{font-size:12px;font-weight:600;color:var(--wb-subtle);text-transform:uppercase;letter-spacing:.04em;margin:14px 0 6px}
.cc-grid{display:flex;flex-wrap:wrap;gap:8px}
.cc-photo{position:relative;width:110px;aspect-ratio:4/3;padding:0;border:2px solid transparent;border-radius:9px;overflow:hidden;background:var(--wb-hover);cursor:pointer}
.cc-photo img{width:100%;height:100%;object-fit:cover;display:block}
.cc-photo.on{border-color:var(--wb-accent)}
.cc-photo em{position:absolute;top:4px;right:4px;font-style:normal;font-size:11px;font-weight:700;background:var(--wb-accent);color:var(--wb-rail);border-radius:5px;padding:1px 6px}
.cc-go{margin-top:auto;padding-top:16px;display:flex;justify-content:flex-end}
.cc-frame{flex:1;width:100%;height:calc(100dvh - 44px);border:0;display:block;background:transparent}
@media (max-width:900px){.cc-tiles{grid-template-columns:1fr}}
/* a tool open: it takes the whole dashboard area */
.wb-main.cc-open .wb-top{display:none}
.wb-main.cc-open .wb-columns{padding:0;gap:0}
.cc-panel.cc-tool{padding:0;min-height:100dvh;background:var(--wb-panel)}
.cc-tool .cc-bar{height:44px;margin:0;padding:0 10px;border-bottom:1px solid var(--wb-border)}
.cc-tool .cc-bar b{font-size:13.5px}
.cc-tool .cc-back{height:30px;padding:0 10px}
