/* ---------- PDF tool page ---------- */
.tool-page [hidden] { display: none !important; }
.tool-page { background: var(--sand); }
.tool { min-height: 80vh; padding-bottom: 80px; }
.tool-hero { padding: 120px 0 8px; }
.tool-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .2em; color: var(--ink); }
.tool-hero .lead { color: var(--muted); max-width: 620px; }
.tool-privacy { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: #2f7a4f; background: #e3f3e9; padding: 8px 14px; border-radius: 999px; }
.tool-privacy svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

.tabs { display: flex; gap: 8px; margin: 28px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font: inherit; font-weight: 700; font-size: .98rem; color: var(--muted); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab svg, .tbtn svg, .btn svg, .drop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent-2); border-bottom-color: var(--accent); }

.panel { padding-top: 28px; }

/* Drop zone */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 260px; padding: 32px 20px; border: 2px dashed rgba(201,93,39,.45); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: #fff7f1; }
.drop svg { width: 46px; height: 46px; color: var(--accent); margin-bottom: 8px; }
.drop strong { font-size: 1.15rem; color: var(--ink); }
.drop span { color: var(--muted); font-size: .92rem; }

.btn--accent { background: var(--accent); color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.btn--accent:hover { background: var(--accent-2); }
.btn--accent:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--line { background: var(--paper); color: var(--ink); border: 1px solid var(--line); cursor: pointer; font-family: inherit; }
.btn--line:hover { border-color: var(--accent); }
.btn--sm { padding: .6em 1.1em; font-size: .88rem; }
.btn svg { width: 18px; height: 18px; }

.hint { color: var(--muted); font-size: .92rem; margin: 14px 0 6px; }
.file-name { font-weight: 700; color: var(--ink); margin: 0 0 14px; word-break: break-all; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 20px; }

/* ---------- Editor ---------- */
.toolbar {
  position: sticky; top: 72px; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 10px 30px -18px rgba(15,31,46,.4);
}
.tool-group { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tool-group + .tool-group { padding-left: 10px; border-left: 1px solid var(--line); }
.tool-group--end { margin-left: auto; }
.tbtn {
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid transparent;
  border-radius: 10px; padding: 8px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s;
}
.tbtn:hover { background: var(--sand); }
.tbtn.is-active, .tbtn[aria-pressed="true"] { background: #fde6d8; border-color: rgba(201,93,39,.4); color: var(--accent-2); }
.tbtn:disabled { opacity: .4; cursor: not-allowed; background: none; }
.tbtn--icon { width: 38px; justify-content: center; font-size: 1rem; }
.tbtn--danger:not(:disabled):hover { background: #fde2e2; color: #b42318; }
.props select, .props input[type=number] {
  font: inherit; font-size: .88rem; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: #fff; color: var(--ink);
}
.props select { max-width: 170px; }
.props input[type=number] { width: 64px; }
.props input[type=color] { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.editor .btn--accent { padding: .7em 1.2em; }

.pages { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 8px 0 20px; }
.page { position: relative; background: #fff; box-shadow: 0 12px 34px -16px rgba(15,31,46,.45); }
.page canvas { display: block; width: 100%; height: 100%; }
.page__num { position: absolute; right: -2px; bottom: -22px; font-size: .75rem; color: var(--muted); }
.layer { position: absolute; inset: 0; touch-action: pan-y; }
.mode-text .layer { cursor: text; }
.mode-rect .layer { cursor: crosshair; touch-action: none; }

.run { position: absolute; display: none; border-radius: 3px; cursor: text; }
.mode-edit .run { display: block; background: rgba(226,115,59,.07); box-shadow: inset 0 0 0 1px rgba(226,115,59,.35); }
.mode-edit .run:hover { background: rgba(226,115,59,.18); box-shadow: inset 0 0 0 1.5px var(--accent); }
.item { position: absolute; box-sizing: border-box; }
.item.is-selected { outline: 1.5px dashed var(--accent); outline-offset: 2px; }
.item--rect, .item--image { cursor: move; touch-action: none; }
.item--image img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.item__text {
  white-space: pre; line-height: 1.35; padding: .1em .15em; min-width: 1em; outline: none; cursor: text; color: #111;
}
.item__text:empty::before { content: "Type here…"; opacity: .4; }
.item__handle, .item__resize, .item__del {
  position: absolute; display: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); touch-action: none; align-items: center; justify-content: center; padding: 0;
}
.is-selected > .item__handle, .is-selected > .item__resize, .is-selected > .item__del { display: flex; }
.item__handle { left: -14px; top: -14px; cursor: move; }
.item__resize { right: -12px; bottom: -12px; cursor: nwse-resize; }
.item__del { right: -12px; top: -14px; background: #b42318; cursor: pointer; font-size: 16px; line-height: 1; }
.item__handle svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- Merge ---------- */
.file-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: f; }
.file-list li {
  counter-increment: f; display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px;
}
.file-list li::before { content: counter(f); width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fde6d8; color: var(--accent-2); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.file-list .f-name { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .f-meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.file-list .f-btns { display: flex; gap: 4px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; color: var(--ink); display: grid; place-items: center; }
.icon-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Split ---------- */
.split-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.opt { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.opt h3 { font-size: 1.15rem; margin-bottom: .3em; }
.opt p { color: var(--muted); font-size: .9rem; flex: 1; }
.opt code { background: var(--sand); padding: 1px 6px; border-radius: 6px; font-size: .85rem; }
.opt__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.opt__row input { flex: 1; min-width: 120px; font: inherit; height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; background: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.thumb { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.thumb__img { position: relative; width: 100%; aspect-ratio: 1 / 1.3; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px -10px rgba(15,31,46,.5); display: grid; place-items: center; overflow: hidden; border: 2px solid transparent; transition: border-color .15s; }
.thumb__img canvas { max-width: 100%; max-height: 100%; display: block; }
.thumb__num { font-size: .82rem; font-weight: 600; color: var(--muted); }
.thumb.is-selected .thumb__img { border-color: var(--accent); }
.thumb.is-selected .thumb__img::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.thumb:focus-visible .thumb__img { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Busy + toast ---------- */
.busy { position: fixed; inset: 0; z-index: 200; background: rgba(15,31,46,.45); display: grid; place-items: center; }
.busy[hidden], .toast[hidden] { display: none; }
.busy__box { background: var(--paper); border-radius: 16px; padding: 20px 26px; display: flex; align-items: center; gap: 14px; font-weight: 600; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fde6d8; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 210; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.toast.is-error { background: #b42318; }

@media (max-width: 900px) {
  .split-options { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tool-hero { padding-top: 96px; }
  .toolbar { top: 64px; gap: 6px; padding: 8px; }
  .tool-group + .tool-group { border-left: 0; padding-left: 0; }
  .tool-group--end { margin-left: 0; width: 100%; justify-content: space-between; }
  .tbtn span { display: none; }
  .tbtn { padding: 8px; }
  .props select { max-width: 130px; }
  .file-list li { flex-wrap: wrap; }
  .file-list .f-name { flex-basis: calc(100% - 50px); }
  .file-list .f-btns { margin-left: auto; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
}

/* ---------- Bangla Converter ---------- */
.conv { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.conv__box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.conv__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.conv__head label { font-weight: 700; color: var(--ink); }
.conv__count { font-size: .8rem; color: var(--muted); }
.conv__text {
  width: 100%; min-height: 300px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  font-size: 1.15rem; line-height: 1.7; color: var(--ink); background: #fff;
}
.conv__text:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.conv__text[readonly] { background: #fbfaf7; }
.conv__text.is-unicode { font-family: "SolaimanLipi", "Hind Siliguri", "Noto Sans Bengali", sans-serif; }
.conv__text.is-bijoy { font-family: "SutonnyMJ", "Sutonny MJ", "SutonnyOMJ", Consolas, monospace; }
.conv__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.conv__swap {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  display: grid; place-items: center; color: var(--accent-2); transition: transform .25s, border-color .2s;
}
.conv__swap:hover { border-color: var(--accent); transform: rotate(180deg); }
.conv__swap svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.conv-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 900px) {
  .conv { grid-template-columns: 1fr; }
  .conv__swap { justify-self: center; transform: rotate(90deg); }
  .conv__swap:hover { transform: rotate(270deg); }
  .conv__text { min-height: 180px; }
  .conv-notes { grid-template-columns: 1fr; }
}

/* ---------- Photo Crop ---------- */
.tool-hero--tight { padding-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crop { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.crop__main { min-width: 0; }
.crop__bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px 10px; margin-bottom: 12px;
}
.crop__bar select, .side-card select {
  font: inherit; font-size: .88rem; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: #fff; color: var(--ink);
}
.tbtn--icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.straighten { flex: 1; min-width: 200px; }
.straighten > svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.straighten input { flex: 1; accent-color: var(--accent); }
.straighten__val { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .85rem; min-width: 46px; text-align: right; color: var(--ink); cursor: pointer; }

.stage {
  display: grid; place-items: center; min-height: 360px; padding: 18px; border-radius: 16px; overflow: hidden;
  background-color: #2a2f35;
  background-image: linear-gradient(45deg, #31373e 25%, transparent 25%), linear-gradient(-45deg, #31373e 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #31373e 75%), linear-gradient(-45deg, transparent 75%, #31373e 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.stage__img { position: relative; line-height: 0; }
.stage__img canvas { display: block; }
.stage__overlay { position: absolute; inset: 0; overflow: hidden; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.cbox { position: absolute; box-shadow: 0 0 0 9999px rgba(10,14,20,.6); outline: 1px solid rgba(255,255,255,.95); cursor: move; }
.cbox__grid { position: absolute; inset: 0; pointer-events: none; opacity: .75; }
.cbox__grid.thirds {
  background:
    linear-gradient(to right, transparent calc(33.333% - .5px), rgba(255,255,255,.8) calc(33.333% - .5px), rgba(255,255,255,.8) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255,255,255,.8) calc(66.666% - .5px), rgba(255,255,255,.8) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
    linear-gradient(to bottom, transparent calc(33.333% - .5px), rgba(255,255,255,.8) calc(33.333% - .5px), rgba(255,255,255,.8) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255,255,255,.8) calc(66.666% - .5px), rgba(255,255,255,.8) calc(66.666% + .5px), transparent calc(66.666% + .5px));
}
.cbox__grid.grid {
  background-image: linear-gradient(to right, rgba(255,255,255,.55) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
}
.cbox__dims {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%); background: rgba(10,14,20,.75); color: #fff;
  font: 600 .75rem/1 var(--sans); padding: 5px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none;
}
.h { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); border-radius: 2px; }
.h::after { content: ""; position: absolute; inset: -12px; } /* bigger touch target */
.h-nw, .h-ne, .h-sw, .h-se { width: 14px; height: 14px; }
.h-nw { left: -7px; top: -7px; cursor: nwse-resize; } .h-se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.h-ne { right: -7px; top: -7px; cursor: nesw-resize; } .h-sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.h-n, .h-s { width: 26px; height: 6px; left: calc(50% - 13px); cursor: ns-resize; } .h-n { top: -3px; } .h-s { bottom: -3px; }
.h-e, .h-w { width: 6px; height: 26px; top: calc(50% - 13px); cursor: ew-resize; } .h-e { right: -3px; } .h-w { left: -3px; }

.crop__side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 88px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.side-card h3 { font-size: 1.05rem; margin: 0; }
.side-card .row { display: flex; gap: 8px; align-items: center; }
.side-card .row select { flex: 1; min-width: 0; }
.side-card .row input[type=number] { width: 0; flex: 1; font: inherit; font-size: .9rem; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; }
.side-card .unit { color: var(--muted); font-size: .85rem; }
.side-info { font-size: .85rem; color: var(--muted); margin: 0; }
.seg { display: flex; background: var(--sand); border-radius: 12px; padding: 4px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 8px; border-radius: 9px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--accent-2); box-shadow: 0 2px 8px -4px rgba(15,31,46,.4); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.slider-row { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink); margin-top: 6px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--accent); }
.slider-row input[type=color] { width: 38px; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; }
.slider-row small { color: var(--muted); font-weight: 500; }
.btn--block { width: 100%; justify-content: center; }

@media (max-width: 960px) {
  .crop { grid-template-columns: 1fr; }
  .crop__side { position: static; }
}
@media (max-width: 720px) {
  .stage { padding: 10px; min-height: 260px; }
  .straighten { min-width: 100%; order: 3; }
}

/* ---------- Metadata Remover ---------- */
.meta__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.meta__opts { display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .92rem; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check small { color: var(--muted); font-weight: 500; }
.meta__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meta__summary { margin: 14px 2px 10px; font-weight: 600; color: var(--ink); }
.meta__summary .hot { color: #b42318; }
.meta__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mfile { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.mfile__thumb { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.mfile__body { min-width: 0; }
.mfile__top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.mfile__name { color: var(--ink); word-break: break-all; }
.mfile__size { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.mfile__err { color: #b42318; margin: 6px 0 0; font-size: .9rem; }
.mfile__after { margin: 8px 0 0; font-size: .88rem; color: var(--muted); }
.okmark { color: #2f7a4f; font-weight: 800; }
.mfile__act { display: flex; gap: 6px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); }
.chip--hot { background: #fde2e2; color: #b42318; }
.chip--ok { background: #e3f3e9; color: #2f7a4f; }
.mfile details { margin-top: 8px; }
.mfile summary { cursor: pointer; font-size: .88rem; font-weight: 700; color: var(--accent-2); }
.mtable { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .85rem; }
.mtable th, .mtable td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.mtable th { color: var(--muted); font-weight: 600; width: 30%; }
.mtable td { color: var(--ink); word-break: break-word; white-space: pre-wrap; }
.mtable td.gone, .mtable td.kept { width: 70px; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.mtable td.gone { color: #b42318; } .mtable td.kept { color: #2f7a4f; }
@media (max-width: 720px) {
  .mfile { grid-template-columns: 64px 1fr; }
  .mfile__thumb { width: 64px; height: 64px; }
  .mfile__act { grid-column: 1 / -1; justify-content: flex-end; }
  .meta__actions { width: 100%; }
  .meta__actions .btn--accent { flex: 1; justify-content: center; }
}
.verdict { margin: 8px 0 0; font-size: .9rem; color: #2f7a4f; background: #e3f3e9; display: inline-block; padding: 6px 12px; border-radius: 10px; }
.verdict--ai { color: #b42318; background: #fde2e2; }
.mfile.has-ai { border-color: rgba(180,35,24,.35); }
