/*
 * OW Onboarding Tool v0.82.0
 * 48h Review Mode, Inhaltsquellen-Badges und Review-Verwaltung.
 */

/* -------------------------------------------------------------------------
 * Content-Quellen: Website / Blog / Docs / Trust
 * ---------------------------------------------------------------------- */
.cm-source-badge,
.cmp-source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 6px;
    border: 1px solid rgba(35, 35, 35, .12);
    border-radius: 999px;
    background: #f6f6f4;
    color: #555550;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.cm-source-badge.blog,
.cmp-source-badge.blog { background: #fff4e8; border-color: #f0cfaa; color: #8a511c; }
.cm-source-badge.docs,
.cmp-source-badge.docs { background: #eaf4ff; border-color: #bcd8f4; color: #235a87; }
.cm-source-badge.trust,
.cmp-source-badge.trust { background: #eef8f1; border-color: #bfdcc8; color: #28633a; }
.cm-source-badge.map { position: absolute; right: 8px; bottom: 7px; pointer-events: none; }
.cm-source-badge.sidebar { flex: 0 0 auto; margin-left: auto; }
.cm-source-badge.inspector { margin-left: 6px; vertical-align: middle; }
.cm-sidebar-content-item .cm-sidebar-content-copy { min-width: 0; }
.cm-sidebar-content-item .cm-source-badge { margin-left: 6px; }

/* Review counts in editor navigation/map */
.cm-sidebar-review-count,
.cm-review-node-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px solid rgba(16, 16, 16, .16);
    background: #fff;
    color: #1e1e1c;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.cm-sidebar-review-count {
    min-width: 25px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    margin-left: 4px;
}
.cm-sidebar-review-count svg,
.cm-review-node-badge svg { width: 12px; height: 12px; }
.cm-review-node-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 28px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    box-shadow: 0 5px 16px rgba(0,0,0,.12);
    z-index: 7;
}

/* -------------------------------------------------------------------------
 * Review-Einstieg und internes Review-Fenster
 * ---------------------------------------------------------------------- */
.cm-review-entry {
    position: relative;
    border-color: rgba(24,24,22,.15) !important;
    background: #fff !important;
    color: #20201e !important;
}
.cm-review-entry:hover { border-color: rgba(24,24,22,.28) !important; background: #f8f8f6 !important; }
.cm-review-entry.has-comments::after {
    content: '';
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111;
    box-shadow: 0 0 0 3px #fff;
}
.cm-review-entry .cm-review-entry-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.cm-review-modal { width: min(1020px, calc(100vw - 36px)); max-height: min(820px, calc(100vh - 36px)); }
.cm-review-modal > header { align-items: flex-start; }
.cm-review-modal-title { display: flex; align-items: center; gap: 12px; }
.cm-review-modal-title > span:first-child {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #111;
    color: #fff;
}
.cm-review-modal-title svg { width: 19px; height: 19px; }
.cm-review-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 24px;
    padding: 4px;
    border-radius: 12px;
    background: #f1f1ee;
}
.cm-review-tabs button {
    appearance: none;
    border: 0;
    border-radius: 9px;
    padding: 8px 12px;
    background: transparent;
    color: #6d6d68;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.cm-review-tabs button.active { background: #fff; color: #1d1d1b; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.cm-review-body { display: grid; gap: 18px; padding: 22px 24px 26px; overflow: auto; }
.cm-review-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid #dfdfda;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f7f7f4 100%);
}
.cm-review-hero h3 { margin: 4px 0 8px; font-size: 20px; line-height: 1.25; }
.cm-review-hero p { margin: 0; color: #6d6d68; line-height: 1.55; max-width: 650px; }
.cm-review-hero small { color: #8a8a84; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cm-review-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cm-review-access-card,
.cm-review-summary-card {
    border: 1px solid #e3e3de;
    border-radius: 16px;
    background: #fff;
    padding: 18px;
}
.cm-review-access-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cm-review-access-head h3 { margin: 2px 0 5px; font-size: 16px; }
.cm-review-access-head p { margin: 0; color: #74746f; font-size: 12px; }
.cm-review-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf7f0;
    color: #246036;
    font-size: 11px;
    font-weight: 700;
}
.cm-review-status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #26944e; }
.cm-review-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-top: 16px; }
.cm-review-url-row input { width: 100%; min-width: 0; height: 40px; border: 1px solid #dcdcd7; border-radius: 10px; padding: 0 12px; background: #f8f8f6; color: #44443f; font: inherit; font-size: 12px; }
.cm-review-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.cm-review-stats div { padding: 12px 14px; border-radius: 12px; background: #f6f6f3; }
.cm-review-stats strong { display: block; font-size: 18px; color: #242421; }
.cm-review-stats span { display: block; margin-top: 2px; font-size: 11px; color: #888883; }
.cm-review-comments-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.cm-review-comments-toolbar > div { display: flex; gap: 6px; }
.cm-review-comments-toolbar button {
    border: 1px solid #ddddda;
    background: #fff;
    color: #696964;
    border-radius: 999px;
    padding: 7px 11px;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.cm-review-comments-toolbar button.active { background: #111; border-color: #111; color: #fff; }
.cm-review-comment-list { display: grid; gap: 10px; }
.cm-review-comment-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 16px;
    border: 1px solid #e3e3df;
    border-radius: 14px;
    background: #fff;
}
.cm-review-comment-row.resolved { opacity: .66; background: #f8f8f6; }
.cm-review-comment-row header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cm-review-comment-kind { padding: 4px 7px; border-radius: 999px; background: #f0f0ed; font-size: 10px; font-weight: 700; }
.cm-review-comment-row h4 { margin: 8px 0 5px; font-size: 14px; }
.cm-review-comment-row p { margin: 0; color: #4f4f4a; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.cm-review-comment-row footer { margin-top: 10px; color: #8a8a84; font-size: 11px; }
.cm-review-comment-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cm-review-comment-actions button { width: 32px; height: 32px; border: 1px solid #deded9; border-radius: 9px; background: #fff; color: #555550; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cm-review-comment-actions button:hover { color: #111; border-color: #aaa; }
.cm-review-comment-actions button.danger:hover { color: #9d2222; border-color: #d9aaaa; }
.cm-review-comment-actions svg { width: 15px; height: 15px; }
.cm-review-empty { padding: 42px 20px; text-align: center; border: 1px dashed #d9d9d4; border-radius: 16px; color: #7a7a75; }
.cm-review-inspector-card { border-color: #deded9 !important; }
.cm-review-inspector-card .cm-review-inspector-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-review-inspector-card .cm-review-inspector-head strong { display: flex; align-items: center; gap: 7px; }
.cm-review-inspector-card .cm-review-inspector-head svg { width: 16px; height: 16px; }
.cm-review-inspector-comment { margin-top: 8px; padding: 9px 10px; border-radius: 10px; background: #f7f7f4; }
.cm-review-inspector-comment p { margin: 3px 0 0; font-size: 12px; line-height: 1.42; color: #555550; }
.cm-review-inspector-comment small { color: #888883; }

/* -------------------------------------------------------------------------
 * Öffentlicher Review Mode
 * ---------------------------------------------------------------------- */
body.content-review-mode {
    margin: 0;
    overflow: hidden;
    background: #efefec;
    color: #292927;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
body.content-review-mode #app-root { min-height: 100vh; }
.owr-app { height: 100vh; display: grid; grid-template-rows: 72px minmax(0,1fr); background: #efefec; }
.owr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 24px;
    border-bottom: 1px solid #dfdfda;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
    z-index: 20;
}
.owr-header-brand,
.owr-header-status { display: flex; align-items: center; gap: 12px; min-width: 0; }
.owr-header-brand > div { min-width: 0; }
.owr-header-brand strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owr-header-brand span:not(.owr-brand-logo):not(.owr-brand-dot) { display: block; margin-top: 2px; color: #92928d; font-size: 11px; }
.owr-brand-dot { width: 12px; height: 12px; border-radius: 50%; background: #199557; box-shadow: 0 0 0 8px #e8f6ee; }
.owr-brand-logo { width: 38px; height: 38px; border: 1px solid #e2e2dd; border-radius: 12px; background: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 700; }
.owr-brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; box-sizing: border-box; }
.owr-review-pill { padding: 7px 10px; border-radius: 999px; background: #111; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.owr-header-status strong { font-size: 12px; color: #555550; white-space: nowrap; }
.owr-body { min-height: 0; display: grid; grid-template-columns: 292px minmax(0,1fr) 380px; gap: 1px; background: #deded9; }
.owr-sidebar,
.owr-detail,
.owr-stage-shell { min-width: 0; min-height: 0; background: #fff; }
.owr-sidebar { display: flex; flex-direction: column; overflow: hidden; }
.owr-sidebar-head { padding: 20px 20px 14px; }
.owr-sidebar-head span { display: block; color: #999994; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.owr-sidebar-head strong { display: block; margin-top: 4px; font-size: 19px; }
.owr-sidebar-head small { display: block; margin-top: 4px; color: #888883; font-size: 11px; }
.owr-search { position: relative; display: flex; align-items: center; margin: 0 16px 10px; }
.owr-search > span { position: absolute; left: 12px; color: #999994; pointer-events: none; }
.owr-search svg { width: 16px; height: 16px; }
.owr-search input { width: 100%; height: 40px; padding: 0 36px; border: 1px solid #deded9; border-radius: 12px; background: #f8f8f6; font: inherit; font-size: 12px; outline: none; }
.owr-search input:focus { border-color: #aaa; background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.owr-search button { position: absolute; right: 9px; border: 0; background: transparent; color: #999994; font-size: 17px; cursor: pointer; }
.owr-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 16px 12px; padding: 4px; border-radius: 12px; background: #f0f0ed; }
.owr-filters button { border: 0; border-radius: 9px; background: transparent; padding: 8px 6px; color: #777772; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.owr-filters button.active { background: #fff; color: #20201e; box-shadow: 0 1px 5px rgba(0,0,0,.08); }
.owr-sidebar-list { flex: 1; min-height: 0; overflow: auto; padding: 0 12px 18px; }
.owr-sidebar-group { margin-bottom: 7px; border: 1px solid #ecece8; border-radius: 13px; overflow: hidden; }
.owr-sidebar-group > button { width: 100%; border: 0; background: #f7f7f4; padding: 10px 10px; display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 8px; text-align: left; cursor: pointer; }
.owr-sidebar-group > button i { width: 8px; height: 8px; border-radius: 50%; background: var(--cluster); }
.owr-sidebar-group > button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; }
.owr-sidebar-group > button b { min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #e9e9e5; font-size: 10px; }
.owr-sidebar-group > div { padding: 5px; }
.owr-sidebar-item { width: 100%; display: grid; grid-template-columns: 24px minmax(0,1fr) auto auto; gap: 7px; align-items: center; border: 0; border-radius: 9px; background: transparent; padding: 8px; color: #333330; text-align: left; cursor: pointer; }
.owr-sidebar-item:hover { background: #f4f4f1; }
.owr-sidebar-item.active { background: #111; color: #fff; }
.owr-item-icon { display: inline-flex; align-items: center; justify-content: center; color: #6e6e69; }
.owr-sidebar-item.active .owr-item-icon { color: #fff; }
.owr-item-icon svg { width: 14px; height: 14px; }
.owr-item-copy { min-width: 0; }
.owr-item-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.owr-item-copy small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #999994; font-size: 9px; }
.owr-sidebar-item.active .owr-item-copy small { color: rgba(255,255,255,.62); }
.owr-comment-count { min-width: 21px; height: 21px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: #111; font-size: 9px; }
.owr-sidebar-foot { padding: 14px 18px; border-top: 1px solid #e5e5e1; background: #fafaf8; }
.owr-sidebar-foot span { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.owr-sidebar-foot svg { width: 14px; height: 14px; }
.owr-sidebar-foot small { display: block; margin-top: 3px; color: #999994; font-size: 9px; }
.owr-stage-shell { position: relative; display: grid; grid-template-rows: 58px minmax(0,1fr); overflow: hidden; }
.owr-stage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border-bottom: 1px solid #e3e3df; background: rgba(255,255,255,.9); z-index: 5; }
.owr-stage-toolbar > div:first-child span { display: block; color: #999994; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.owr-stage-toolbar > div:first-child strong { display: block; margin-top: 2px; max-width: 430px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.owr-stage-toolbar > div:last-child { display: flex; gap: 12px; }
.owr-legend { display: flex; align-items: center; gap: 4px; color: #777772; font-size: 9px; white-space: nowrap; }
.owr-legend svg { width: 12px; height: 12px; }
.owr-stage { position: relative; overflow: hidden; background-color: #f8f8f5; background-image: radial-gradient(circle at center, #deded9 1px, transparent 1px); background-size: 24px 24px; cursor: grab; touch-action: none; }
.owr-stage.panning { cursor: grabbing; }
.owr-world { position: absolute; inset: 0; transform-origin: 0 0; }
.owr-links,.owr-nodes { position: absolute; inset: 0; overflow: visible; }
.owr-links { pointer-events: none; }
.owr-links path { fill: none; stroke-width: 1.25px; vector-effect: non-scaling-stroke; opacity: .72; }
.owr-node { position: absolute; box-sizing: border-box; border: 1px solid #d9d9d4; border-radius: 13px; background: #fff; color: #2d2d2a; padding: 10px 12px; text-align: left; box-shadow: 0 3px 12px rgba(0,0,0,.055); cursor: pointer; overflow: visible; }
.owr-node:hover { border-color: #a7a7a1; box-shadow: 0 7px 20px rgba(0,0,0,.09); }
.owr-node.selected { border-color: #111; box-shadow: 0 0 0 2px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.12); }
.owr-node span { display: block; color: #999994; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.owr-node strong { display: block; margin-top: 4px; font-size: 11px; line-height: 1.28; }
.owr-node small { display: block; margin-top: 4px; color: #8a8a84; font-size: 8px; }
.owr-node.root { border-color: #222; background: #222; color: #fff; }
.owr-node.root span,.owr-node.root small { color: rgba(255,255,255,.58); }
.owr-node.cluster { border-left: 4px solid var(--cluster); }
.owr-node.content.existing { border-left: 3px solid var(--cluster); }
.owr-node.content.planned { border-style: dashed; border-left: 3px dashed var(--cluster); background: #fbfbf9; }
.owr-node-kind { display: flex !important; align-items: center; gap: 4px; }
.owr-node-kind svg { width: 10px; height: 10px; }
.owr-node-comment { position: absolute; top: -9px; right: -9px; height: 24px; min-width: 24px; padding: 0 6px; border-radius: 999px; background: #111; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 9px; box-shadow: 0 5px 13px rgba(0,0,0,.17); }
.owr-node-comment svg { width: 11px; height: 11px; }
.owr-source-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 17px; padding: 2px 5px; border-radius: 999px; border: 1px solid #d7d7d2; background: #f5f5f2; color: #555550; font-size: 8px; line-height: 1; font-weight: 800; letter-spacing: .06em; }
.owr-source-badge.blog { background: #fff4e8; border-color: #f0cfaa; color: #8a511c; }
.owr-source-badge.docs { background: #eaf4ff; border-color: #bcd8f4; color: #235a87; }
.owr-source-badge.trust { background: #eef8f1; border-color: #bfdcc8; color: #28633a; }
.owr-source-badge.map { position: absolute; left: 9px; bottom: 7px; }
.owr-source-badge.inline { margin-left: 5px; vertical-align: middle; }
.owr-sidebar-item.active .owr-source-badge { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.12); color: #fff; }
.owr-zoom { position: absolute; right: 18px; bottom: 18px; z-index: 8; display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid #dadad5; border-radius: 13px; background: rgba(255,255,255,.94); box-shadow: 0 7px 25px rgba(0,0,0,.1); }
.owr-zoom button { height: 30px; border: 0; border-radius: 8px; background: transparent; color: #555550; padding: 0 9px; cursor: pointer; font: inherit; font-size: 11px; }
.owr-zoom button:hover { background: #efefec; color: #111; }
.owr-zoom span { min-width: 44px; text-align: center; color: #777772; font-size: 10px; }
.owr-detail { display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; }
.owr-detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px; border-bottom: 1px solid #e2e2de; }
.owr-detail-head > div { min-width: 0; }
.owr-detail-head span { color: #777772; font-size: 10px; font-weight: 700; }
.owr-detail-head span svg { width: 12px; height: 12px; vertical-align: -2px; }
.owr-detail-head h1 { margin: 6px 0 5px; font-size: 19px; line-height: 1.28; overflow-wrap: anywhere; }
.owr-detail-head p { margin: 0; color: #888883; font-size: 11px; }
.owr-detail-head > b { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #111; color: #fff; font-size: 12px; }
.owr-detail-scroll { min-height: 0; overflow: auto; padding: 16px 18px 30px; }
.owr-page-url { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid #e0e0dc; border-radius: 11px; color: #41413d; text-decoration: none; font-size: 11px; overflow-wrap: anywhere; }
.owr-page-url:hover { border-color: #aaa; }
.owr-page-url svg { width: 14px; height: 14px; flex: 0 0 auto; }
.owr-content-card,.owr-facts,.owr-comment-form,.owr-comments { margin-top: 13px; border: 1px solid #e2e2de; border-radius: 14px; background: #fff; padding: 15px; }
.owr-content-card > span,.owr-comment-form > div > span,.owr-comments-head span { color: #969691; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.owr-content-card p { margin: 7px 0 0; color: #53534e; font-size: 12px; line-height: 1.55; }
.owr-facts { display: grid; gap: 10px; }
.owr-facts div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 10px; }
.owr-facts span { color: #969691; font-size: 10px; }
.owr-facts p { margin: 0; color: #4a4a46; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.owr-comment-form { background: #f8f8f5; }
.owr-comment-form > div strong { display: block; margin-top: 3px; font-size: 14px; }
.owr-comment-form label { display: block; margin-top: 12px; }
.owr-comment-form label > span { display: block; margin-bottom: 5px; color: #777772; font-size: 10px; font-weight: 600; }
.owr-comment-form input,.owr-comment-form select,.owr-comment-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #d9d9d4; border-radius: 10px; background: #fff; padding: 9px 10px; color: #2f2f2c; font: inherit; font-size: 12px; outline: none; }
.owr-comment-form textarea { resize: vertical; min-height: 98px; line-height: 1.45; }
.owr-comment-form input:focus,.owr-comment-form select:focus,.owr-comment-form textarea:focus { border-color: #888883; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.owr-comment-form > button { width: 100%; margin-top: 12px; border: 0; border-radius: 11px; background: #111; color: #fff; min-height: 41px; display: flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.owr-comment-form > button:hover { background: #2a2a27; }
.owr-comment-form > button:disabled { opacity: .55; cursor: wait; }
.owr-comment-form > button svg { width: 15px; height: 15px; }
.owr-form-message { margin-top: 9px; padding: 8px 10px; border-radius: 9px; font-size: 10px; }
.owr-form-message.error { background: #fff0f0; color: #9a2929; }
.owr-form-message.success { background: #edf7f0; color: #276238; }
.owr-expired-inline { margin-top: 12px; padding: 11px; border-radius: 10px; background: #f0f0ed; color: #777772; font-size: 11px; line-height: 1.45; }
.owr-comments-head { display: flex; justify-content: space-between; align-items: center; }
.owr-comments-head strong { min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #ededE9; font-size: 10px; }
.owr-comment { margin-top: 10px; padding: 12px; border: 1px solid #e2e2de; border-left-width: 3px; border-radius: 11px; background: #fff; }
.owr-comment.improvement { border-left-color: #2c6a9d; }
.owr-comment.question { border-left-color: #9a6b1e; }
.owr-comment.comment { border-left-color: #6a6a65; }
.owr-comment.resolved { opacity: .62; background: #f7f7f4; }
.owr-comment header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.owr-comment header span,.owr-comment header b { font-size: 9px; }
.owr-comment header span { color: #777772; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.owr-comment header b { color: #999994; }
.owr-comment p { margin: 8px 0; color: #444440; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.owr-comment footer { display: flex; justify-content: space-between; gap: 8px; color: #999994; font-size: 9px; }
.owr-detail-empty,.owr-loading { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; box-sizing: border-box; color: #84847f; }
.owr-detail-empty svg { width: 30px; height: 30px; }
.owr-detail-empty h2 { margin: 12px 0 6px; color: #363633; font-size: 17px; }
.owr-detail-empty p { max-width: 290px; margin: 0; font-size: 11px; line-height: 1.55; }
.owr-loading i { width: 22px; height: 22px; border: 2px solid #ddd; border-top-color: #111; border-radius: 50%; animation: owr-spin .8s linear infinite; }
.owr-loading span { margin-top: 10px; font-size: 11px; }
.owr-empty-small { padding: 18px 10px; color: #999994; text-align: center; font-size: 10px; }
.owr-unavailable { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; background: #f4f4f1; }
.owr-unavailable > div { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: #111; color: #fff; }
.owr-unavailable svg { width: 25px; height: 25px; }
.owr-unavailable > span { margin-top: 20px; color: #999994; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.owr-unavailable h1 { margin: 8px 0; font-size: 25px; }
.owr-unavailable p { max-width: 470px; margin: 0; color: #777772; font-size: 13px; line-height: 1.6; }
@keyframes owr-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
    .owr-body { grid-template-columns: 260px minmax(0,1fr) 340px; }
    .owr-stage-toolbar > div:last-child .owr-legend:nth-child(3) { display: none; }
    .cm-review-entry span { display: none; }
}
@media (max-width: 930px) {
    body.content-review-mode { overflow: auto; }
    .owr-app { height: auto; min-height: 100vh; grid-template-rows: auto auto; }
    .owr-header { min-height: 68px; padding: 10px 16px; }
    .owr-body { display: grid; grid-template-columns: 260px minmax(0,1fr); grid-template-rows: 620px auto; min-height: 0; }
    .owr-sidebar { grid-column: 1; grid-row: 1; }
    .owr-stage-shell { grid-column: 2; grid-row: 1; }
    .owr-detail { grid-column: 1 / -1; grid-row: 2; min-height: 540px; border-top: 1px solid #deded9; }
    .owr-detail-scroll { overflow: visible; }
    .cm-review-hero { grid-template-columns: 1fr; }
    .cm-review-hero-actions { justify-content: flex-start; }
}
@media (max-width: 700px) {
    .owr-header { align-items: flex-start; flex-direction: column; gap: 8px; }
    .owr-header-status { width: 100%; justify-content: space-between; }
    .owr-body { grid-template-columns: 1fr; grid-template-rows: auto 540px auto; }
    .owr-sidebar { grid-column: 1; grid-row: 1; max-height: 420px; }
    .owr-stage-shell { grid-column: 1; grid-row: 2; }
    .owr-detail { grid-column: 1; grid-row: 3; }
    .owr-stage-toolbar > div:last-child { display: none; }
    .owr-zoom { right: 10px; bottom: 10px; }
    .owr-facts div { grid-template-columns: 1fr; gap: 3px; }
    .cm-review-modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
    .cm-review-modal > header { flex-wrap: wrap; }
    .cm-review-tabs { order: 3; width: 100%; margin: 10px 0 0; }
    .cm-review-tabs button { flex: 1; }
    .cm-review-body { padding: 15px; }
    .cm-review-url-row { grid-template-columns: 1fr 1fr; }
    .cm-review-url-row input { grid-column: 1 / -1; }
    .cm-review-stats { grid-template-columns: 1fr 1fr; }
    .cm-review-comment-row { grid-template-columns: 1fr; }
    .cm-review-comment-actions { justify-content: flex-start; }
}

.cmp-node { overflow: visible; }
.cmp-source-badge.map { position:absolute; right:8px; bottom:7px; z-index:2; }
.cmp-source-badge.detail { min-height:24px; padding:0 9px; }
