/* Gravicus Osprey Privacy — data risk assessment prototype (snyx showcase; reconstructed from 2018 client work, synthetic data).
   Vanilla CSS on top of tokens.css. Desktop-first at 1330. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: var(--fs-md); line-height: 1.45; color: var(--ink); background: var(--paper); min-width: 1200px; }
body.has-modal { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }
.ic { width: 16px; height: 16px; fill: none; vertical-align: -3px; flex: none; }
.ic.tri { width: 10px; height: 6px; }
.ic.tri-r { width: 5px; height: 7px; margin-left: 2px; vertical-align: -1px; }
.ic.sort { width: 7px; height: 11px; margin-left: 4px; color: var(--muted-2); }
.ic.export { width: 20px; height: 16px; }
.ic.alert { width: 30px; height: 30px; }
.ic.spin { width: 26px; height: 26px; color: var(--ink); animation: spin 1.2s steps(8) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
.muted { color: var(--muted); }
.muted.sm, .sm { font-size: var(--fs-sm); }
.mono { font-family: var(--font); font-size: 13px; }
.blk { display: block; }
.lg { font-size: var(--fs-lg); }
.grow { flex: 1; }
.kicker { display: block; font-size: var(--fs-xs); letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.linkish { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.linkish.cyan { color: var(--cyan); text-decoration: none; }
.linkish.cyan:hover { text-decoration: underline; }
.empty { padding: var(--sp-7); text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- frame */
.app { display: flex; min-height: 100vh; }
.rail { width: var(--rail-w); flex: none; background: var(--navy-900); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.rail-item { width: 100%; height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #8d99a8; font-size: 14px; position: relative; transition: color .15s, background .15s; }
.rail-item:hover { color: #fff; }
.rail-item.is-active { background: var(--cyan); color: #fff; }
.rail-item.is-active::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--cyan); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 4.5l3.5 3.5-3.5 3.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); z-index: 2; }
.rail-ic { width: 36px; height: 36px; fill: none; }
.rail-ic--wing { width: 40px; height: 40px; }
.rail-item:not(.is-active) .rail-ic--wing { opacity: .55; filter: grayscale(1) brightness(1.6); }

.side { width: var(--side-w); flex: none; background: var(--navy-800); color: #d7dbe0; padding: var(--sp-6) 0 var(--sp-8) 28px; position: sticky; top: 0; height: 100vh; }
.side-head { position: relative; padding-bottom: var(--sp-6); margin-right: 20px; border-bottom: 1px solid var(--navy-700); }
.side-kicker { display: block; font-size: 12px; color: #8d99a8; }
.side-title { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 500; color: #fff; }
.side-collapse { position: absolute; right: -32px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; }
.side-collapse .ic { width: 12px; height: 12px; }
.side-group { padding: 22px 0 6px; margin-right: 20px; border-bottom: 1px solid var(--navy-700); }
.side-group:last-child { border-bottom: 0; }
.side-group-head { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: #8d99a8; margin-bottom: 8px; }
.side-group-head .tri { color: #8d99a8; }
.side-group.is-closed .side-list { display: none; }
.side-group.is-closed .side-group-head .tri { transform: rotate(180deg); }
.side-list > li > a { display: block; padding: 8px 0 8px 14px; font-size: 16px; color: #d7dbe0; position: relative; transition: color .15s; }
.side-list > li > a::before { content: "\2022"; position: absolute; left: 0; color: #8d99a8; }
.side-list a:hover, .side-list a.is-active { color: #fff; }
.side-list a.is-active { font-weight: 500; }
.side-sub a { display: block; padding: 2px 0 8px 14px; font-size: 15px; color: #d7dbe0; }
.side-sub a::before { content: "\2013 "; color: #8d99a8; }
.side-sub a.is-active { color: #fff; font-weight: 500; }

.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--top-h); background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 60px 0 44px; position: sticky; top: 0; z-index: 20; }
.powered { display: flex; flex-direction: column; }
.powered-kicker, .topbar-kicker { font-size: 12px; color: var(--muted); display: block; line-height: 1.2; }
.wordmark { font-family: var(--font); font-weight: 500; font-size: 22px; letter-spacing: .16em; color: #14263a; display: inline-flex; align-items: center; line-height: 1.1; }
.wordmark-a { width: 18px; height: 18px; margin: 0 1px 0 0; }
.wordmark sup { font-size: 8px; letter-spacing: 0; margin-left: 2px; top: -6px; }
.topbar-right { display: flex; align-items: center; }
.company { display: flex; flex-direction: column; padding-right: 24px; border-right: 1px solid var(--line); margin-right: 24px; }
.company-name { font-family: var(--font-head); font-size: 22px; font-weight: 500; color: #14263a; line-height: 1.2; }
.user { position: relative; }
.user-btn { display: flex; align-items: center; gap: 12px; text-align: left; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #9aa1ab; display: grid; place-items: center; }
.avatar .ic { width: 20px; height: 20px; fill: currentColor; }
.user-name { font-size: 17px; font-weight: 500; color: #14263a; display: inline-flex; align-items: center; gap: 6px; }
.user-name .tri { color: #14263a; }

.view { padding: var(--gutter); max-width: calc(var(--content-max) + var(--gutter) * 2); }
.view > * + * { margin-top: var(--sp-5); }

/* ---------------------------------------------------------------- dropdowns / toasts */
.dropdown { position: absolute; z-index: 30; min-width: 130px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-2); animation: pop .12s ease-out; text-align: left; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dropdown button { display: block; width: 100%; text-align: left; padding: 11px 16px; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.dropdown button:last-child { border-bottom: 0; }
.dropdown button:hover, .dropdown button.is-first { background: var(--cyan); color: #fff; }
.dropdown button.is-first:hover { background: var(--cyan-2); }
.dropdown .danger { color: var(--high); }
.dropdown .danger:hover { background: var(--high); color: #fff; }
.dropdown--right { top: calc(100% + 8px); right: 0; min-width: 190px; }
.dropdown--right button { font-size: 14px; }
.dropdown--right button:hover { background: var(--paper-2); color: var(--ink); }
.dropdown--row { top: 26px; right: 0; }
.toasts { position: fixed; right: var(--sp-6); bottom: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); z-index: 60; }
.toast { background: var(--navy-900); color: #fff; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-2); font-size: 13px; animation: pop .15s ease-out; max-width: 380px; }
.toast.is-out { opacity: 0; transition: opacity .3s; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 26px; border-radius: var(--pill); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn .ic { fill: currentColor; }
.btn--primary { background: var(--cyan); color: #fff; }
.btn--primary:hover { background: var(--cyan-2); }
.btn--ghost { background: #fff; color: var(--ink); border-color: #c9ccd1; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline { background: #fff; color: var(--cyan); border-color: var(--cyan); }
.btn--outline:hover { background: var(--cyan-soft); }
.btn--plain { background: #fff; color: var(--ink); border-color: #c9ccd1; border-radius: var(--radius); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; height: 36px; min-width: 130px; }
.btn--blue { background: #007ee5; color: #fff; border-radius: var(--radius); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; height: 36px; min-width: 130px; }
.btn--danger { background: var(--high); color: #fff; }
.btn .ic { width: 12px; height: 12px; }
.sq { width: 44px; height: 44px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.sq .ic { width: 18px; height: 18px; fill: currentColor; }
.sq:hover { border-color: var(--ink); }
.sel { position: relative; display: block; width: 100%; }
.sel select { width: 100%; height: 44px; padding: 0 36px 0 16px; background: #fff; border: 1px solid var(--line); appearance: none; font-size: 16px; color: var(--ink); cursor: pointer; }
.sel select:hover { border-color: var(--ink); }
.sel .tri { position: absolute; right: 14px; top: 50%; margin-top: -3px; pointer-events: none; color: var(--ink); }
.sel--sm { flex: none; }
.search { position: relative; display: block; width: 240px; }
.search input { width: 100%; height: 44px; padding: 0 40px 0 14px; border: 1px solid var(--ink); background: #fff; font-size: 16px; }
.search .ic { position: absolute; right: 14px; top: 14px; width: 16px; height: 16px; fill: none; }
.field { width: 100%; height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--field); font-size: 16px; }
.field:focus { border-color: var(--cyan); background: #fff; outline: none; }
.field--area { height: 100px; padding: 10px 14px; resize: vertical; }
.field-wrap { position: relative; display: block; max-width: 456px; }
.field-count { position: absolute; right: 14px; top: 10px; color: var(--muted); font-size: 16px; }
.lbl { display: block; font-size: 16px; margin: 16px 0 6px; }
.lbl.caps { font-size: var(--fs-xs); letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); margin-top: 22px; }
.cb { display: flex; align-items: center; gap: 12px; font-size: 16px; padding: 4px 0; cursor: pointer; }
.cb input { width: 20px; height: 20px; margin: 0; accent-color: var(--cyan); }
.ib { width: 20px; height: 20px; display: grid; place-items: center; color: #b7bcc3; transition: color .15s; }
.ib .ic { width: 16px; height: 16px; }
.ib:hover, .ib.is-on { color: var(--ink); }
.ib.is-on .ic { fill: var(--ink); }
.tact { color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tact:hover { color: var(--cyan-2); text-decoration: underline; }
.tact .ic { width: 14px; height: 14px; }
.tact--danger { color: var(--high); }
.tact--danger:hover { color: #c8231f; }
.round { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--ink); }
.round.is-dim { color: #c9ccd1; }
.kebab { color: var(--cyan); width: 26px; height: 20px; display: grid; place-items: center; }
.kebab .ic { width: 16px; height: 4px; fill: currentColor; }
.kebab:not(.is-open) { color: #b7bcc3; }
.kebab:hover, .kebab.is-open { color: var(--cyan); }
.xbtn { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--high); color: var(--high); display: grid; place-items: center; }
.xbtn .ic { width: 10px; height: 10px; }
.xbtn:hover { background: var(--high); color: #fff; }
.plus { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--cyan); color: var(--cyan); display: grid; place-items: center; }
.plus .ic { width: 12px; height: 12px; }
.plus:hover { background: var(--cyan); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--pill); background: var(--paper-2); border: 1px solid var(--line); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); vertical-align: 2px; margin-left: 8px; }
.pill .ic { width: 10px; height: 10px; fill: currentColor; }
.pill--flag { color: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------------- filters row */
.filters { display: flex; align-items: flex-end; gap: 20px; }
.filter { display: flex; flex-direction: column; gap: 6px; }
.filter--wide { width: 256px; }
.filter--wide:has(.search) { width: auto; }
.filter-label { font-size: var(--fs-xs); letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.filter-note { font-size: 14px; line-height: 1.7; padding-bottom: 2px; }
.filter-note p { margin: 0; }

/* ---------------------------------------------------------------- panels */
.panel { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 20px 18px; }
.panel-title { font-family: var(--font-head); font-weight: 300; font-size: 18px; color: var(--ink); }
.panel-title b { font-weight: 700; font-family: var(--font); }
.panel-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.panel-sub .linkish { color: var(--ink); }
.panel-right { flex: none; display: flex; gap: 12px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.pg-row { display: flex; align-items: center; gap: 4px; }
.pg { min-width: 34px; height: 44px; padding: 0 6px; display: grid; place-items: center; font-weight: 500; font-size: 14px; color: var(--ink); }
.pg.is-current { background: #66707c; color: #fff; }
.pg--arrow { width: 46px; border: 1px solid var(--line); background: #fff; }
.pg--arrow .ic { width: 18px; height: 18px; }
.pg--arrow[disabled] { color: #c9ccd1; }
.pg-dots { padding: 0 6px; color: var(--muted); }
.legend { display: flex; gap: 20px; padding: 16px 20px; font-size: 14px; }
.legend-levels { display: flex; flex-direction: column; gap: 6px; padding-right: 32px; border-right: 1px solid #ccd0d5; }
.legend-title { color: var(--ink); margin-bottom: 2px; }
.lv { font-weight: 700; text-transform: uppercase; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.lv::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.lv--high { color: var(--high); } .lv--high::before { background: var(--high); }
.lv--caution { color: #e0b400; } .lv--caution::before { background: var(--caution); }
.lv--low { color: var(--low); } .lv--low::before { background: var(--low); }
.legend-terms { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; }
.legend-terms div { display: flex; gap: 4px; }
.legend-terms dt { font-weight: 700; }
.legend-terms dd { margin: 0; }
.legend-terms dd::before { content: "- "; }

/* ---------------------------------------------------------------- cards + grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); min-height: 72px; }
.card-cat { color: var(--muted); font-size: 14px; display: block; }
.card-title { font-family: var(--font-head); font-size: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.card-tools { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.card-split { display: grid; grid-template-columns: 1fr 1fr; }
.card-split > div { padding: 16px 14px 18px 18px; min-width: 0; }
.card-split .tact { font-size: 12px; }
.card-split > div + div { border-left: 1px solid var(--line); }
.card-split .kicker { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.card-split .kicker .ic { width: 12px; height: 12px; }
.counts { display: flex; flex-direction: column; gap: 6px; font-size: 16px; margin-bottom: 14px; }
.counts li { display: flex; align-items: center; gap: 10px; }
.counts li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.c-high::before { background: var(--high); } .c-caution::before { background: var(--caution); } .c-low::before { background: var(--low); }
.stat { font-size: 14px; line-height: 1.35; margin-bottom: 8px; }
.stat b { font-size: 16px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot--high { background: var(--high); } .dot--caution { background: var(--caution); } .dot--low { background: var(--low); }
.coll-card.is-pinned .ib.is-on { color: var(--ink); }

/* ---------------------------------------------------------------- table */
.table-wrap { padding: 0 0 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 16px 18px 12px; font-size: var(--fs-xs); font-weight: 400; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl th.act, .tbl td.act { text-align: right; width: 70px; position: relative; }
.th-sort { color: var(--muted); font-size: var(--fs-xs); letter-spacing: var(--track); text-transform: uppercase; display: inline-flex; align-items: center; }
.th-sort.is-on { color: var(--ink); }
.th-sort.is-on .sort { color: var(--ink); }
.tbl td { padding: 12px 18px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl tbody tr:nth-child(odd) { background: var(--paper-2); }
.tbl td.act .dropdown--row { top: 20px; right: -22px; }

/* ---------------------------------------------------------------- dashboard */
.carousel { position: relative; border-top: 1px solid var(--line); }
.strip { display: grid; }
.strip--4 { grid-template-columns: repeat(4, 1fr); }
.strip-card { padding: 20px 20px 22px; border-right: 1px solid var(--line); min-width: 0; }
.strip-card:last-child { border-right: 0; }
.strip-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.strip-card .kicker { margin-bottom: 12px; }
.strip-card .total { font-size: 14px; margin: 14px 0 6px; }
.carousel-arrows { position: absolute; right: -22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.weights { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.weights li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weights li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weights li i { height: 8px; background: var(--skeleton); flex: none; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.conn-rows { border-top: 1px solid var(--line); }
.conn-rows li { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line-2); font-size: 16px; line-height: 1.6; }
.conn-rows li:last-child { border-bottom: 0; }
.conn-rows .muted { font-size: 14px; display: block; }
.conn-rows .lg { font-size: 18px; }
.help-blurb { border-top: 1px solid var(--line); padding: 26px 28px 26px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.help-blurb .btn { display: flex; margin: 20px auto 0; width: fit-content; }
.promo { display: flex; align-items: center; gap: 40px; padding: 30px 40px 36px; }
.promo-art { width: 140px; height: 140px; flex: none; }
.promo-art--lg { width: 200px; height: 200px; }
.promo-text h2 { font-family: var(--font-head); font-weight: 300; font-size: 24px; margin-bottom: 4px; }
.promo-text p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.promo--center { flex-direction: column; text-align: center; gap: 0; }
.promo--center .promo-text { display: flex; flex-direction: column; align-items: center; }

/* ---------------------------------------------------------------- edit collection */
.edit .panel-head { padding: 22px 20px 18px; }
.edit .panel-head .btn { min-width: 176px; }
.edit-body { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.edit-left { border-right: 1px solid var(--line); }
.edit-sec { padding: 20px 20px 24px; border-bottom: 1px solid var(--line); }
.edit-sec:last-child { border-bottom: 0; }
.edit-sec h3 { font-family: var(--font-head); font-size: 17px; font-weight: 500; }
.edit-sec .lbl:first-child { margin-top: 0; }
.edit-sec > .sel + .linkish, .edit-sec .linkish.blk { margin-top: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.row-2--narrow { grid-template-columns: 130px 1fr; margin-bottom: 12px; }
.cbs { display: flex; flex-direction: column; }
.edit-stats { display: flex; align-items: center; gap: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.edit-stats > div { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); font-size: 16px; }
.edit-stats > div:nth-child(2) { border-right: 0; }
.edit-stats .spin { margin-left: auto; }
.edit-filters { padding: 20px; }
.edit-filters .linkish.blk { margin: 4px 0 18px; }
.frow { display: grid; grid-template-columns: 100px 118px 1fr 20px; gap: 14px; align-items: center; margin-bottom: 10px; }
.frow .sel select { padding-right: 30px; }
.frow .field { height: 44px; background: #fff; }
.frow-x { color: #c9ccd1; }
.frow-x:hover { color: var(--high); }
.edit-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 24px 20px; border-top: 1px solid var(--line); }
.edit-foot .btn { min-width: 176px; }

/* ---------------------------------------------------------------- connectors */
.conn-card .card-head { padding: 14px 18px; }
.conn-card .card-head .muted.blk { font-size: 14px; margin-top: 2px; }
.conn-body { padding: 16px 18px 18px; position: relative; }
.conn-body .lg { font-size: 18px; margin-bottom: 14px; }
.conn-body .muted { font-size: 14px; line-height: 1.5; }
.conn-body .muted b { color: var(--ink-2); }
.conn-acts { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--high); }
.ring { position: absolute; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(#c9ccd1 calc(var(--pct) * 1%), #ececee 0); display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.ring span { position: relative; color: var(--muted); font-size: 15px; }
.ring.is-done { background: #ececee; }
.ring.is-done span { width: 44px; height: 44px; border-radius: 50%; background: #c9ccd1; color: #fff; display: grid; place-items: center; }
.ring.is-done .ic { width: 22px; height: 22px; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.logo b { font-weight: 700; }
.logo b.logo-light { font-weight: 400; }
.logo b.logo-heavy { font-weight: 900; font-size: 1.6em; letter-spacing: -.02em; }
.logo-ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.logo-ic--wide { width: 26px; height: 18px; }
.logo--dropbox { color: var(--dropbox); }
.logo--sharepoint { color: var(--sharepoint); }
.logo--onedrive { color: var(--onedrive); }
.logo--gdrive { color: #5f6368; }
.logo--gdrive small { font-weight: 400; }
.logo--aws { color: #232f3e; }
.logo--alfresco { color: var(--alfresco, #0b6b9e); }
.logo-stack { display: inline-flex; flex-direction: column; line-height: 1; align-items: flex-start; }
.logo-stack small { font-weight: 400; font-size: .7em; }
.logo-stack em { font-style: normal; font-weight: 400; }
.logo-smile { width: 40px; height: 12px; margin-top: 1px; }
.logo-g { font-size: 1.6em; font-weight: 400; margin-right: 2px; }
.logo--big { font-size: 26px; gap: 8px; }
.logo--big .logo-ic { width: 34px; height: 34px; }
.logo--big .logo-ic--wide { width: 44px; height: 30px; }
.logo--big .logo-smile { width: 64px; height: 18px; }
.logo--grey { color: var(--brand-grey) !important; }
.logo--grey .logo-ic, .logo--grey b, .logo--grey small { color: var(--brand-grey) !important; }
.logo--grey .logo-ic * { fill: var(--brand-grey); }
.logo--grey .logo-ic [stroke] { stroke: var(--brand-grey); fill: none; }
.cat-title { padding: 20px 20px 16px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 300; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cat-cell { height: 138px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .15s; }
.cat-cell:nth-child(4n) { border-right: 0; }
.cat-cell:hover:not(.cat-cell--empty) { background: var(--paper-2); }
.cat-cell.is-grey { color: var(--brand-grey); }
.cat-cell--empty { cursor: default; }
.cat-hint { color: var(--muted); font-size: 14px; }
.cat-cell.is-grey .cat-hint { color: var(--muted-2); }
.cat-foot { padding: 16px 28px; font-size: 14px; color: var(--ink-2); }
.cat .cat-grid:last-child .cat-cell { border-bottom: 0; }
.add-body { display: flex; justify-content: space-between; gap: 40px; padding: 22px 28px 26px; border-top: 1px solid var(--line); }
.add-body .h3 { font-family: var(--font-head); font-weight: 400; font-size: 17px; }
.add-body .muted { font-size: 14px; }
.add-body .btn { margin-top: 24px; }
.add-logo { padding-right: 12px; }
.add-logo .logo--big { font-size: 42px; }
.add-logo .logo--big .logo-ic { width: 56px; height: 56px; }
.trouble { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 10px 30px; }
.trouble .life { width: 22px; height: 22px; color: #c9ccd1; }
.success { display: flex; align-items: center; gap: 80px; padding: 50px 60px; }
.success-art { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.filetypes { display: flex; gap: 14px; }
.ft { width: 40px; height: 52px; }
.success-text h2 { font-family: var(--font-head); font-weight: 300; font-size: 24px; margin: 30px 0 14px; }
.success-text .muted { font-size: 16px; line-height: 1.5; max-width: 520px; margin-bottom: 22px; }

/* ---------------------------------------------------------------- oauth modal */
.modal-root { position: fixed; inset: 0; z-index: 50; }
.modal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.oauth { position: absolute; left: 50%; top: 100px; width: 676px; margin-left: -338px; background: #fff; box-shadow: var(--shadow-2); padding: 0 0 90px; animation: pop .2s ease-out; }
.oauth-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 0; }
.oauth-head .logo-ic { width: 36px; height: 36px; }
.oauth-user { display: inline-flex; align-items: center; gap: 8px; color: #007ee5; font-size: 15px; }
.oauth-user .ic { fill: #999; width: 22px; height: 22px; }
.oauth-user .tri { fill: #aaa; width: 8px; height: 5px; }
.oauth-app { width: 132px; height: 132px; margin: 18px auto -32px; border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; background: #fff; position: relative; z-index: 2; }
.oauth-wing { width: 88px; height: 88px; }
.oauth-card { margin: 0 68px; border: 1px solid #ccc; border-radius: 4px; padding: 64px 40px 32px; text-align: center; font-size: 16px; line-height: 1.5; }
.oauth-btns { display: flex; justify-content: center; gap: 20px; margin-top: 24px; }
.confirm { position: absolute; left: 50%; top: 200px; width: 440px; margin-left: -220px; background: #fff; box-shadow: var(--shadow-2); padding: 28px 32px; animation: pop .2s ease-out; }
.confirm h2 { font-family: var(--font-head); font-weight: 400; font-size: 20px; margin-bottom: 8px; }
.confirm .oauth-btns { justify-content: flex-end; }

/* ---------------------------------------------------------------- files */
.fcell { display: flex; flex-direction: column; line-height: 1.3; }
.fcell b { font-size: 14px; }
.fcell--grow { flex: 1; }
.fcell--right { text-align: right; }
.fgroup { border-left: 6px solid var(--high); }
.fgroup--caution { border-left-color: var(--caution); }
.fgroup.is-flagged .fgroup-head { background: #fffbe6; }
.fgroup-head, .fgroup-foot { display: flex; align-items: center; }
.fgroup-head { padding: 16px 0 16px 20px; border-bottom: 1px solid var(--line); }
.fgroup-head .fcell { padding-right: 20px; }
.fgroup-head .fcell + .fcell { padding-left: 20px; border-left: 1px solid var(--line); }
.fgroup-head .fcell--right { border-left: 0 !important; padding-right: 0; margin-right: 20px; }
.fgroup-toggle { width: 70px; align-self: stretch; margin: -16px 0; border-left: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.fgroup-toggle .ic { width: 22px; height: 22px; }
.frows li { display: flex; align-items: center; gap: 20px; padding: 10px 20px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.frows li:nth-child(odd) { background: var(--paper-2); }
.frows .fage { width: 110px; flex: none; }
.frows .mono { flex: 1; }
.frows .tact { font-size: 12px; }
.fgroup-foot .fcell { padding: 14px 20px; }
.fgroup-foot .fcell + .fcell { border-left: 1px solid var(--line); }
.foot-act { align-self: stretch; padding: 0 20px; border-left: 1px solid var(--line); display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--ink); transition: background .15s; }
.foot-act .ic { fill: currentColor; width: 14px; height: 14px; }
.foot-act:hover { background: var(--paper-2); }
.foot-act.is-on { background: var(--ink); color: #fff; }
.foot-act--danger { color: var(--high); }
.foot-act--danger:hover { background: #fff2f1; }
.docview { position: absolute; left: 226px; top: 300px; width: 954px; background: #fff; box-shadow: var(--shadow-2); animation: pop .2s ease-out; }
.docview-head { display: flex; align-items: center; padding: 16px 0 16px 20px; border-bottom: 1px solid var(--line); }
.docview-head .fcell { padding-right: 24px; }
.docview-loc { flex-direction: row; align-items: center; gap: 12px; padding-left: 24px; border-left: 1px solid var(--line); }
.docview-loc > div { display: flex; flex-direction: column; }
.docview-head .fcell--right { padding-right: 20px; }
.docview-x { width: 70px; align-self: stretch; margin: -16px 0; border-left: 1px solid var(--line); display: grid; place-items: center; color: #9aa1ab; }
.docview-x .ic { width: 28px; height: 28px; }
.docview-body { padding: 26px 36px; font-size: 15px; line-height: 2; }
.pii { padding: 1px 2px; border-radius: 2px; color: var(--ink); }
.pii--org { background: #4dd9e8; } .pii--person { background: #e8ff3a; } .pii--topic { background: #52f24a; } .pii--geo { background: #ff5fa0; }
.docview-foot { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.docview-foot .fcell { padding: 14px 20px; justify-content: center; }
.docview-foot .fcell + .fcell { border-left: 1px solid var(--line); }

/* ---------------------------------------------------------------- alerts */
.arow { border-left: 6px solid var(--high); }
.arow--caution { border-left-color: var(--caution); }
.arow--low { border-left-color: var(--low); }
.arow.is-flagged .arow-main { background: #fffbe6; }
.arow-main { display: flex; align-items: center; min-height: 66px; }
.arow-main .fcell { padding: 12px 20px; font-size: 14px; line-height: 1.35; align-self: stretch; justify-content: center; }
.arow-main .fcell + .fcell { border-left: 1px solid var(--line); }
.arow-main .fcell:first-child { width: 160px; display: block; }
.arow-review { align-self: stretch; padding: 0 22px; border-left: 1px solid var(--line); color: var(--cyan); font-size: 14px; font-weight: 700; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.arow-review .ic { width: 18px; height: 18px; }
.arow-review:hover { background: var(--cyan-soft); }
.arow-toggle { width: 66px; align-self: stretch; border-left: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.arow-toggle .ic { width: 22px; height: 22px; }
.arow-files { border-top: 1px solid var(--line); }
.arow-files li { display: flex; justify-content: space-between; gap: 20px; padding: 9px 20px; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.arow-files li:nth-child(odd) { background: var(--paper-2); }
.arow-more { justify-content: center !important; font-size: 12px !important; letter-spacing: .04em; color: var(--muted); }
.arow-more .tact { font-size: 12px; }
.arow-foot { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.arow-foot .sel { width: 318px; margin: 12px 0 12px 12px; }
.arow-foot .foot-act { padding: 20px 20px; }

/* ---------------------------------------------------------------- topics */
.alpha { display: flex; gap: 2px; align-items: center; }
.al { min-width: 36px; height: 36px; font-size: 16px; font-weight: 700; color: var(--cyan); display: grid; place-items: center; }
.al[disabled] { color: #c3c7cc; cursor: default; }
.al.is-on { background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 400; }
.topic-card .card-head { align-items: center; min-height: 0; padding: 14px 18px; }
.topic-body { padding: 16px 18px 24px; }
.weights-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.topic-body .weights { gap: 5px; }
.topic-body .weights li i { max-width: 100px; }
.topic-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.tmodal { position: absolute; left: 198px; top: 214px; width: 954px; background: #fff; box-shadow: var(--shadow-2); animation: pop .2s ease-out; }
.tmodal-head { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); height: 68px; }
.tmodal-head h2 { flex: 1; font-family: var(--font-head); font-size: 22px; font-weight: 500; display: flex; align-items: center; padding: 0 20px; }
.tm-act { padding: 0 22px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 700; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.tm-act .ic { fill: currentColor; width: 14px; height: 14px; }
.tm-act .export { fill: none; width: 20px; height: 16px; }
.tm-act--danger { color: var(--high); }
.tm-act--cyan { color: var(--cyan); }
.tm-act:hover { background: var(--paper-2); }
.tm-x { width: 70px; border-left: 1px solid var(--line); display: grid; place-items: center; color: #9aa1ab; }
.tm-x .ic { width: 28px; height: 28px; }
.tmodal-body { display: flex; height: 530px; position: relative; }
.tpane { flex: 1; min-width: 0; padding: 12px 20px 0; display: flex; flex-direction: column; }
.tpane .kicker { margin-bottom: 14px; }
.tpane--words { background: #fff; }
.tpane--locs { background: #fff; }
.tmodal--both .tpane--words { flex: 0 0 464px; }
.pane-handle { width: 26px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #fff; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pane-handle button { width: 24px; height: 24px; display: grid; place-items: center; color: var(--ink); }
.pane-handle button:hover { background: var(--paper-2); }
.pane-handle i { width: 1px; height: 16px; background: var(--ink); display: block; }
.pane-handle .ic { width: 16px; height: 16px; }
.tmodal--left .pane-handle { position: absolute; right: 0; top: 0; bottom: 0; border: 0; border-left: 1px solid var(--line); background: #fff; }
.tmodal--right .pane-handle { position: absolute; left: 0; top: 0; bottom: 0; border: 0; border-right: 1px solid var(--line); background: #fff; }
.tmodal--right .tpane--locs { padding-left: 46px; }
.tmodal--left .tpane--words { padding-right: 46px; }
.cloud { overflow: auto; flex: 1; padding-right: 8px; }
.cloud-block { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; row-gap: 2px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.cloud-block:last-child { border-bottom: 0; }
.cloud-block--xl { font-size: 22px; line-height: 1.45; }
.cloud-block--lg { font-size: 18px; line-height: 1.6; }
.cloud-block--md { font-size: 15px; line-height: 1.85; }
.cloud-block--sm { font-size: 13px; line-height: 1.85; }
.tmodal--left .cloud-block { grid-template-columns: repeat(6, 1fr); }
.locs { overflow: auto; flex: 1; padding-right: 8px; }
.locs li { padding: 6px 12px; font-size: 13px; margin-bottom: 4px; background: var(--paper-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.locs li.is-dir { font-weight: 700; }
.tmodal-foot { display: flex; border-top: 1px solid var(--line); }
.tmodal-foot .fcell { padding: 14px 20px; flex: 1; }
.tmodal-foot .fcell + .fcell { border-left: 1px solid var(--line); }
.tmodal-foot b { font-weight: 400; }
.tmodal-foot b b { font-weight: 700; }

/* ---------------------------------------------------------------- help */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 24px 20px 30px; border-top: 1px solid var(--line); }
.help-grid h3 { font-family: var(--font-head); font-weight: 500; font-size: 17px; margin-bottom: 10px; }
.help-list { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.help-grid .muted { margin-bottom: 16px; }
