.doho-conversation-tools{min-width:0;color:#264e53}.doho-conversation-menu{overflow:hidden;border:1px solid #e3e9dc;background:#fffefa;border-radius:18px}.doho-conversation-entry{display:flex;align-items:center;gap:13px;width:100%;padding:15px 14px;background:transparent;border:0;text-align:left;color:inherit;min-height:67px}.doho-conversation-entry+.doho-conversation-entry{border-top:1px solid #edf0e7}.doho-conversation-entry:hover{background:#f0f5ea}.doho-conversation-entry-icon{display:grid;place-items:center;background:#e8f1e8;color:#4c7965;flex:0 0 34px;height:34px;border-radius:11px;font-size:22px}.doho-conversation-entry-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.doho-conversation-entry-copy strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}.doho-conversation-entry-copy small{font-size:11px;color:#8a9982;line-height:1.55;overflow-wrap:anywhere}.doho-conversation-chevron{font-size:23px;color:#96a28b}.doho-conversation-note,.doho-conversation-footnote{font-size:12px;line-height:1.75;color:#809178}.doho-conversation-footnote{font-size:10px;padding:5px 10px;margin-top:20px;text-align:center}.doho-conversation-back{background:none;border:0;color:#557b64;padding:4px 0 16px;font-size:12px;min-height:40px}.doho-conversation-form{display:grid;gap:15px}.doho-conversation-form label{display:grid;gap:8px;font-size:12px}.doho-conversation-form input,.doho-conversation-search,.doho-conversation-link-text{width:100%;box-sizing:border-box;min-height:46px;border:1px solid #d7e2d1;background:#fff;border-radius:12px;padding:12px;font-size:16px;color:#264e53}.doho-conversation-results{display:grid;gap:9px;margin:15px 0}.doho-conversation-message{display:flex;flex-direction:column;gap:7px;border:1px solid #dfe7d8;background:#fffefa;border-radius:12px;padding:13px;text-align:left;color:#325c53;overflow-wrap:anywhere}.doho-conversation-message>span{font-size:13px;white-space:pre-wrap}.doho-conversation-message>small{font-size:10px;color:#8d9c81}.doho-conversation-tabs{display:flex;gap:4px;padding:4px;background:#edf4e8;border-radius:12px}.doho-conversation-tab{flex:1;background:none;border:0;color:#85957b;min-height:40px;font-size:12px;border-radius:9px}.doho-conversation-tab[aria-selected=true]{background:#fff;color:#2b6066;font-weight:600;box-shadow:0 2px 6px #244d530a}.doho-conversation-gallery{display:grid;gap:9px;margin:15px 0}.doho-conversation-gallery.photos{grid-template-columns:repeat(3,minmax(0,1fr))}.doho-conversation-file,.doho-conversation-link{display:flex;min-width:0;flex-direction:column;gap:6px;border:1px solid #e0e7d9;background:#fff;padding:12px;border-radius:12px;text-align:left;color:#3c6559}.doho-conversation-file>img{aspect-ratio:1;width:100%;object-fit:cover;border-radius:8px}.doho-conversation-file>strong,.doho-conversation-link>strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.doho-conversation-file>small,.doho-conversation-link>span{font-size:10px;line-height:1.6;color:#88997c;overflow-wrap:anywhere}.doho-conversation-gallery.photos>.doho-conversation-file{padding:6px}.doho-conversation-gallery.photos>.doho-conversation-note{grid-column:1/-1}.doho-conversation-link-text{min-height:92px;resize:vertical;margin:8px 0 14px}.doho-conversation-tools>a.button{display:inline-flex;text-decoration:none;margin-right:8px}.doho-conversation-tools button:focus-visible,.doho-conversation-tools a:focus-visible{outline:2px solid #85ad89;outline-offset:2px}.doho-conversation-tools button:disabled{opacity:.5;cursor:wait}@media(max-width:420px){.doho-conversation-entry{padding:13px 11px;gap:10px}.doho-conversation-entry-copy strong{font-size:13px}}

/* Full-window image viewer. Desktop: title row, picture with a date-grouped
   strip on the right, sender and tools along the bottom. Phones (portrait):
   sender at the top, picture, tools, then a horizontal strip. One DOM serves
   both layouts; only grid placement changes. */
.image-viewer-dialog {
  --image-viewer-background: #141617;
  --image-viewer-panel: #1d2021;
  --image-viewer-foreground: #f2f4f3;
  --image-viewer-muted: #a9b2ae;
  --image-viewer-control: rgb(255 255 255 / 8%);
  --image-viewer-control-hover: rgb(255 255 255 / 16%);
  --image-viewer-border: rgb(255 255 255 / 12%);
  --image-viewer-accent: #7fd1c0;
  --image-viewer-shadow: 0 16px 48px rgb(0 0 0 / 55%);
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--image-viewer-background);
  color: var(--image-viewer-foreground);
  color-scheme: dark;
}

.image-viewer-dialog::backdrop { background: var(--image-viewer-background); }
.image-viewer-dialog[open] { display: block; }

.image-viewer-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr) auto auto 128px;
  grid-template-rows: 52px minmax(0, 1fr) 64px;
  grid-template-areas:
    "title title title more close"
    "stage stage stage stage strip"
    "sender footer footer footer footer";
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--image-viewer-background);
}

.image-viewer-shell.strip-hidden,
.image-viewer-shell.single-image {
  grid-template-areas:
    "title title title more close"
    "stage stage stage stage stage"
    "sender footer footer footer footer";
}

.image-viewer-heading { grid-area: title; display: flex; align-items: center; min-width: 0; padding: 0 16px; }
.image-viewer-title { margin: 0; overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer-more { grid-area: more; align-self: center; margin-right: 4px; }
.image-viewer-close { grid-area: close; align-self: center; justify-self: end; margin-right: 12px; }

.image-viewer-control {
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--image-viewer-foreground);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.image-viewer-control svg {
  width: 22px;
  height: 22px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-viewer-more svg { fill: currentColor; stroke: none; }

.image-viewer-control:hover,
.image-viewer-control:focus-visible,
.image-viewer-menu-item:hover,
.image-viewer-menu-item:focus-visible { background: var(--image-viewer-control-hover); }

.image-viewer-control:focus-visible,
.image-viewer-menu-item:focus-visible,
.image-viewer-thumb:focus-visible,
.image-viewer-reaction:focus-visible,
.image-viewer-strip-retry:focus-visible {
  outline: 3px solid var(--image-viewer-accent);
  outline-offset: 2px;
}

.image-viewer-control:disabled { cursor: default; opacity: .32; }
.image-viewer-control[hidden] { display: none; }

.image-viewer-menu {
  position: absolute;
  z-index: 6;
  top: 50px;
  right: 56px;
  width: min(232px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--image-viewer-border);
  border-radius: 14px;
  background: var(--image-viewer-panel);
  box-shadow: var(--image-viewer-shadow);
}

.image-viewer-menu[hidden] { display: none; }
/* 0.1.48: opened by holding the picture or a thumbnail, beside the finger. */
.image-viewer-menu.is-floating { position: fixed; right: auto; z-index: 30; }
.image-viewer-thumb, .image-viewer-viewport { -webkit-touch-callout: none; }
.image-viewer-thumb { -webkit-user-select: none; user-select: none; touch-action: pan-x pan-y; }

.image-viewer-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--image-viewer-foreground);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.image-viewer-menu-item svg { flex: 0 0 auto; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.image-viewer-menu-item:disabled { cursor: progress; opacity: .45; }

/* Stage */
.image-viewer-stage { grid-area: stage; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #0d0f10; }

.image-viewer-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: zoom-in;
}

.image-viewer-viewport.is-zoomed { cursor: grab; }
.image-viewer-viewport.is-zoomed:active { cursor: grabbing; }

.image-viewer-track {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--image-viewer-swipe-x, 0), var(--image-viewer-swipe-y, 0), 0);
  opacity: calc(1 - var(--image-viewer-dismiss, 0) * .55);
  will-change: transform;
}

.image-viewer-track.is-animating { transition: transform 190ms cubic-bezier(.2, .8, .2, 1), opacity 160ms ease; }

.image-viewer-slide { position: absolute; inset: 0; overflow: hidden; }
.image-viewer-slide[hidden] { display: none; }
.image-viewer-slide-previous { transform: translate3d(-100%, 0, 0); }
.image-viewer-slide-next { transform: translate3d(100%, 0, 0); }

.image-viewer-frame {
  position: absolute;
  inset: 12px;
  transform-origin: 50% 50%;
  transition: transform 140ms ease-out;
}

.image-viewer-dialog.image-zoomed .image-viewer-frame { transition: none; }

.image-viewer-slide-image,
.image-viewer-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.image-viewer-slide-image { opacity: 0; transition: opacity 140ms ease; }
.image-viewer-placeholder { opacity: 1; filter: blur(.4px); transition: opacity 140ms ease; }
.image-viewer-slide[data-ready="true"] .image-viewer-slide-image { opacity: 1; }
.image-viewer-slide[data-ready="true"] .image-viewer-placeholder { opacity: 0; }

.image-viewer-navigation {
  position: absolute;
  z-index: 3;
  right: 14px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgb(24 27 28 / 82%);
  box-shadow: 0 2px 12px rgb(0 0 0 / 40%);
}

.image-viewer-previous { top: calc(50% - 50px); }
.image-viewer-next { top: calc(50% + 6px); }
.image-viewer-navigation:hover { background: rgb(52 57 58 / 92%); }

.image-viewer-zoom-level {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 50%;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / 62%);
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
  pointer-events: none;
}

.image-viewer-zoom-level[hidden] { display: none; }

.image-viewer-status {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  max-width: min(460px, calc(100% - 32px));
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgb(0 0 0 / 70%);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
}

.image-viewer-status[hidden] { display: none; }

/* Strip */
.image-viewer-strip { grid-area: strip; min-width: 0; min-height: 0; border-left: 1px solid var(--image-viewer-border); background: var(--image-viewer-panel); }
.image-viewer-shell.strip-hidden .image-viewer-strip,
.image-viewer-shell.single-image .image-viewer-strip { display: none; }

.image-viewer-strip-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 10px 0 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.image-viewer-strip-date {
  flex: 0 0 auto;
  width: 100%;
  padding: 8px 4px 0;
  color: var(--image-viewer-muted);
  font-size: 12px;
  text-align: center;
}

.image-viewer-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #2a2e2f;
  cursor: pointer;
  opacity: .62;
  transition: opacity 120ms ease, border-color 120ms ease;
}

.image-viewer-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.image-viewer-thumb:hover { opacity: .9; }
.image-viewer-thumb[aria-current="true"] { border-color: #fff; opacity: 1; }

.image-viewer-strip-status {
  flex: 0 0 auto;
  min-height: 18px;
  color: var(--image-viewer-muted);
  font-size: 13px;
  text-align: center;
}

.image-viewer-strip-status[hidden] { display: none; }

.image-viewer-strip-retry {
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--image-viewer-border);
  border-radius: 9px;
  background: var(--image-viewer-control);
  color: var(--image-viewer-foreground);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

/* Sender and tools */
.image-viewer-sender {
  grid-area: sender;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 16px;
  border-top: 1px solid var(--image-viewer-border);
  background: var(--image-viewer-panel);
}

.image-viewer-sender[hidden] { visibility: hidden; display: flex; }
.image-viewer-sender-avatar { flex: 0 0 36px; width: 36px; height: 36px; }
.image-viewer-sender-avatar[hidden] { display: none; }
.image-viewer-sender-avatar > * { width: 36px !important; height: 36px !important; min-width: 0; border-radius: 50% !important; font-size: 12px; }
.image-viewer-sender-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.image-viewer-sender-name { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer-sender-time { color: var(--image-viewer-muted); font-size: 12px; white-space: nowrap; }

.image-viewer-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 12px;
  border-top: 1px solid var(--image-viewer-border);
  background: var(--image-viewer-panel);
}

.image-viewer-tools { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.image-viewer-divider { width: 1px; height: 22px; margin: 0 6px; background: var(--image-viewer-border); }

.image-viewer-reactions { display: flex; align-items: center; gap: 2px; }
.image-viewer-reactions[hidden] { display: none; }

.image-viewer-reaction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--image-viewer-foreground);
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.image-viewer-reaction span { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.image-viewer-reaction span:empty { display: none; }
.image-viewer-reaction:hover { background: var(--image-viewer-control-hover); }
.image-viewer-reaction.selected { background: rgb(127 209 192 / 22%); box-shadow: inset 0 0 0 1px var(--image-viewer-accent); }
.image-viewer-reaction[aria-disabled="true"] { cursor: progress; opacity: .6; }

.image-viewer-position { min-width: 52px; color: var(--image-viewer-muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.image-viewer-shell.single-image .image-viewer-position,
.image-viewer-shell.single-image .image-viewer-strip-toggle { display: none; }
.image-viewer-strip-toggle[aria-pressed="true"] { color: var(--image-viewer-accent); }

.image-viewer-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.image-viewer-open,
body.image-viewer-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Phones: portrait layout. */
@media (max-width: 760px) {
  .image-viewer-shell,
  .image-viewer-shell.strip-hidden {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "close sender more"
      "stage stage stage"
      "footer footer footer"
      "strip strip strip";
  }

  .image-viewer-shell.single-image {
    grid-template-areas:
      "close sender more"
      "stage stage stage"
      "footer footer footer";
  }

  .image-viewer-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    padding: 0;
  }

  .image-viewer-close { justify-self: start; margin: 0 0 0 6px; }
  .image-viewer-more { justify-self: end; margin: 0 6px 0 0; }
  .image-viewer-close, .image-viewer-more { margin-top: env(safe-area-inset-top); }
  .image-viewer-control { width: 44px; min-width: 44px; height: 44px; }

  .image-viewer-sender {
    justify-content: center;
    padding: env(safe-area-inset-top) 0 0;
    border: 0;
    background: var(--image-viewer-background);
    min-height: 56px;
  }

  .image-viewer-sender-avatar { display: none; }
  .image-viewer-sender-text { align-items: center; }

  .image-viewer-shell > .image-viewer-close,
  .image-viewer-shell > .image-viewer-more { background: var(--image-viewer-background); }

  .image-viewer-stage { background: #000; }
  .image-viewer-frame { inset: 0; }
  .image-viewer-navigation { display: none; }

  .image-viewer-footer {
    justify-content: space-between;
    gap: 6px;
    min-height: 54px;
    padding: 4px 8px;
    border: 0;
  }

  .image-viewer-tools { order: 2; margin: 0; }
  .image-viewer-reactions { order: 1; }
  .image-viewer-position, .image-viewer-strip-toggle, .image-viewer-divider { display: none; }
  .image-viewer-reaction { min-width: 34px; height: 38px; padding: 0 4px; font-size: 19px; }

  .image-viewer-strip {
    border: 0;
    border-top: 1px solid var(--image-viewer-border);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .image-viewer-shell.strip-hidden .image-viewer-strip { display: block; }

  .image-viewer-strip-list {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    height: 74px;
    padding: 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .image-viewer-strip-list::-webkit-scrollbar { display: none; }

  .image-viewer-strip-date {
    width: auto;
    padding: 0 2px 0 6px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 11px;
    white-space: nowrap;
  }

  .image-viewer-thumb { width: 54px; height: 54px; border-radius: 7px; }
  .image-viewer-menu { top: calc(env(safe-area-inset-top) + 52px); right: 8px; }
}

/* Touch screens zoom with two fingers or a double tap. */
@media (pointer: coarse) {
  .image-viewer-zoom-in,
  .image-viewer-zoom-out { display: none; }
  .image-viewer-tools .image-viewer-divider:last-of-type { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .image-viewer-dialog *,
  .image-viewer-dialog *::before,
  .image-viewer-dialog *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Bundled windowed list: keep this in the existing updater module. */
.windowed-list{position:relative;overflow:auto;overflow-anchor:none;overscroll-behavior:contain;scroll-behavior:auto;contain:layout style paint}
.windowed-list-spacer{display:block;width:1px;min-height:0;max-height:none;pointer-events:none;contain:strict}
.windowed-list-row{content-visibility:auto;contain:layout style paint;contain-intrinsic-size:auto var(--windowed-list-item-size,72px)}
.windowed-list-empty{margin:0;padding:28px 16px;text-align:center;color:#78877e;font-size:13px;line-height:1.6}
.windowed-list-sentinel{display:block;width:calc(100% - 24px);min-height:42px;margin:6px 12px 12px;border:1px solid #dce6df;border-radius:10px;background:#f7f9f5;color:#356a61;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.windowed-list-sentinel:disabled{cursor:progress;opacity:.7}
.windowed-list-sentinel:focus-visible{outline:3px solid #80b5b1;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.windowed-list{scroll-behavior:auto!important}.windowed-list-row,.windowed-list-sentinel{animation:none!important;transition:none!important}}

.conversation-list.windowed-list {
  min-height: 0;
  padding-top: 0;
}

.conversation-list.windowed-list > .conversation-item {
  min-height: 76px;
  margin-block: 0;
}

.conversation-list.windowed-list > .windowed-list-sentinel {
  flex: none;
}

/* The workbook stays read-only and renders one bounded 60x30 cell window.
   Sticky headings retain spreadsheet context while both axes move locally. */
/* 0.1.42 — document readers: one zoomable page without row numbers, column
   letters or a toolbar on top; zoom buttons float in the corner. */
.doho-zoom-viewport{touch-action:pan-x pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.doho-zoom-viewport:focus-visible{outline:2px solid #4b8b7c;outline-offset:-2px}
.doho-zooming{will-change:transform}
.doho-zoom-controls{position:absolute;right:14px;bottom:14px;z-index:6;display:flex;align-items:center;gap:2px;padding:4px;border:1px solid #d6e1dc;border-radius:999px;background:#ffffffeb;box-shadow:0 6px 22px #12332d2e;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.doho-zoom-controls button{display:grid;place-items:center;min-width:40px;height:40px;padding:0 8px;border:0;border-radius:999px;background:transparent;color:#245b55;font:inherit;font-size:20px;line-height:1;cursor:pointer}
.doho-zoom-controls .doho-zoom-value{min-width:60px;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.doho-zoom-controls button:hover:not(:disabled){background:#edf4f0}
.doho-zoom-controls button:disabled{color:#b4c2bc;cursor:default}
.doho-zoom-controls button:focus-visible{outline:2px solid #4b8b7c;outline-offset:1px}
.workbook-preview{position:relative;display:flex;align-self:stretch;flex:1;min-width:0;min-height:0;width:100%;height:100%;flex-direction:column;overflow:hidden;background:#fff;color:#1f2d2a}
.workbook-body{position:relative;display:flex;flex:1;min-width:0;min-height:0}
.workbook-viewport{flex:1;min-width:0;min-height:0;overflow:auto;background:#fff}
.workbook-viewport[aria-busy=true]{display:grid;place-items:center}
.workbook-surface,.workbook-stage{width:max-content}
.workbook-loading{margin:0;padding:28px;color:#62776f;font-size:13px}
.workbook-grid{border-collapse:collapse;border-spacing:0;table-layout:fixed;width:max-content;background:#fff;color:#1f2d2a;font:11pt/1.25 Calibri,Carlito,"Segoe UI",system-ui,-apple-system,sans-serif;font-variant-numeric:tabular-nums}
.workbook-cell{position:relative;box-sizing:border-box;padding:1px 4px;border:1px solid #e2e6e4;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;vertical-align:bottom}
.workbook-cell[data-cell-type=n]{text-align:right}
.workbook-cell.wrap{white-space:normal;overflow-wrap:anywhere}
.workbook-cell.has-source-border{border-color:#8e9a95}
.workbook-cell.source-hidden-column{padding:0;border:0;font-size:0;visibility:hidden}
.workbook-grid tr[hidden]{display:none}
.workbook-more,.workbook-limit-note{position:sticky;left:0;box-sizing:border-box;width:min(100%,560px);margin:0;padding:10px 16px;color:#61766e;font-size:12px;line-height:1.5}
.workbook-more[hidden],.workbook-limit-note[hidden]{display:none}
.workbook-sheet-tabs{display:flex;flex:none;gap:3px;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;padding:5px 8px;border-top:1px solid #d6dfda;background:#f2f6f4;scrollbar-width:thin}
.workbook-sheet-tabs[hidden]{display:none}
.workbook-sheet-tab{flex:0 0 auto;max-width:210px;min-height:36px;padding:6px 14px;border:0;border-radius:9px;background:transparent;color:#5b6f67;font:inherit;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.workbook-sheet-tab:hover{background:#e6eeea}
.workbook-sheet-tab[aria-selected=true]{background:#fff;color:#1f654f;font-weight:700;box-shadow:0 1px 4px #1f3b3324,inset 0 -2px #217346}
.workbook-sheet-tab.source-hidden{font-style:italic;color:#809189}
.workbook-sheet-tab:focus-visible{outline:2px solid #4b8b7c;outline-offset:-2px}
.workbook-cell-expand{position:absolute;right:2px;bottom:2px;min-height:20px;padding:2px 5px;border:1px solid #bacbc3;border-radius:5px;background:#f8fbf9;color:#356b61;font:inherit;font-size:8px;cursor:pointer}
.workbook-cell-detail{position:absolute;z-index:8;right:12px;bottom:12px;left:12px;max-height:min(260px,55%);padding:12px;border:1px solid #c7d7cf;border-radius:11px;background:#fff;box-shadow:0 12px 35px #173f3530;overflow:auto}
.workbook-cell-detail-heading{position:sticky;top:-12px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-12px -12px 9px;padding:10px 12px;border-bottom:1px solid #e0e8e3;background:#fff}
.workbook-cell-detail-close{min-height:30px;padding:5px 8px;border:0;border-radius:7px;background:#eaf2ed;color:#356b61;font:inherit;font-size:10px;cursor:pointer}
.workbook-cell-detail-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:12px;line-height:1.55}
.workbook-cell-detail-limit{margin:10px 0 0;padding-top:9px;border-top:1px solid #e0e8e3;color:#657971;font-size:10px;line-height:1.45}
.workbook-detail-status{margin:0;color:#60766e;font-size:12px}
.workbook-cell-expand:focus-visible,.workbook-cell-detail button:focus-visible{outline:2px solid #4b8b7c;outline-offset:2px}
.pdf-preview{position:relative;display:flex;align-self:stretch;flex:1;min-width:0;min-height:0;width:100%;height:100%;background:#e8edea}
.pdf-viewport{flex:1;min-width:0;min-height:0;overflow:auto}
.pdf-pages{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:14px;width:max-content;min-width:100%;padding:16px 12px 72px}
.pdf-page{position:relative;flex:none;background:#fff;box-shadow:0 2px 14px #123b4024}
.pdf-page .pdf-canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
.pdf-page-indicator{position:absolute;left:14px;bottom:18px;z-index:6;padding:6px 12px;border-radius:999px;background:#183a40d9;color:#fff;font-size:12px;font-variant-numeric:tabular-nums;pointer-events:none}
.pdf-page-indicator:empty{display:none}
@media(max-width:760px){.doho-zoom-controls{right:10px;bottom:10px}.workbook-sheet-tab{max-width:160px;font-size:12px}.pdf-pages{gap:10px;padding:10px 8px 72px}.pdf-page-indicator{left:10px;bottom:16px}}
@media(prefers-reduced-motion:reduce){.workbook-preview *,.pdf-preview *{scroll-behavior:auto!important;transition:none!important}}

.image-viewer-toolbar-actions{display:flex;align-items:center;gap:8px}.image-viewer-save{flex:none}

/* 0.1.41 — "Ảnh, tệp và liên kết": right-click, Shift+F10 or a long press on a
   picture, file or link opens Chuyển tiếp / Xem tin nhắn gốc. */
.doho-conversation-gallery .doho-conversation-file,.doho-conversation-gallery .doho-conversation-link{-webkit-touch-callout:none}
.doho-conversation-gallery .doho-conversation-file img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
.doho-item-menu-backdrop{position:fixed;inset:0;z-index:40;background:transparent}
.doho-item-menu{position:fixed;z-index:41;display:grid;gap:2px;min-width:190px;max-width:min(280px,calc(100vw - 16px));padding:6px;border:1px solid #dfe7e1;border-radius:14px;background:#fff;box-shadow:0 18px 50px #163e332e}
.doho-item-menu-entry{display:flex;align-items:center;width:100%;min-height:42px;padding:9px 12px;border:0;border-radius:9px;background:none;color:#264e53;font-size:14px;text-align:left}
.doho-item-menu-entry:hover,.doho-item-menu-entry:focus-visible{background:#edf3f1;outline:none}
.doho-theme-set{margin:20px 0 4px}.doho-theme-set h4{margin:0;font-size:14px;font-weight:600;color:#264e53}.doho-theme-tagline{margin:3px 0 10px;font-size:11px;color:#8a9982}.doho-theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.doho-theme-option{position:relative;display:flex;min-width:0;flex-direction:column;gap:6px;padding:4px;border:2px solid transparent;border-radius:14px;background:none;color:#3c6559;text-align:center;font-size:11px;line-height:1.35}.doho-theme-option img{display:block;width:100%;height:auto;aspect-ratio:9/16;object-fit:cover;border-radius:10px;background:var(--theme-swatch,#e8efe4);box-shadow:0 1px 3px #244d5326}.doho-theme-option:hover img{box-shadow:0 2px 8px #244d5340}.doho-theme-option[aria-pressed=true]{border-color:#2b6066;background:#eef5ec}.doho-theme-option[aria-pressed=true]>span{font-weight:600}.doho-theme-option[aria-pressed=true]:after{content:"✓";position:absolute;top:9px;right:9px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#2b6066;color:#fff;font-size:12px}.doho-theme-none{display:flex;width:100%;justify-content:center;margin-top:20px}.doho-theme-status:empty{display:none}@media(max-width:420px){.doho-theme-grid{gap:5px}.doho-theme-option{padding:3px;font-size:10px}}
/* 0.1.52: Nhắc hẹn — create, list and the popup when one is due. */
.doho-reminder-form{display:flex;flex-direction:column;gap:14px}
.doho-reminder-quote{margin:0;padding:10px 12px;border-left:3px solid var(--green,#2b6066);background:#f3f4ee;border-radius:0 10px 10px 0;font-size:14px;line-height:1.45;max-height:7.5em;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}
.doho-reminder-scope,.doho-reminder-when{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.doho-reminder-scope legend,.doho-reminder-when legend{font-size:12px;font-weight:650;color:var(--muted,#84918d);margin-bottom:6px;padding:0}
.doho-reminder-choice{display:flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--line,#e9e9e1);border-radius:999px;font-size:14px;cursor:pointer}
.doho-reminder-choice:has(input:checked){border-color:var(--green,#2b6066);background:#edf3f1}
.doho-reminder-day,.doho-reminder-hour,.doho-reminder-minute{font-size:16px;padding:9px 10px;border:1px solid var(--line,#e9e9e1);border-radius:10px;background:#fff;color:var(--ink,#264e53)}
.doho-reminder-clock{display:flex;align-items:center;gap:6px}
.doho-reminder-summary{margin:0;font-size:13px;color:var(--muted,#84918d)}
.doho-reminder-submit{align-self:stretch}
.doho-reminder-list{display:flex;flex-direction:column;gap:8px}
.doho-reminder-row{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;padding:12px;border:1px solid var(--line,#e9e9e1);border-radius:12px;background:#fff}
.doho-reminder-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.doho-reminder-copy small{font-size:12px;color:var(--muted,#84918d)}
.doho-reminder-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.doho-reminder-actions{display:flex;flex-wrap:wrap;gap:8px;flex:none;justify-content:flex-end}
.doho-reminder-delete{color:var(--danger,#b54142)}
.doho-reminder-due .doho-reminder-row{flex-direction:column;align-items:stretch;margin-bottom:10px}
.doho-reminder-due .doho-reminder-actions{justify-content:flex-end}
