/* Document identity above one compact editing card. */
#calm-reader.re-editor-card:not(.cr-focus) .cr-bar{height:40px;min-height:40px;border-bottom:0;padding-inline:24px;gap:16px}
#calm-reader.re-editor-card:not(.cr-focus) #cr-breadcrumb{font-size:14px;max-width:min(48vw,640px);color:var(--cr-text);padding-left:16px;border-left:1px solid var(--cr-line);min-width:0}
#calm-reader.re-editor-card:not(.cr-focus) .cr-bar nav{gap:4px}
#calm-reader.re-editor-card #cr-format-top.rf-toolbar{display:flex;position:relative;inset:auto;flex:0 0 auto;align-self:center;width:max-content;max-width:calc(100% - 40px);box-sizing:border-box;min-width:0;min-height:44px;height:44px;margin:0 20px 6px;padding:6px 8px;gap:6px;justify-content:flex-start;flex-wrap:nowrap;border:1px solid color-mix(in srgb,var(--cr-line) 80%,transparent);border-radius:4px;background:var(--cr-bg);box-shadow:0 3px 7px #2532490a,0 1px 2px #2532490a;overflow:visible;z-index:8}
#calm-reader.re-editor-card #cr-format-top[hidden],#calm-reader.re-editor-card .re-editor-expand[hidden],#calm-reader.re-editor-card .re-more-menu[hidden]{display:none!important}
.re-editor-core{display:flex;align-items:center;gap:3px;min-width:0;flex:0 1 auto;overflow-x:auto;scrollbar-width:none}
.re-editor-core::-webkit-scrollbar{display:none}
.re-editor-actions{display:flex;align-items:center;gap:3px;flex:0 0 auto;padding-left:7px;border-left:1px solid var(--cr-line)}
#calm-reader.re-editor-card #cr-format-top.rf-toolbar button{height:30px;min-height:30px;min-width:30px;padding:0 6px;font-size:13px;line-height:1;gap:6px;box-shadow:none;border:0;border-radius:3px;white-space:nowrap}
#calm-reader.re-editor-card #cr-format-top.rf-toolbar button.rf-icon-button{width:30px;padding:0}
#calm-reader.re-editor-card #cr-format-top.rf-toolbar button svg{display:block;width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
#calm-reader.re-editor-card #cr-format-top.rf-toolbar button:is([data-rf="bold"],[data-rf="italic"],[data-rf="strike"],[data-rf="underline"],[data-rf="colors"]) .rf-icon{width:15px;height:15px;flex-basis:15px}
#calm-reader.re-editor-card #cr-format-top.rf-toolbar .rf-chevron,#calm-reader.re-editor-card #cr-format-top.rf-toolbar .ri-trigger svg:last-child,#calm-reader.re-editor-card .re-editor-actions button svg:last-child{width:10px;height:10px;flex:0 0 10px}
#calm-reader.re-editor-card #cr-format-top.rf-toolbar input{height:28px;min-height:28px;width:46px;font-size:13px;margin:0 3px;border-radius:3px}
#calm-reader.re-editor-card #cr-format-top.rf-toolbar .rf-divider{height:18px;margin-inline:6px}
#calm-reader.re-editor-card #cr-format-top .re-editor-collapse{margin-left:2px;flex:none;width:28px;min-width:28px;color:var(--cr-muted)}
#calm-reader.re-editor-card #cr-format-top .ri-trigger{margin-right:5px}
#calm-reader.re-editor-card .re-more-menu{position:fixed;z-index:30;display:flex;flex-direction:column;min-width:144px;padding:5px;border:1px solid var(--cr-line);border-radius:4px;box-shadow:0 5px 16px #25324914;background:var(--cr-bg)}
#calm-reader.re-editor-card .re-more-menu>button{text-align:left;font-size:13px;padding:8px 10px;border:0;box-shadow:none;white-space:nowrap}
#calm-reader.re-editor-card .re-more-trigger{font-size:20px!important}
#calm-reader.re-editor-card.cr-focus #cr-format-top,#calm-reader[data-read-only="true"] .re-editor-expand{display:none!important}
@media(max-width:800px){#calm-reader.re-editor-card:not(.cr-focus) .cr-bar{padding-inline:12px;gap:8px}#calm-reader.re-editor-card #cr-format-top.rf-toolbar{width:max-content;max-width:calc(100% - 20px);margin-inline:10px;padding-inline:5px;gap:3px}.re-editor-actions{padding-left:4px}#calm-reader.re-editor-card #cr-format-top.rf-toolbar .re-editor-actions button{font-size:12px;padding-inline:4px}}
@media(max-width:520px){#calm-reader.re-editor-card .re-editor-actions button span{display:none}#calm-reader.re-editor-card .re-editor-actions button[data-cr-panel="appearance"]{font-size:13px}#calm-reader.re-editor-card #cr-format-top .re-editor-actions svg:last-child{display:none}}
#calm-reader.re-editor-card #cr-format-top.rf-toolbar .ri-trigger span{font-size:13px;line-height:1;font-weight:400}

/* Desktop editing tools share the top reading header; narrow windows keep the second row. */
#calm-reader.re-editor-card.re-inline-tools:not(.cr-focus) .cr-bar{height:44px;min-height:44px;padding-inline:16px;gap:10px}
#calm-reader.re-editor-card.re-inline-tools:not(.cr-focus) .cr-bar>.cr-back{flex:none}
#calm-reader.re-editor-card.re-inline-tools:not(.cr-focus) #cr-breadcrumb{flex:0 1 220px;max-width:260px;padding-left:10px}
#calm-reader.re-editor-card.re-inline-tools:not(.cr-focus) .cr-bar>nav{flex:none;margin-left:0}
#calm-reader.re-editor-card.re-inline-tools:not(.cr-focus) #cr-format-top.rf-toolbar{flex:0 1 auto;width:max-content;max-width:680px;min-width:140px;height:36px;min-height:36px;margin:0 auto;padding:2px 4px;gap:3px;box-shadow:none}
