.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-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-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: 100vh; 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-menu-item:hover{ background: var(--image-viewer-control-hover); }.image-viewer-control:focus-visible,.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; }
.image-viewer-status-retry { min-height: 32px; margin-left: 6px; padding: 0 12px; border: 0; border-radius: 8px; background: #fff; color: #141617; font: inherit; font-weight: 600; cursor: pointer; }
.image-viewer-status-retry:focus-visible { outline: 2px solid #80b5b1; outline-offset: 2px; }

/* 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);
}

/* Empty (no sender, no time): keeps its height so the picture does not jump. */
.image-viewer-sender.is-empty { visibility: hidden; }
.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; }
  /* 0.1.64/0.1.65 (owner's request): phones show no close button at all
     and no save button; rotate stays. "Tải ảnh về máy" and "Đóng ảnh" are
     items of the "…" menu there (the way to close without a gesture); a
     swipe up or down, or right on the first picture, and Escape also close
     the viewer. */
  .image-viewer-close { display: none; }
  .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;
  }

  /* A single picture has no strip: the footer is the last row. */
  .image-viewer-shell.single-image .image-viewer-footer { padding-bottom: max(4px, env(safe-area-inset-bottom)); }

  .image-viewer-tools { order: 2; margin: 0; }
  .image-viewer-save { display: none; }
  .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:not(.single-image) .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; }
}

/* 0.1.65: a phone turned sideways (wider than 760 px) keeps the wide layout
   but, like the upright phone, has no close or save button (both are in the
   "…" menu). Keep in step with phoneViewerLayout() in conversation-tools.js. */
@media (pointer: coarse) and (max-height: 500px) {
  .image-viewer-close,
  .image-viewer-save { 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.
   Rows have no paint containment (content-visibility:auto implies it): the
   selected conversation's bar is drawn in the list's gutter, outside the row
   box. The window already keeps at most 80 rows mounted. */
.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{contain:layout style}
.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:separate;border-spacing:0;border-top:1px solid #e2e6e4;border-left:1px solid #e2e6e4;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:0;border-right:1px solid #e2e6e4;border-bottom: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;box-shadow:-1px -1px 0 #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-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-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{background:#edf3f1;outline:none}.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}

/* ---- Full-screen video (0.1.57) -------------------------------------------
   Black, edge to edge, like other chat apps: the picture is centred and kept
   whole; the top bar and the options sheet sit above it. */
.video-viewer-dialog {
  --video-viewer-fade: 1;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh; height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: rgb(0 0 0 / var(--video-viewer-fade));
  color: #f4f6f5;
  color-scheme: dark;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* The dialog itself is the black; a transparent backdrop lets the chat show
   through while a downward drag fades it (--video-viewer-fade). */
.video-viewer-dialog::backdrop { background: transparent; }
.video-viewer-dialog[open] { display: block; }
html.video-viewer-open, html.video-viewer-open body { overflow: hidden; }
.video-viewer-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-x;
  will-change: transform;
}
.video-viewer-stage:focus { outline: none; }
.video-viewer-video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100vh; max-height: 100dvh;
  object-fit: contain;
  background: transparent;
  outline: none;
}
.video-viewer-top {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 18px max(8px, env(safe-area-inset-left));
  background: linear-gradient(rgb(0 0 0 / 55%), transparent);
  pointer-events: none;
}
.video-viewer-top > * { pointer-events: auto; }
.video-viewer-control {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
}
.video-viewer-control:hover{ background: rgb(255 255 255 / 14%); }.video-viewer-control:focus-visible{ background: rgb(255 255 255 / 14%); }
.video-viewer-control svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.video-viewer-more svg { fill: currentColor; stroke: none; }
.video-viewer-heading { min-width: 0; flex: 1; pointer-events: none; }
.video-viewer-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-viewer-subtitle { margin: 2px 0 0; font-size: 12px; color: #c9d0cd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-viewer-status {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(max(8px, env(safe-area-inset-top)) + 58px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(460px, calc(100% - 32px));
  margin: 0;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgb(28 31 30 / 92%);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgb(0 0 0 / 40%);
}
.video-viewer-status[hidden] { display: none; }
.video-viewer-status-action {
  flex: none;
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #10201d;
  font-size: 13px;
  font-weight: 650;
}
.video-viewer-sheet-backdrop { position: absolute; z-index: 4; inset: 0; background: rgb(0 0 0 / 35%); }
.video-viewer-sheet-backdrop[hidden], .video-viewer-sheet[hidden] { display: none; }
.video-viewer-sheet {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  max-width: 520px;
  padding: 8px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  animation: video-viewer-sheet-in .16s ease-out;
}
@keyframes video-viewer-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.video-viewer-sheet-list, .video-viewer-sheet-cancel { border-radius: 14px; background: #fff; color: #1d2a28; overflow: hidden; }
.video-viewer-sheet-title { margin: 0; padding: 12px 16px 8px; font-size: 13px; color: #6f7c78; text-align: center; border-bottom: 1px solid #e8ecea; }
.video-viewer-sheet-actions { display: flex; flex-direction: column; }
.video-viewer-sheet-action {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid #eef1f0;
  background: transparent;
  color: inherit;
  font-size: 16px;
  text-align: left;
}
.video-viewer-sheet-action:last-child { border-bottom: 0; }
.video-viewer-sheet-action:hover{ background: #f2f5f4; }.video-viewer-sheet-action:focus-visible{ background: #f2f5f4; }
.video-viewer-sheet-action svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #2b6066; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.video-viewer-sheet-cancel {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  font-size: 16px;
  font-weight: 650;
  color: #2b6066;
}
@media (prefers-reduced-motion: reduce) { .video-viewer-sheet { animation: none; } }

/* 0.1.59: screen capture editor (openScreenCapture). */
.capture-editor {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh; height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #0d1114;
  color: #fff;
}
.capture-editor::backdrop { background: #0d1114; }
.capture-canvas { position: absolute; inset: 0; display: block; cursor: crosshair; touch-action: none; }
.capture-canvas.is-drawing { cursor: cell; }
.capture-hint {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(0 0 0 / .62);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}
.capture-toolbar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  color: #1d2a2c;
  box-shadow: 0 10px 30px rgb(0 0 0 / .35);
}
.capture-toolbar-gap { width: 1px; height: 28px; margin: 0 6px; background: #d6dedf; }
.capture-tool, .capture-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.capture-tool svg, .capture-action svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.capture-tool:hover:not(:disabled), .capture-action:hover:not(:disabled) { background: #eef3f3; }
.capture-tool[aria-pressed="true"] { background: #dcebec; color: #1f5d63; }
.capture-tool:disabled { opacity: .4; cursor: default; }
.capture-tool:focus-visible, .capture-action:focus-visible { outline: 2px solid #2b6066; outline-offset: 1px; }
.capture-send { background: #2b6066; color: #fff; }
.capture-send:hover:not(:disabled) { background: #224d52; }
/* 0.1.60: Sao chép and Lưu beside Gửi. */
.capture-action[hidden] { display: none; }
.capture-action:disabled { opacity: .55; cursor: progress; }
.capture-send { min-width: 64px; }
@media (max-width: 760px) { .capture-tool-label { display: none; } .capture-tool, .capture-action { min-width: 40px; } }
.capture-canvas:focus { outline: none; }
.capture-canvas:focus-visible { outline: 2px solid #80b5b1; outline-offset: -2px; }

/* 0.1.76: WebKit 15.0–15.3 has no :has(); app.js sets the class (see styles.css). */
html.doho-no-has .doho-reminder-choice.doho-has-checked{border-color:var(--green,#2b6066);background:#edf3f1}
/* 0.1.79: the Doho camera and its effects (as on Instagram). */
/* 0.1.80 (owner, 8/11: "do better than Instagram"): the picture fills the
   screen; the effects float over it (tap the middle one: photo; hold: video),
   with how strong the effect is above them; below, a bar with every effect
   as a grid, the effect's name with × and the other camera. */
dialog.effects-camera{width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;inset:0;padding:0;border:0;background:#000;color:#fff;overflow:hidden}
.effects-camera[open]{display:flex;flex-direction:column}
.effects-camera::backdrop{background:#000}
.effects-camera-stage{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:0 0 24px 24px;background:#0b0f0e}
.effects-camera-view{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.effects-camera-status{position:absolute;left:24px;right:24px;top:45%;margin:0;text-align:center;font-size:15px;color:#d8e7e3}
.effects-camera-top{position:absolute;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:center;padding:calc(env(safe-area-inset-top) + 10px) 14px 0;pointer-events:none}
.effects-camera-top>*{pointer-events:auto}
.effects-camera-close,.effects-camera-flash,.effects-camera-flip{width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#0000004d;color:#fff;display:inline-flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:28px;line-height:1}
.effects-camera-flash[hidden],.effects-camera-flip[hidden]{display:none}
.effects-camera-flash svg,.effects-camera-flip svg,.effect-browse svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.effects-camera-flash.on{background:#ffd54a}
.effects-camera-flash.on svg{stroke:#2a2200;fill:#2a2200}
.effects-camera-timer{position:absolute;left:50%;top:calc(env(safe-area-inset-top) + 18px);transform:translateX(-50%);margin:0;padding:4px 12px;border-radius:14px;background:#e5484d;color:#fff;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.effects-camera-timer[hidden]{display:none}
.effects-camera-whiteout{position:fixed;inset:0;z-index:8;background:#fff}
.effects-camera-whiteout[hidden]{display:none}
.effects-camera-bottom{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 0 14px;background:linear-gradient(#0000,#00000059)}
.effects-camera-bottom[hidden]{display:none}
.effects-camera-hint{margin:0;padding:5px 12px;border-radius:14px;background:#0000004d;font-size:13px;font-weight:600;transition:opacity .6s}
.effects-camera-hint.fade{opacity:0}
.effect-level{display:flex;align-items:center;gap:10px;width:min(300px,74%)}
.effect-level[hidden]{display:none}
.effect-level-input{flex:1;height:4px;margin:0;border-radius:2px;-webkit-appearance:none;appearance:none;background:linear-gradient(90deg,#fff var(--level,100%),#ffffff4d var(--level,100%));outline:none}
.effect-level-input::-webkit-slider-thumb{width:24px;height:24px;border:0;border-radius:50%;-webkit-appearance:none;appearance:none;background:#fff;box-shadow:0 1px 5px #0007}
.effect-level-input::-moz-range-thumb{width:24px;height:24px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 5px #0007}
.effect-level-input:focus-visible::-webkit-slider-thumb{outline:3px solid #8fe3d6}
.effect-level-value{min-width:28px;text-align:right;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px #0008}
.effect-strip{position:relative;width:100%;height:100px}
.effect-strip-list{display:flex;align-items:center;gap:18px;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 calc(50% - 30px);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.effect-strip-list::-webkit-scrollbar{display:none}
.effect-thumb{flex:none;width:60px;height:60px;padding:0;border:2px solid #ffffffc0;border-radius:50%;overflow:hidden;background:#ffffff26;scroll-snap-align:center;box-shadow:0 3px 12px #00000059;transition:transform .18s ease,border-color .18s ease,opacity .2s;-webkit-tap-highlight-color:transparent}
.effect-thumb.selected{transform:scale(1.2);border:3px solid #fff}
.effect-thumb:focus-visible{outline:3px solid #8fe3d6;outline-offset:3px}
.effect-thumb-picture{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
.effect-shutter-ring{position:absolute;left:50%;top:50%;width:92px;height:92px;margin:-46px 0 0 -46px;pointer-events:none;transition:transform .2s}
.effect-shutter-ring svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}
.effect-record-track{fill:none;stroke:#fff;stroke-width:5}
.effect-record-progress{fill:none;stroke:#ff3b5c;stroke-width:6;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--recorded,0));opacity:0;transition:opacity .2s}
.is-filming .effect-shutter-ring{transform:scale(1.14)}
.is-filming .effect-record-track{stroke:#ffffff59}
.is-filming .effect-record-progress{opacity:1}
.is-filming .effect-thumb:not(.selected),.is-filming .effect-level,.is-filming .effects-camera-top,.is-filming .effect-bar>*{opacity:0;pointer-events:none}
.effect-bar{display:flex;align-items:center;gap:12px;padding:12px 16px calc(env(safe-area-inset-bottom) + 14px);background:#000;transition:opacity .2s}
.effect-bar[hidden]{display:none}
.effect-browse{flex:none;width:46px;height:46px;padding:0;border:2px solid #ffffffd9;border-radius:12px;background:#ffffff14;display:inline-flex;align-items:center;justify-content:center}
.effect-pill{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:46px;padding:0 8px 0 18px;border-radius:23px;background:#ffffff1f}
.effect-name{flex:1;min-width:0;margin:0;text-align:center;font-size:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.effect-clear{flex:none;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#ffffff2e;color:#fff;font-size:20px;line-height:1}
.effect-clear[hidden]{visibility:hidden}
.effect-bar .effects-camera-flip{flex:none;width:46px;height:46px;background:#ffffff1f}
.effect-sheet{position:absolute;left:0;right:0;bottom:0;z-index:7;max-height:74%;display:flex;flex-direction:column;border-radius:22px 22px 0 0;background:#f6f8f7;color:#15201e;box-shadow:0 -12px 32px #00000073;padding-bottom:env(safe-area-inset-bottom)}
.effect-sheet[hidden]{display:none}
.effect-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 8px}
.effect-sheet-title{margin:0;font-size:17px;font-weight:700}
.effect-sheet-close{width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#e4e9e7;color:#15201e;font-size:22px;line-height:1}
.effect-sheet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:6px 14px 18px;overflow-y:auto;overscroll-behavior:contain}
.effect-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px 12px;border:2px solid transparent;border-radius:16px;background:#fff;color:inherit;font:inherit;box-shadow:0 1px 3px #0000000f}
.effect-card.selected{border-color:#2b9a8a}
.effect-card-picture{width:74px;height:74px;border-radius:50%;box-shadow:0 2px 8px #0000002e}
.effect-card-name{font-size:13px;font-weight:600;line-height:1.25;text-align:center}
.effects-camera-review{position:absolute;inset:0;display:flex;flex-direction:column;background:#05110f}
.effects-camera-review[hidden]{display:none}
.effects-camera-photo{flex:1;min-height:0;width:100%;object-fit:contain}
.effects-camera-actions{display:flex;gap:10px;justify-content:center;padding:14px 16px calc(env(safe-area-inset-bottom) + 18px)}
.effects-camera-actions button{flex:1 1 0;max-width:150px;min-height:48px;padding:0 12px;border:0;border-radius:24px;font-size:15px;font-weight:650;background:#ffffff26;color:#fff;white-space:nowrap}
.effects-camera-actions .effects-camera-send{background:#2b9a8a;color:#fff;min-width:110px}
.call-effects-panel{position:absolute;left:0;right:0;bottom:calc(env(safe-area-inset-bottom) + 92px);z-index:5;display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 0 12px;background:linear-gradient(#0000,#000a 30%)}
.call-effects-panel .effect-strip{height:88px}
.call-effects-panel .effect-bar{width:min(420px,100%);background:none;padding:2px 16px 0;box-sizing:border-box}
.call-effects-panel .effect-sheet{position:fixed;z-index:30}
.call-effects-close{border:0;border-radius:16px;padding:6px 16px;background:#ffffff26;color:#fff;font-weight:650}
@media(min-width:761px){dialog.effects-camera{width:min(480px,100vw);height:min(860px,calc(100vh - 32px));height:min(860px,calc(100dvh - 32px));margin:auto;border-radius:26px}.effects-camera::backdrop{background:#05110fcc}}
.call-dialog.effects-open .call-output-help{display:none}
/* 0.2.0 Kho tệp: tabs, search, a bounded window of rows (WindowedList), "Chọn" */
.doho-files-tools{display:flex;gap:8px;align-items:center;margin:12px 0 2px}
.doho-files-search{flex:1;min-width:0}
.doho-files-choose{flex:none;min-height:46px;padding:0 16px}
.doho-files-choose[hidden]{display:none}
.doho-files-note{margin:6px 2px 4px}
.doho-files-status{margin:0 2px 6px;font-size:12px;line-height:1.6;color:#4f7464}
.doho-files-status:empty{display:none}
.doho-files-list{height:clamp(240px,calc(85vh - 370px),640px);height:clamp(240px,calc(85dvh - 370px),640px);overflow:auto;border:1px solid #e3e9dc;border-radius:12px;background:#fffefa;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
.doho-files-row{display:grid;grid-template-columns:repeat(var(--doho-files-columns,3),var(--doho-files-tile,104px));gap:4px;height:var(--doho-files-tile,104px);padding-bottom:4px;box-sizing:content-box}
.doho-files-tile{position:relative;display:block;width:var(--doho-files-tile,104px);height:var(--doho-files-tile,104px);padding:0;border:0;border-radius:6px;overflow:hidden;background:#e9efe5;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;cursor:pointer}
.doho-files-tile img{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none;pointer-events:none}
.doho-files-video{position:absolute;right:5px;bottom:5px;padding:2px 7px;border-radius:999px;background:#0b231dcc;color:#fff;font-size:10px;font-weight:650;line-height:1.5}
.doho-files-line{height:68px;box-sizing:border-box;padding:4px 6px}
.doho-files-document,.doho-files-link{display:flex;align-items:center;gap:11px;width:100%;height:60px;padding:6px 10px;border:0;border-radius:10px;background:none;text-align:left;color:#2f5a52;-webkit-touch-callout:none;cursor:pointer}
.doho-files-document:hover,.doho-files-link:hover{background:#f0f5ea}
.doho-files-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.doho-files-copy strong{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.doho-files-copy small{font-size:11px;color:#83947b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.doho-files-site{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:10px;background:#e8f1e8;font-size:18px;overflow:hidden}
.doho-files-site img{width:24px;height:24px;object-fit:contain}
.doho-files-mark{display:none}
.doho-files-selecting .doho-files-mark{display:block;position:relative;flex:0 0 22px;width:22px;height:22px;box-sizing:border-box;border-radius:50%;border:2px solid #9fb3a5;background:#fff}
.doho-files-selecting .doho-files-tile .doho-files-mark{position:absolute;top:6px;right:6px;border-color:#fff;background:#0b231d40;box-shadow:0 1px 3px #0b231d55}
.doho-files-selecting .picked .doho-files-mark{border-color:#2f7d6b;background:#2f7d6b}
.doho-files-selecting .picked .doho-files-mark::after{content:'';position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.doho-files-selecting .doho-files-tile.picked img{opacity:.72}
.doho-files-selecting .doho-files-document.picked{background:#e6f1ea}
.doho-files-selection{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;gap:8px;margin-top:10px;padding:10px 12px;border:1px solid #dfe7d8;border-radius:14px;background:#fffefa;box-shadow:0 -6px 18px #1d3d3512}
.doho-files-selection[hidden]{display:none}
.doho-files-count{flex:1;min-width:0;font-size:13px;font-weight:600;color:#2f5a52}
.doho-files-act,.doho-files-stop{min-height:42px}
.doho-files-tile:focus-visible,.doho-files-document:focus-visible,.doho-files-link:focus-visible{outline:3px solid #80b5b1;outline-offset:-3px}
@media(max-width:420px){.doho-files-choose{padding:0 12px}.doho-files-selection{padding:8px 10px}}
/* 0.2.0 Bình chọn: the group's polls and the form */
.doho-polls-create{width:100%;min-height:46px;margin-bottom:12px}
.doho-polls-status:empty{display:none}
.doho-polls-list{display:grid;gap:12px}
.doho-poll-item{display:flex;flex-direction:column;gap:6px;padding:13px;border:1px solid #e3e9dc;border-radius:14px;background:#fff}
.doho-poll-jump{align-self:flex-start;font-size:12px}
.doho-polls-more{width:100%;margin-top:12px}
.doho-polls-more[hidden]{display:none}
.doho-poll-form{display:flex;flex-direction:column;gap:10px}
.doho-poll-question{min-height:66px;resize:vertical;font-family:inherit}
.doho-poll-fields{display:flex;flex-direction:column;gap:8px}
.doho-poll-field{display:flex;gap:8px;align-items:center}
.doho-poll-field input{flex:1;min-width:0}
.doho-poll-remove{flex:none;width:42px;height:42px;border:1px solid #dce6df;border-radius:10px;background:#fff;color:#6f8476;font-size:20px;line-height:1;cursor:pointer}
.doho-poll-remove[hidden],.doho-poll-add[hidden],.doho-poll-when[hidden]{display:none}
.doho-poll-add{align-self:flex-start}
.doho-poll-switch{display:flex;align-items:center;gap:10px;min-height:40px;font-size:14px;color:#264e53}
.doho-poll-switch input{width:20px;height:20px;accent-color:#2f7d6b}
.doho-poll-when{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.doho-poll-submit{min-height:46px}
/* 0.2.0 Album ảnh chung */
.doho-albums-create{width:100%;min-height:46px;margin-bottom:6px}
.doho-albums-status:empty{display:none}
.doho-albums-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-top:10px}
.doho-album-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:0;border:0;background:none;text-align:left;color:#264e53;cursor:pointer}
.doho-album-cover{display:block;aspect-ratio:1;width:100%;overflow:hidden;border-radius:14px;background:#e6efe6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2ZM8 16l3-3 2 2 2-2 3 3' fill='none' stroke='%2391a998' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/40% no-repeat}
.doho-album-cover img{display:block;width:100%;height:100%;object-fit:cover}
.doho-album-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.doho-album-copy strong{font-size:13px;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.doho-album-copy small{font-size:11px;color:#83947b}
.doho-album-card:focus-visible{outline:3px solid #80b5b1;outline-offset:3px;border-radius:14px}
.doho-album-head{display:flex;align-items:center;gap:4px;min-height:44px}
.doho-album-count{flex:1;min-width:0;font-size:12px;color:#7d8f80}
.doho-album-manage{display:flex;flex:none;gap:2px}
.doho-album-manage button{min-height:44px;padding:0 10px;border:0;border-radius:12px;background:none;color:#2f6b6f;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.doho-album-manage button:hover{background:#eef4ef}
.doho-album-manage button:focus-visible{outline:3px solid #80b5b1;outline-offset:1px}
.doho-album-manage .doho-album-delete{color:#b0463f}
.doho-album-add{min-height:46px;padding:0 18px}
.doho-album-add:disabled{opacity:.55}
.doho-album-form{display:flex;flex-direction:column;gap:10px}
.doho-files-deeds{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.doho-files-tools .doho-files-search[hidden]{display:none}
.doho-album-screen .doho-files-tools{justify-content:space-between;margin:4px 0 10px}
.doho-files-tabs[hidden]{display:none}
/* 0.2.0: Mã QR nhóm, Yêu cầu vào nhóm */
.doho-group-qr{display:flex;flex-direction:column;gap:14px}
.doho-conversation-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;box-sizing:border-box;border-radius:11px;background:#e07a4f;color:#fff;font-size:12px;font-weight:700}
.doho-join-list{display:flex;flex-direction:column;gap:10px}
.doho-join-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;border:1px solid #e3eae2;border-radius:16px;background:#fff}
.doho-join-who{display:flex;flex:1 1 180px;align-items:center;gap:10px;min-width:0}
.doho-join-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.doho-join-copy strong{font-size:14px;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#264e53}
.doho-join-copy small{font-size:12px;color:#83947b}
.doho-join-actions{display:flex;gap:8px}
.doho-join-actions .button{min-height:42px}
.doho-join-row .form-error{flex:1 1 100%;margin:0}
/* 0.2.3 (đợt 1): Hẹn giờ gửi, Tin khẩn, Mẫu tin nhanh, Trạng thái làm việc,
   Ghi chú nhóm and the versions of a document. */
.doho-schedule-choices{display:flex;flex-wrap:wrap;gap:8px}
.doho-schedule-choice{min-height:36px;padding:6px 12px;font-size:13px}
.doho-scheduled-list{display:flex;flex-direction:column;gap:10px}
.doho-scheduled-row{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--line,#e9e9e1);border-radius:12px;background:#fff}
.doho-scheduled-row.failed{border-color:#efd6d0;background:#fffaf8}
.doho-scheduled-time{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.doho-scheduled-time small{color:var(--muted,#84918d)}
.doho-scheduled-failed{color:var(--danger,#b54142);font-weight:700;font-size:12px}
.doho-scheduled-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;max-height:9em;overflow:hidden}
.doho-scheduled-actions{display:flex;flex-wrap:wrap;gap:8px}
.doho-scheduled-actions .button{min-height:36px;padding:6px 12px;font-size:13px}
.doho-scheduled-delete{color:var(--danger,#b54142)}
.doho-scheduled-editor,.doho-group-note-editor,.doho-quick-form textarea{width:100%;min-height:120px;padding:10px 12px;border:1px solid var(--line,#e9e9e1);border-radius:11px;font:inherit;font-size:15px;line-height:1.5;resize:vertical}
.doho-urgent-reason{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.doho-urgent-reason input,.doho-quick-form input{padding:10px 12px;border:1px solid var(--line,#e9e9e1);border-radius:10px;font-size:15px}
.doho-quick-list,.doho-quick-shared{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.doho-quick-shared h4{margin:6px 0 0;font-size:12px;letter-spacing:.5px;color:var(--muted,#84918d)}
.doho-quick-row{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;padding:11px 12px;border:1px solid var(--line,#e9e9e1);border-radius:12px;background:#fff}
.doho-quick-copy{min-width:0}
.doho-quick-copy strong{font-size:14px}
.doho-quick-copy p{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:#5e6b62;max-height:6em;overflow:hidden}
.doho-quick-actions{display:flex;flex-wrap:wrap;gap:4px;align-items:center;flex:none}
.doho-quick-delete{color:var(--danger,#b54142)}
.doho-quick-form{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding:12px;border:1px solid #dce8e3;border-radius:12px;background:#f5f9f7}
.doho-quick-add{margin-top:10px}
.doho-work-kinds,.doho-work-ends{display:flex;flex-wrap:wrap;gap:8px}
.doho-work-ends .doho-reminder-day{flex-basis:100%}
.doho-group-note-content{display:flex;flex-direction:column;gap:10px}
.doho-group-note-body{padding:12px 14px;border:1px solid var(--line,#e9e9e1);border-radius:12px;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.55}
.doho-group-note-meta{margin:0;font-size:12px;color:var(--muted,#84918d)}
.doho-group-note-newer{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid #f1d9b5;border-radius:12px;background:#fffaf0}
.doho-group-note-form{display:flex;flex-direction:column;gap:6px}
.doho-group-note-counter{align-self:flex-end;color:var(--muted,#84918d);font-size:11px}
.doho-group-note-versions{display:flex;flex-direction:column;gap:6px}
.doho-group-note-version{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:1px solid var(--line,#e9e9e1);border-radius:11px;background:#fff;text-align:left}
.doho-group-note-version small{color:var(--muted,#84918d)}
.doho-file-versions-name{margin:0 0 10px;font-weight:600;overflow-wrap:anywhere}
.doho-file-version-list{display:flex;flex-direction:column;gap:8px}
.doho-file-version{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line,#e9e9e1);border-radius:12px;background:#fff}
.doho-file-version.current{border-color:#bcd8cf;background:#f3f9f6}
.doho-file-version-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.doho-file-version-copy small{color:var(--muted,#84918d)}
.doho-file-version-send{margin-top:12px;width:100%}
/* 0.2.3 (đợt 1): find ("3/12 ↑ ↓"), the words of a PDF page for selecting,
   the page jump, the cell bar (formula, Lọc theo cột), frozen rows. */
.doho-find-bar{display:flex;align-items:center;gap:6px;flex:none;padding:7px 10px;border-bottom:1px solid #d6dfda;background:#f7faf8}
.doho-find-bar[hidden]{display:none}
.pdf-preview{flex-direction:column}
.pdf-preview>.pdf-viewport{flex:1}
.doho-find-input{flex:1;min-width:0;padding:8px 10px;border:1px solid #cfdcd6;border-radius:9px;font:inherit;font-size:15px;background:#fff}
.doho-find-count{min-width:54px;color:#4f665d;font-size:13px;text-align:center;font-variant-numeric:tabular-nums}
.doho-find-step,.doho-find-close{min-width:38px;min-height:38px;border:0;border-radius:9px;background:#e7efeb;color:#2f5e53;font-size:17px;cursor:pointer}
.doho-find-step:disabled{opacity:.45;cursor:default}
.pdf-pages{--scale-round-x:1px;--scale-round-y:1px;--total-scale-factor:1}
.pdf-page .pdf-canvas{z-index:0}
.pdf-page .textLayer{position:absolute;inset:0;z-index:1;overflow:clip;opacity:1;line-height:1;text-align:initial;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;caret-color:CanvasText;-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor) * var(--min-font-size));--min-font-size-inv:calc(1 / var(--min-font-size))}
.pdf-page .textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}
.pdf-page .textLayer>:not(.markedContent),.pdf-page .textLayer .markedContent span:not(.markedContent){z-index:1;--font-height:0;font-size:calc(var(--text-scale-factor) * var(--font-height));--scale-x:1;--rotate:0deg;transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv))}
.pdf-page .textLayer span.markedContent{top:0;height:0}
.pdf-page .textLayer .highlight{margin:-1px;padding:1px;border-radius:4px;background-color:#f7c94888}
.pdf-page .textLayer .highlight.appended{position:initial}
.pdf-page .textLayer .highlight.selected{background-color:#ed9a77aa}
.pdf-page .textLayer ::selection{background:#2b606640}
.pdf-page .textLayer br::selection{background:transparent}
.pdf-page .textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:0;cursor:default;-webkit-user-select:none;user-select:none}
.pdf-page .textLayer.selecting .endOfContent{top:0}
.pdf-page-indicator{pointer-events:auto;border:0;cursor:pointer;font:inherit;font-size:12px}
.pdf-page-indicator[hidden]{display:none}
.pdf-page-jump{position:absolute;left:12px;bottom:14px;z-index:7;display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:999px;background:#183a40f2;color:#fff;font-size:13px}
.pdf-page-jump[hidden]{display:none}
.pdf-page-jump-input{width:62px;padding:5px 8px;border:0;border-radius:8px;font:inherit;font-size:16px;text-align:center}
.pdf-page-jump-go{min-height:32px;padding:4px 12px;border:0;border-radius:999px;background:#ed9a77;color:#fff;font:inherit;font-weight:600;cursor:pointer}
.workbook-formula-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:none;padding:6px 10px;border-bottom:1px solid #d6dfda;background:#f7faf8;font-size:13px}
.workbook-formula-bar[hidden]{display:none}
.workbook-formula-address{padding:2px 8px;border-radius:6px;background:#e3ede8;color:#1f654f;font-variant-numeric:tabular-nums}
.workbook-formula-mark{color:#217346;font-style:italic;font-weight:700}
.workbook-formula-mark:empty{display:none}
.workbook-formula-value{flex:1;min-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;-webkit-user-select:text;user-select:text}
.workbook-filter-start,.workbook-filter-stop,.workbook-formula-close{min-height:32px;padding:4px 10px;border:0;border-radius:8px;background:#e7efeb;color:#2f5e53;font:inherit;font-size:12.5px;cursor:pointer}
.workbook-filter{display:flex;align-items:center;gap:8px;flex-basis:100%}
.workbook-filter-input{flex:1;min-width:0;padding:7px 10px;border:1px solid #cfdcd6;border-radius:9px;font:inherit;font-size:15px;background:#fff}
.workbook-filter-count{color:#4f665d;white-space:nowrap}
.workbook-grid.workbook-pinned tr.workbook-frozen>td.workbook-cell{position:sticky;z-index:2;background-color:#fff}
.workbook-grid.workbook-pinned tr.workbook-frozen-last>td.workbook-cell{border-bottom-color:#9fb3aa;box-shadow:inset 0 -1px 0 #9fb3aa}
.workbook-grid.workbook-pinned tr.workbook-frozen-last>td.workbook-cell.has-source-border{box-shadow:-1px -1px 0 #8e9a95,inset 0 -1px 0 #9fb3aa}
.workbook-grid tr.workbook-filtered-out{display:none}
.workbook-cell.workbook-selected{outline:2px solid #217346;outline-offset:-2px}
.workbook-cell.workbook-find-match{background-image:linear-gradient(#f7c94866,#f7c94866)}
.workbook-cell.workbook-find-current{background-image:linear-gradient(#ed9a77aa,#ed9a77aa)}

/* 0.2.9: Chấm công (createAttendance in conversation-tools.js). 0.3.3 (owner, 27/11/2026: "Khi chọn đến
   bảng công thì màn hình hiện không hết thông tin, vuốt ngang để xem thêm thì không được"): the page is as
   wide as the screen (its auto margins had made it as wide as a table's widest row), so a table scrolls
   sideways in its own frame and every control stays on the screen. */
.att-page{width:100%;max-width:760px;margin:0 auto}
.att-content{display:flex;flex-direction:column;gap:14px;min-width:0}
.att-panel,.att-manage,.att-list{display:flex;flex-direction:column;gap:12px;min-width:0}
.att-card{background:#fff;border:1px solid #e2e9db;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:9px}
.att-card h3{margin:0;font-size:15px;color:var(--ink)}
.att-card small,.att-hint{color:#7d8c82;font-size:12px;line-height:1.6;margin:0}
.att-hint-warn{color:#9a6a1c}
.att-error{color:var(--danger);background:#fbebeb;border-radius:9px;padding:9px 11px;font-size:12px;line-height:1.6;margin:0}
.att-notice{font-size:12px;line-height:1.6;margin:0;color:#4b715e}
.att-tabs{display:flex;gap:4px;padding:4px;background:#eef2ea;border-radius:13px;overflow-x:auto;scrollbar-width:none}
.att-tabs::-webkit-scrollbar{display:none}
.att-tab{flex:1 0 auto;min-height:38px;padding:7px 14px;border:0;border-radius:10px;background:transparent;color:#5f6f63;font-weight:600;font-size:13px;white-space:nowrap}
.att-tab.active{background:#fff;color:var(--green);box-shadow:0 1px 4px #1f3d3015}
.att-tab:focus-visible,.att-result:focus-visible,.att-back:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.att-today{gap:12px}
.att-today-head{display:flex;flex-direction:column;gap:2px}
.att-today-head h3{font-size:17px;text-transform:capitalize}
.att-today-status,.att-day-chips{display:flex;flex-wrap:wrap;gap:6px}
.att-today-lines p{margin:0;font-size:14px;line-height:1.7;color:var(--ink);font-variant-numeric:tabular-nums}
.att-today-lines .att-away{color:#355f7f;font-weight:600}
.att-today-lines .att-outings{color:#5f6f63;font-size:13px}
.att-today-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.att-check{min-height:54px;font-size:16px;border-radius:14px}
/* auto_check: checking in by hand is only for what Doho did not see. */
.att-check.att-check-now{align-self:center;min-height:40px;padding:8px 22px;font-size:14px;border-radius:12px}
.att-chip{display:inline-flex;align-items:center;min-height:24px;padding:2px 10px;border-radius:999px;background:#f1f3ee;color:#5f6f63;font-size:12px;font-weight:600;line-height:1.4;border:0}
.att-chip-good{background:#e4f2e9;color:#2f6b45}
.att-chip-warn{background:#fbf0dc;color:#8a5a12}
.att-chip-bad{background:#fbe9e7;color:#a2392f}
.att-chip-calm{background:#e7eff6;color:#355f7f}
.att-chip-quiet{background:#f1f3ee;color:#7d8c82}
.att-chip-remove{cursor:pointer}
.att-leave strong{font-size:14px;color:var(--ink)}
.att-links{display:flex;flex-wrap:wrap;gap:10px}
.att-links .button{flex:1 1 160px}
.att-month-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.att-month-head h3{text-transform:capitalize;text-align:center;flex:1}
.att-month-step{font-size:22px;line-height:1;color:var(--green)}
.att-summary{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.att-stat{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border-radius:12px;background:#f6f8f3}
.att-stat strong{font-size:18px;color:var(--ink);font-variant-numeric:tabular-nums}
.att-stat span{font-size:11px;color:#7d8c82;line-height:1.4}
.att-stat-good{background:#eef7f1}.att-stat-warn{background:#fdf5e7}.att-stat-bad{background:#fdf0ee}.att-stat-calm{background:#eef4f9}
.att-days,.att-people,.att-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.att-day,.att-person,.att-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 2px;border-bottom:1px solid #eef1ea}
.att-day:last-child,.att-person:last-child,.att-item:last-child{border-bottom:0}
.att-day{align-items:flex-start;justify-content:flex-start}
.att-day-date{flex:0 0 86px;font-size:13px;color:var(--ink);text-transform:capitalize;font-variant-numeric:tabular-nums}
.att-day-info,.att-person-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.att-person-info strong{font-size:14px;color:var(--ink)}
.att-item span{min-width:0;overflow-wrap:anywhere;font-size:13px;color:var(--ink)}
.att-small{min-height:34px;padding:6px 12px;font-size:12px;border-radius:10px}
.att-subhead{display:flex;align-items:center;gap:10px}
.att-back{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 10px 6px 4px;border:0;background:transparent;color:var(--green);font-weight:600;font-size:13px}
.att-title{margin:0;font-size:16px;color:var(--ink)}
.att-form{display:flex;flex-direction:column;gap:12px}
.att-fields{display:flex;flex-direction:column;gap:12px}
.att-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.att-field{display:flex;flex-direction:column;gap:6px;margin:0;font-size:12px;font-weight:600;color:#4f665a;position:static}
.att-field-label{display:block}
.att-field-note{font-weight:400}
.att-page input:not([type=checkbox]),.att-page select,.att-page textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #dfe6dc;border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:400}
.att-page textarea{resize:vertical;line-height:1.5}
.att-page input:focus-visible,.att-page select:focus-visible,.att-page textarea:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.att-check-row{display:flex;align-items:center;gap:10px;margin:0;font-size:14px;font-weight:500;color:var(--ink);position:static}
.att-check-row input{width:20px;height:20px;accent-color:var(--green)}
.att-picked{display:flex;flex-wrap:wrap;gap:6px}
.att-results{display:flex;flex-direction:column;gap:4px}
.att-result{text-align:left;min-height:40px;padding:8px 12px;border:1px solid #e2e9db;border-radius:10px;background:#fbfcf9;color:var(--ink);font-size:13px}
.att-request-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.att-request-head strong{font-size:14px;color:var(--ink)}
.att-request-when{margin:0;font-size:13px;color:var(--ink);text-transform:capitalize}
.att-request-who{margin:0;font-size:13px;font-weight:600;color:#4f665a}
.att-request-text{margin:0;font-size:13px;line-height:1.6;color:#4f5f57;white-space:pre-wrap;overflow-wrap:anywhere}
.att-request-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.att-request-actions input{flex:1 1 100%}
.att-request-actions .button{flex:1 1 120px}
.att-org-name{margin:0;font-size:15px;color:var(--ink)}
.att-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #e2e9db;border-radius:14px;background:#fff}
.att-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.att-table th,.att-table td{padding:9px 7px;text-align:right;border-bottom:1px solid #eef1ea;white-space:nowrap}
.att-table th:first-child,.att-table td:first-child{text-align:left;position:sticky;left:0;background:#fff}
/* 0.3.3: a long name takes two lines rather than half a phone's screen; the numbers scroll beside it. */
.att-table td:first-child{white-space:normal;min-width:9.5rem;max-width:44vw;overflow-wrap:anywhere}
.att-table th{font-size:11px;color:#7d8c82;font-weight:600}
.att-person-link{font-size:13px;text-align:left}
.att-excel{align-self:flex-start}
.att-settings{gap:11px}
.att-weekdays{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;border:0;margin:0;padding:0;min-width:0}
.att-weekdays legend{font-size:12px;font-weight:600;color:#4f665a;margin-bottom:6px;padding:0}
.att-weekday{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;font-weight:600;position:static;color:var(--ink)}
.att-weekday span{flex:0 0 30px}
.att-weekday select{flex:1;min-width:0}
.att-kinds{min-width:0}
.att-kinds .att-tabs{flex-wrap:wrap;overflow:visible}
.att-ready{display:flex;flex-direction:column;gap:8px;padding:11px 12px;border-radius:12px;background:#fdf5e7}
.att-ready p{margin:0;font-size:13px;line-height:1.6;color:#6d5320}
.att-ready-ok{background:#eef7f1}
.att-ready-ok p{color:#2f6b45}
.att-ready .att-error{color:var(--danger)}
.att-ready-actions{display:flex;flex-wrap:wrap;gap:8px}
.att-person-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.att-place{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.att-map{font-size:12px;min-height:28px;padding:2px 0}
.att-table td.att-total{font-weight:700;color:var(--green)}
.att-hint-box{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:#fdf5e7}
.att-hint-box p{flex:1 1 100%;margin:0;font-size:12px;line-height:1.6;color:#6d5320}
.att-label{font-size:12px;color:#4f665a}
.att-danger summary{cursor:pointer;color:var(--danger);font-weight:600;font-size:13px;min-height:36px;display:flex;align-items:center}
.att-danger[open]{display:flex;flex-direction:column;gap:8px}
.att-empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:40px 16px;text-align:center;color:#6f7f75}
.att-empty .icon{width:42px;height:42px;color:#9db3a6}
.att-skeleton{display:flex;flex-direction:column;gap:12px}
.att-skeleton span{display:block;height:92px;border-radius:16px;background:linear-gradient(100deg,#edf1ec 25%,#f8faf6 42%,#edf1ec 60%);background-size:300% 100%;animation:att-shimmer 1.2s ease-in-out infinite}
.att-more{align-self:center}
li.att-more{list-style:none;display:flex;justify-content:center;padding:8px 0;border:0}
/* 0.3.2: each person's details (Quản lý › Cài đặt › Nhân viên, Thông tin). */
.att-staff{flex-wrap:wrap}
.att-staff-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 180px}
.att-staff-info strong{font-size:14px;color:var(--ink);overflow-wrap:anywhere}
.att-staff-info small{font-size:12px;color:#6f7f75;overflow-wrap:anywhere}
.att-code{display:block;font-size:11px;color:#7d8c82}
.att-table td .att-chip{margin-top:4px}
.att-former{display:flex;flex-direction:column;gap:6px}
.att-former-toggle{align-self:flex-start}
.att-me{margin:0}
/* 0.3.3 (owner: "Thông tin đã được lưu rồi thì nên có nút chỉnh sửa, huỷ chỉnh sửa và lưu để tránh thao tác nhầm"):
   what is saved reads as text with Sửa; one part is changed at a time (the other cards rest), each change says
   "Chưa lưu"; something new waits behind "+ Thêm…"; deleting asks under what goes. */
.att-part-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.att-part-head h3{flex:1 1 auto;min-width:0}
.att-part-head .att-edit{flex:0 0 auto;min-width:64px}
.att-part-body,.att-part-form{display:flex;flex-direction:column;gap:12px;min-width:0;margin:0}
.att-part-editing{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.att-values{display:flex;flex-direction:column;margin:0;min-width:0}
.att-value{display:grid;grid-template-columns:minmax(88px,36%) minmax(0,1fr);gap:10px;padding:8px 0;border-bottom:1px solid #eef1ea}
.att-value:last-child{border-bottom:0}
.att-value dt{font-size:12px;font-weight:600;color:#6f7f75;line-height:1.6}
.att-value dd{margin:0;font-size:14px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.att-value dd.att-value-empty{color:#9aa79f;font-style:italic}
.att-state{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;font-size:13px;line-height:1.6;color:var(--ink)}
.att-edit-status{margin:0;font-size:12px;color:#7d8c82}
.att-edit-status.att-edit-status-on{color:#8a5a12;font-weight:600}
.att-edit-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.att-changed>input:not([type=checkbox]),.att-changed>select,.att-weekday.att-changed select{border-color:#d9a43b;background:#fffaf0}
.att-check-row.att-changed{border-radius:10px;box-shadow:0 0 0 6px #fffaf0,0 0 0 7px #e8c37a}
.att-unsaved{display:inline-flex;align-items:center;margin-left:8px;padding:1px 8px;border-radius:999px;background:#fbf0dc;color:#8a5a12;font-size:11px;font-weight:600;line-height:1.5;vertical-align:middle}
.att-card[inert]{opacity:.45}
.att-add-open{align-self:flex-start}
.att-add{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid var(--green);border-radius:14px;background:#f7faf5;min-width:0}
.att-add-title{margin:0;font-size:14px;color:var(--ink)}
.att-create{display:flex;flex-direction:column;gap:12px}
.att-asking{flex-wrap:wrap}
.att-confirm{flex:1 1 100%;display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:12px;background:#fdf0ee}
.att-confirm p{margin:0;font-size:13px;line-height:1.6;color:#7a2e26;overflow-wrap:anywhere}
.att-confirm-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.att-discard{border:0;border-radius:18px;padding:20px;width:min(360px,calc(100vw - 32px));box-shadow:0 20px 50px #0003;color:var(--ink)}
.att-discard::backdrop{background:#0e221c66}
.att-discard h3{margin:0 0 8px;font-size:17px}
.att-discard p{margin:0 0 16px;font-size:14px;line-height:1.6;color:#4f5f57}
.att-discard-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@keyframes att-shimmer{0%{background-position:100% 0}100%{background-position:0 0}}
@media(prefers-reduced-motion:reduce){.att-skeleton span{animation:none}}
@media(max-width:420px){.att-row{grid-template-columns:minmax(0,1fr)}.att-day-date{flex-basis:74px}}
@media(min-width:761px){.att-check{max-width:340px;align-self:flex-start}.att-today-actions{flex-direction:row;align-items:center}}
/* 0.3.9 (owner, 29/11/2026): a date or a time stayed wider than its column on the iPhone, past the card's right edge: the
   column may shrink below what the field would like, and the field takes the column's width, never more. */
.att-row>*,.att-fields>*,.att-form>*,.att-field{min-width:0}
.att-page input[type=date],.att-page input[type=time]{display:block;min-width:0;max-width:100%;-webkit-appearance:none;appearance:none;text-align:left}
.att-page input[type=date]::-webkit-date-and-time-value,.att-page input[type=time]::-webkit-date-and-time-value{min-width:0;text-align:left}
/* 0.3.9: the three counters of the member's screen; a trip's proposed expenses; "In đơn". */
.att-counters{grid-template-columns:repeat(3,minmax(0,1fr))}
.att-counters .att-stat{min-width:0}
.att-counters .att-stat span{overflow-wrap:anywhere}
.att-request-label{margin-top:2px;font-weight:600;color:#4f665a}
.att-print{align-self:flex-start}
.att-plan-view{display:flex;flex-direction:column;gap:4px}
.att-plan-amount{flex:0 0 auto;white-space:nowrap;font-size:13px;color:var(--ink);font-variant-numeric:tabular-nums}
/* "In đơn": a request on a sheet of paper (conversation-tools.js requestSheet, printed through printArea; the page itself
   is hidden while the browser prints). Black on white, signing frames to fill in by hand. */
@media print{
  .att-sheet{font:10.5pt/1.4 -apple-system,"Segoe UI",Arial,sans-serif;color:#000;background:#fff;display:flex;flex-direction:column;gap:8pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .att-sheet-head{display:flex;justify-content:space-between;align-items:baseline;gap:12pt;padding-bottom:5pt;border-bottom:1.5pt solid #000}
  .att-sheet-org{font-weight:700;font-size:12pt;text-transform:uppercase}
  .att-sheet-app{font-size:9pt;color:#555}
  .att-sheet h1{margin:4pt 0 0;text-align:center;font-size:17pt;line-height:1.25;text-transform:uppercase;letter-spacing:.4pt}
  .att-sheet h2{margin:4pt 0 0;font-size:11.5pt;line-height:1.3;break-after:avoid;page-break-after:avoid}
  .att-sheet-table{width:100%;border-collapse:collapse;table-layout:fixed}
  .att-sheet-table th,.att-sheet-table td{padding:3.5pt 6pt;border:.6pt solid #444;text-align:left;vertical-align:top;font-weight:400;line-height:1.35;overflow-wrap:anywhere}
  .att-sheet-table tr{break-inside:avoid;page-break-inside:avoid}
  .att-sheet-table tbody th{width:32%;background:#f0f0f0;font-weight:600}
  .att-sheet-plan thead th{background:#f0f0f0;font-weight:600}
  .att-sheet-plan th:first-child,.att-sheet-plan td:first-child{width:9%;text-align:center}
  .att-sheet-plan th:last-child,.att-sheet-plan td:last-child{width:24%}
  .att-sheet-text{white-space:pre-wrap}
  .att-sheet-money{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
  .att-sheet-sum td{font-weight:700;background:#f7f7f7}
  .att-sheet-none{margin:0}
  .att-sheet-signs{display:grid;grid-template-columns:1fr 1fr;gap:16pt;margin-top:6pt;break-inside:avoid;page-break-inside:avoid}
  .att-sign{display:flex;flex-direction:column;align-items:center;min-height:120pt;padding:6pt 8pt;border:.8pt solid #000;text-align:center}
  .att-sign strong{font-size:10.5pt}
  .att-sign small{font-size:9pt;font-style:italic;color:#444}
  .att-sign-space{flex:1 1 auto}
  .att-sign-name{font-weight:600;min-height:1.5em}
  .att-sheet-foot{margin:4pt 0 0;font-size:8.5pt;color:#555;text-align:right}
}
/* 0.3.4: Trợ lý AI (createAssistant, renderAssistantBrief, admin-tools "assistant"). */
.assistant-spark{color:var(--accent);font-size:13px;line-height:1;flex-shrink:0}
.assistant-waiting{display:flex;align-items:center;gap:8px;margin:12px 21px 0;padding:9px 12px;border:1px solid #f1dccf;background:#fdf4ee;border-radius:11px;font-size:12px;font-weight:600;color:var(--ink);text-align:left;min-height:40px}
.assistant-waiting:hover{background:#fbebe1}
.assistant-waiting-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assistant-waiting-arrow{color:var(--muted);font-size:16px}
.assistant-notice{margin:12px 21px 0;padding:12px 14px;border-radius:12px;background:var(--soft);font-size:12px;line-height:1.6}
.assistant-notice p{margin:6px 0 10px;color:var(--ink);font-size:12px}
.assistant-notice .button{min-height:36px;padding:8px 14px;font-size:12px}
.assistant-sheet{border:1px solid var(--line);border-radius:18px;background:#fcfbf7;color:var(--ink);width:min(520px,calc(100vw - 24px));max-height:80vh;max-height:80dvh;padding:18px;box-shadow:var(--shadow);overflow:auto}
.assistant-sheet::backdrop{background:#0f282252}
.assistant-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.assistant-sheet-head h2{font-size:19px;font-weight:600;margin:0}
.assistant-note{font-size:12px;color:var(--muted);line-height:1.6;margin:6px 0 10px}
.assistant-empty{font-size:12px;color:var(--muted)}
.assistant-sheet-list{display:flex;flex-direction:column;gap:8px}
.assistant-item{border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 12px}
.assistant-item-open{display:flex;flex-direction:column;gap:4px;width:100%;border:0;background:none;padding:0;text-align:left}
.assistant-item-who{display:flex;align-items:baseline;gap:8px;min-width:0}
.assistant-item-who strong{font-size:13px}
.assistant-item-who small{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assistant-item-text{font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.assistant-item-actions{display:flex;gap:16px;margin-top:8px}
.assistant-quiet{color:var(--muted)!important;font-weight:500}
.assistant-summary{margin:10px 24px 0;padding:12px 14px;border:1px solid #f1dccf;background:#fffaf6;border-radius:14px;max-height:42vh;max-height:42dvh;overflow:auto;flex-shrink:0}
.assistant-summary-head{display:flex;align-items:center;gap:8px;font-size:13px}
.assistant-summary-head strong{flex:1;min-width:0}
.assistant-summary-close{width:30px;height:30px}
.assistant-summary-wait{font-size:12px;color:var(--muted);margin:8px 0 2px;animation:assistant-breathe 1.4s ease-in-out infinite}
@keyframes assistant-breathe{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.assistant-summary-wait{animation:none}}
.assistant-summary-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.assistant-summary-item{display:flex;gap:8px;align-items:baseline;width:100%;border:0;background:none;padding:6px 4px;border-radius:8px;text-align:left;font-size:13px;line-height:1.5}
.assistant-summary-item:hover{background:#fbeee5}
.assistant-kind{flex-shrink:0;font-size:10px;font-weight:700;letter-spacing:.3px;padding:2px 6px;border-radius:6px;background:var(--soft);color:var(--green)}
.assistant-kind-mention,.assistant-kind-ask{background:#fbe3d6;color:#9a4f2e}
.assistant-kind-decision{background:#e2efe6;color:#2f6b45}
.assistant-summary-foot{display:flex;align-items:center;gap:16px;margin-top:10px}
.assistant-summary-foot .button{min-height:34px;padding:7px 12px;font-size:12px}
.assistant-ask{border-bottom:1px solid var(--line);padding:0 11px 12px}
.assistant-ask-start{display:flex;align-items:center;gap:8px;width:100%;border:1px solid #f1dccf;background:#fdf4ee;border-radius:10px;padding:10px 12px;text-align:left;font-size:12px;font-weight:600;min-height:40px}
.assistant-ask-start span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assistant-ask-head{display:flex;align-items:center;gap:6px;font-size:12px;margin:4px 0}
.assistant-answer{font-size:13px;line-height:1.65;color:var(--ink);margin:6px 0}
.assistant-cite{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin:0 2px;padding:0 5px;border:0;border-radius:6px;background:var(--soft);color:var(--green);font-size:10px;font-weight:700;vertical-align:1px}
.assistant-sources{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.assistant-sources-title{font-size:10px;font-weight:700;letter-spacing:1px;color:var(--muted);text-transform:uppercase}
.assistant-source{display:flex;flex-direction:column;gap:2px;width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px 10px;text-align:left;font-size:12px;line-height:1.5}
.assistant-source small{color:var(--muted);font-size:10px}
.assistant-source span{overflow-wrap:anywhere}
.assistant-setting{align-items:flex-start;gap:14px}
.assistant-setting-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.assistant-setting-text small{margin:0}
.assistant-brief{display:flex;flex-direction:column;gap:8px;min-width:min(300px,70vw)}
.assistant-brief-title{font-size:13px}
.assistant-brief-section{display:flex;flex-direction:column;gap:2px}
.assistant-brief-heading{font-size:11px;font-weight:700;color:var(--green)}
.assistant-brief-row{display:block;width:100%;border:0;background:none;padding:4px 0;text-align:left;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
button.assistant-brief-row{color:var(--ink);border-radius:6px}
button.assistant-brief-row:hover{background:#00000008}
button.assistant-brief-row::before{content:"• ";color:var(--accent)}
span.assistant-brief-row::before{content:"• ";color:var(--muted)}
.assistant-brief-settings{align-self:flex-start;font-size:11px}
.doho-assistant-model{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.doho-assistant-confirm{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0;padding:10px 12px;border-radius:10px;background:var(--soft)}
.doho-assistant-confirm p{flex-basis:100%;margin:0}
@media(max-width:760px){.assistant-summary{margin:8px 12px 0;max-height:38vh;max-height:38dvh}.assistant-waiting,.assistant-notice{margin-left:16px;margin-right:16px}.assistant-sheet{width:100vw;max-width:100vw;margin:auto 0 0;border-radius:18px 18px 0 0;max-height:85vh;max-height:85dvh;padding-bottom:max(18px,env(safe-area-inset-bottom))}}
/* 0.3.6: Công tác phí — each item with the photo of its receipt. */
.att-expense{display:flex;flex-direction:column;gap:12px}
.att-expense-item{justify-content:flex-start}
.att-expense-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto}
.att-expense-info strong{font-size:14px;color:var(--ink);font-variant-numeric:tabular-nums}
.att-expense-total{margin:0;font-size:14px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.att-receipt{flex:0 0 56px;width:56px;height:56px;padding:0;border:1px solid #e2e9db;border-radius:10px;background:#f1f3ee;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;cursor:zoom-in}
.att-receipt img{width:100%;height:100%;object-fit:cover;display:block}
.att-receipt-text{font-size:12px;color:#5f6f63}
.att-expense-item .att-receipt-none{cursor:default;overflow-wrap:normal;padding:4px;border-style:dashed;background:#fbf0dc;border-color:#e8c37a;color:#8a5a12;font-size:10px;font-weight:600;line-height:1.25;text-align:center}
.att-expense-item>.button{flex:0 0 auto;white-space:nowrap}
.att-expense-trip{margin:0;font-size:13px;color:var(--ink)}
.att-expense .att-request-head>.att-chip,.att-expense-card .att-request-head>.att-chip{flex:0 0 auto;white-space:nowrap}
