/* =====================================================================
   Microsoft Edge (simulated)  - prefix edge-
   Contoso IT Wiki             - prefix wiki-  (at the end of this file)
   ===================================================================== */
.edge-win { --edge-frame: #e7eaee; --edge-tool: #f9f9fb; --edge-line: #dedfe3; }
.edge-win .win-titlebar { height: 40px; background: var(--edge-frame); }
.edge-win:not(.active) .win-titlebar { background: #eff1f3; }
.edge-win .win-controls .cap-btn { width: 46px; }
.edge-titleslot { gap: 2px !important; padding-left: 6px !important; align-items: flex-end !important; }
.edge-tbtn { flex: none; width: 32px; height: 32px; margin-bottom: 4px; border: none; background: none; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #333; padding: 7px; cursor: default; }
.edge-tbtn:hover { background: rgba(0,0,0,.06); }
.edge-profile { padding: 5px; }
.edge-newtab { margin-left: 2px; }
.edge-gl { display: inline-flex; width: 16px; height: 16px; flex: none; align-items: center; justify-content: center; }
.edge-gl svg { width: 100%; height: 100%; }

/* tabs */
.edge-tabs { display: flex; align-items: flex-end; min-width: 0; flex: 0 1 auto; height: 100%; padding-left: 4px; overflow: hidden; }
.edge-tab {
  position: relative; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; width: 240px; min-width: 48px; flex: 0 1 240px;
  border-radius: 8px 8px 0 0; font-size: 12px; color: #1a1a1a; cursor: default; margin-right: 1px;
}
.edge-tab::after { content: ''; position: absolute; right: -1px; top: 9px; height: 16px; width: 1px; background: rgba(0,0,0,.16); }
.edge-tab.active::after, .edge-tab:has(+ .edge-tab.active)::after, .edge-tab:hover::after, .edge-tab:has(+ .edge-tab:hover)::after { display: none; }
.edge-tab:hover:not(.active) { background: rgba(255,255,255,.55); }
.edge-tab.active { background: var(--edge-tool); box-shadow: 0 -1px 2px rgba(0,0,0,.04); }
.edge-tab.active::before, .edge-tab.active > .edge-tab-wing { display: none; }
.edge-tab-ico { width: 16px; height: 16px; flex: none; display: inline-flex; }
.edge-tab-ico svg { width: 100%; height: 100%; }
.edge-tab-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.edge-tab-x { flex: none; width: 24px; height: 24px; border: none; background: none; border-radius: 4px; padding: 6px; color: #444; display: inline-flex; }
.edge-tab-x:hover { background: rgba(0,0,0,.08); }
.edge-tab-spin { display: block; width: 14px; height: 14px; margin: 1px; border-radius: 50%; border: 2px solid rgba(15,108,189,.2); border-top-color: #0f6cbd; animation: spin .7s linear infinite; }
.edge-tab:not(.active) .edge-tab-x { opacity: 0; }
.edge-tab:hover .edge-tab-x { opacity: 1; }

/* toolbar */
.edge-body { background: var(--edge-tool); }
.edge-toolbar { flex: none; height: 44px; display: flex; align-items: center; gap: 2px; padding: 0 6px; background: var(--edge-tool); }
.edge-tb { flex: none; width: 34px; height: 32px; border: none; background: none; border-radius: 6px; padding: 8px; color: #1a1a1a; display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.edge-tb:hover:not(:disabled), .edge-tb.open { background: rgba(0,0,0,.06); }
.edge-tb:disabled { color: #b4b4b4; }
.edge-tb svg { width: 100%; height: 100%; }
.edge-tb-right { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.edge-copilot { padding: 6px; }
.edge-dl-pulse { animation: edgepulse 1.2s ease-out; }
@keyframes edgepulse { 0% { background: rgba(15,108,189,.25); } 100% { background: transparent; } }

.edge-addr { flex: 1; min-width: 120px; height: 32px; display: flex; align-items: center; background: #eff1f3; border-radius: 16px; border: 1px solid transparent; padding: 0 4px 0 4px; margin: 0 4px; }
.edge-addr:hover { background: #e8eaed; }
.edge-addr.focus { background: #fff; border-color: #0f6cbd; box-shadow: 0 0 0 1px #0f6cbd; }
.edge-addr-icon { flex: none; height: 26px; min-width: 26px; border: none; background: none; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; color: #444; font-size: 13px; cursor: default; }
.edge-addr-icon:hover:not(.plain) { background: rgba(0,0,0,.06); }
.edge-addr-icon.plain { color: #666; }
.edge-addr-chip { font-size: 13px; color: #333; }
.edge-addr-chip.warn { color: #c42b1c; }
.edge-addr-pipe { width: 1px; height: 16px; background: #bbb; }
.edge-addr-field { position: relative; flex: 1; min-width: 0; height: 100%; }
.edge-addr-input { position: absolute; inset: 0; width: 100%; border: none; background: transparent; outline: none; font-size: 14px; padding: 0 6px; color: #1a1a1a; opacity: 0; }
.edge-addr.focus .edge-addr-input { opacity: 1; }
.edge-addr-display { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 6px; font-size: 14px; white-space: nowrap; overflow: hidden; cursor: text; }
.edge-addr.focus .edge-addr-display { display: none; }
.edge-addr-host { color: #1a1a1a; }
.edge-addr-rest { color: #6b6b6b; overflow: hidden; text-overflow: ellipsis; }
.edge-addr-ph { color: #6b6b6b; }
.edge-addr-star, .edge-addr-zoom { flex: none; width: 28px; height: 26px; border: none; background: none; border-radius: 13px; padding: 5px 6px; color: #333; display: inline-flex; }
.edge-addr-star:hover, .edge-addr-zoom:hover { background: rgba(0,0,0,.06); }

/* favorites bar + infobar */
.edge-favbar { flex: none; height: 30px; display: flex; align-items: center; gap: 2px; padding: 0 8px 2px; background: var(--edge-tool); border-bottom: 1px solid var(--edge-line); }
.edge-fav { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: none; background: none; border-radius: 4px; font-size: 12px; color: #1a1a1a; cursor: default; max-width: 200px; white-space: nowrap; }
.edge-fav:hover { background: rgba(0,0,0,.06); }
.edge-fav-ico { width: 16px; height: 16px; flex: none; display: inline-flex; }
.edge-fav-ico svg { width: 100%; height: 100%; }
.edge-fav-spacer { flex: 1; }
.edge-infobar { display: none; flex: none; align-items: center; gap: 8px; height: 26px; padding: 0 14px; font-size: 12px; color: #4a4a4a; background: #f3f2f1; border-bottom: 1px solid #e3e3e3; }
.edge-infobar.show { display: flex; }
.edge-infobar-ico { width: 14px; height: 14px; display: inline-flex; color: #605e5c; }

/* pages */
.edge-pages { flex: 1; min-height: 0; position: relative; background: #fff; }
.edge-page { position: absolute; inset: 0; overflow: auto; display: none; background: #fff; outline: none; user-select: text; -webkit-user-select: text; }
.edge-page.active { display: block; }
.edge-page button, .edge-page [onclick] { user-select: none; }
.edge-link { color: #0f6cbd; cursor: pointer; text-decoration: none; }
.edge-link:hover { text-decoration: underline; }

/* flyouts */
.edge-flyhost { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 40; }
.edge-flyout { position: absolute; background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 13px; color: #1a1a1a; animation: menuin .12s ease-out; }
.edge-fly-head { display: flex; align-items: center; height: 44px; padding: 0 8px 0 16px; }
.edge-fly-title { font-size: 14px; font-weight: 600; flex: 1; }
.edge-fly-icons { display: flex; gap: 2px; color: #333; }
.edge-fly-icons > .edge-gl { width: 28px; height: 28px; padding: 6px; border-radius: 4px; }
.edge-fly-icons > .edge-gl:hover { background: rgba(0,0,0,.06); }
.edge-ficon { width: 30px; height: 30px; border: none; background: none; border-radius: 4px; padding: 7px; display: inline-flex; color: #333; }
.edge-ficon:hover { background: rgba(0,0,0,.06); }
.edge-fly-body { padding: 4px 16px 16px; line-height: 1.45; }
.edge-fly-muted { color: #616161; font-size: 12px; line-height: 1.45; }
.edge-small-fly { width: 300px; }
.edge-coll-new { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fafafa; margin-bottom: 10px; padding: 0 10px; }
.edge-fly-list { padding: 0 6px 8px; max-height: 360px; overflow: auto; }
.edge-fly-folder { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; font-size: 13px; }
.edge-fly-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 10px; border: none; background: none; border-radius: 4px; text-align: left; font-size: 13px; cursor: default; }
.edge-fly-item.indent { padding-left: 34px; }
.edge-fly-item:hover { background: rgba(0,0,0,.05); }
.edge-favfly { width: 340px; }
.edge-favpop { width: 340px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.edge-favpop .edge-fly-title { margin-bottom: 8px; }
.edge-lbl { font-size: 12px; color: #444; margin-top: 4px; }
.edge-input { height: 32px; border: 1px solid #ccc; border-bottom-color: #888; border-radius: 4px; padding: 0 8px; font-size: 13px; outline: none; }
.edge-input:focus { border-bottom: 2px solid #0f6cbd; }
.edge-select { display: flex; align-items: center; gap: 8px; height: 32px; border: 1px solid #ccc; border-radius: 4px; padding: 0 8px; font-size: 13px; }
.edge-sel-chev { margin-left: auto; color: #555; }
.edge-btnrow { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.edge-btn { height: 30px; min-width: 72px; padding: 0 14px; border: 1px solid #d1d1d1; border-radius: 4px; background: #fff; font-size: 13px; color: #1a1a1a; cursor: default; }
.edge-btn:hover:not(:disabled) { background: #f5f5f5; }
.edge-btn.primary { background: #0f6cbd; border-color: #0f6cbd; color: #fff; }
.edge-btn.primary:hover { background: #115ea3; }
.edge-btn:disabled { color: #aaa; }
.edge-siteinfo { width: 360px; padding: 14px 16px 10px; }
.edge-siteinfo .edge-fly-title { display: block; margin-bottom: 10px; }
.edge-si-row { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid #eee; align-items: flex-start; }
.edge-si-strong { font-weight: 600; }
.edge-profly { width: 320px; padding: 14px 8px 8px; }
.edge-pro-top { display: flex; gap: 12px; align-items: center; padding: 0 8px 10px; }
.edge-pro-av { width: 48px; height: 48px; display: inline-flex; flex: none; }
.edge-pro-links { padding: 0 8px 10px; border-bottom: 1px solid #eee; margin-bottom: 6px; font-size: 12px; }

/* downloads flyout */
.edge-dlfly { width: 360px; }
.edge-dl-sub { font-size: 12px; color: #616161; padding: 0 16px 4px; }
.edge-dl-list { padding: 0 6px 4px; max-height: 340px; overflow: auto; }
.edge-dl-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; cursor: default; }
.edge-dl-item:hover { background: rgba(0,0,0,.04); }
.edge-dl-item.deleted .edge-dl-name { text-decoration: line-through; color: #888; }
.edge-dl-ico { width: 32px; height: 32px; display: inline-flex; flex: none; }
.edge-dl-ico svg { width: 100%; height: 100%; }
.edge-dl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.edge-dl-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edge-dl-open { font-size: 12px; width: max-content; }
.edge-dl-size { font-size: 12px; color: #616161; }
.edge-dl-actions { display: flex; gap: 2px; opacity: 0; }
.edge-dl-item:hover .edge-dl-actions { opacity: 1; }
.edge-dl-act { width: 28px; height: 28px; border: none; background: none; border-radius: 4px; padding: 6px; display: inline-flex; color: #333; }
.edge-dl-act:hover { background: rgba(0,0,0,.07); }
.edge-dl-empty { padding: 14px 10px; }
.edge-dl-foot { border-top: 1px solid #eee; padding: 10px 16px; font-size: 13px; }

.ctx-menu.edge-ctx { font-size: 13px; min-width: 240px; }
.ctx-menu.edge-ctx .ctx-item { height: 32px; }
.ctx-menu.edge-ctx .ctx-icon svg { width: 16px; height: 16px; }
.edge-more-menu { min-width: 300px !important; }

/* new tab page */
.edge-ntp { overflow: hidden !important; }
.edge-ntp-bg { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 45% at 50% 100%, #2b4d3a 0%, rgba(43,77,58,0) 70%),
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(25,45,60,.55) 56%, rgba(40,70,95,.75) 70%, #1f3346 100%),
    radial-gradient(ellipse 50% 30% at 50% 56%, #ffd7a0 0%, rgba(255,215,160,0) 70%),
    linear-gradient(180deg, #2c5d8f 0%, #6f98bf 30%, #e7b98d 55%, #c98f6a 56%, #345a76 72%, #1c3044 100%); }
.edge-ntp-bg::after { content: ''; position: absolute; left: 0; right: 0; top: 38%; height: 20%;
  background: linear-gradient(170deg, transparent 40%, #2f4a5e 41%, #2f4a5e 100%), linear-gradient(195deg, transparent 50%, #26404f 51%); opacity: .85;
  clip-path: polygon(0 100%, 0 60%, 12% 30%, 22% 55%, 35% 10%, 48% 50%, 58% 25%, 70% 60%, 82% 20%, 92% 45%, 100% 30%, 100% 100%); }
.edge-ntp-top { position: absolute; left: 24px; right: 24px; top: 16px; display: flex; justify-content: space-between; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); font-size: 13px; z-index: 1; }
.edge-ntp-weather { display: flex; gap: 8px; align-items: baseline; }
.edge-ntp-temp { font-size: 18px; font-weight: 600; }
.edge-ntp-center { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); width: min(640px, 90%); display: flex; flex-direction: column; align-items: center; gap: 28px; z-index: 1; }
.edge-ntp-search { width: 100%; height: 48px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 24px; padding: 0 8px 0 18px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.edge-ntp-sico { width: 20px; height: 20px; display: inline-flex; flex: none; }
.edge-ntp-input { flex: 1; border: none; outline: none; font-size: 16px; background: transparent; }
.edge-ntp-go { width: 36px; height: 36px; border: none; background: none; border-radius: 18px; padding: 9px; color: #0f6cbd; display: inline-flex; }
.edge-ntp-go:hover { background: #eef4fb; }
.edge-ntp-quick { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.edge-ntp-tile { width: 96px; height: 88px; border: none; border-radius: 8px; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; cursor: default; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.edge-ntp-tile:hover { background: rgba(255,255,255,.3); }
.edge-ntp-tico { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: inline-flex; padding: 10px; color: #444; }
.edge-ntp-tico svg { width: 100%; height: 100%; }
.edge-ntp-tname { font-size: 12px; max-width: 88px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edge-ntp-foot { position: absolute; right: 16px; bottom: 12px; color: rgba(255,255,255,.85); font-size: 12px; z-index: 1; }

/* search results */
.edge-serp { background: #fff; font-family: 'Segoe UI', Arial, sans-serif; }
.edge-serp-head { display: flex; align-items: center; gap: 24px; padding: 18px 28px 10px; }
.edge-serp-logo { display: flex; align-items: center; gap: 8px; font-size: 22px; color: #174ae4; font-weight: 600; }
.edge-serp-mark { width: 26px; height: 26px; display: inline-flex; }
.edge-serp-box { flex: 0 1 640px; height: 44px; display: flex; align-items: center; border-radius: 22px; box-shadow: 0 0 0 1px #ddd, 0 2px 6px rgba(0,0,0,.08); padding: 0 6px 0 18px; }
.edge-serp-input { flex: 1; border: none; outline: none; font-size: 16px; }
.edge-serp-go { width: 34px; height: 34px; border: none; background: none; color: #174ae4; padding: 8px; display: inline-flex; border-radius: 17px; }
.edge-serp-user { margin-left: auto; font-size: 13px; color: #444; }
.edge-serp-tabs { display: flex; gap: 22px; padding: 0 28px 0 182px; border-bottom: 1px solid #ececec; font-size: 12px; color: #666; }
.edge-serp-tabs span { padding: 10px 0; }
.edge-serp-tabs span.sel { color: #111; border-bottom: 3px solid #174ae4; }
.edge-serp-body { padding: 12px 28px 40px 182px; max-width: 900px; }
.edge-serp-count { color: #70757a; font-size: 13px; margin-bottom: 18px; }
.edge-serp-res { margin-bottom: 26px; }
.edge-serp-site { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.edge-serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; display: inline-flex; padding: 5px; }
.edge-serp-sname { font-size: 14px; color: #111; }
.edge-serp-surl { font-size: 12px; color: #006d21; }
.edge-serp-title { font-size: 20px; color: #1a0dab; cursor: pointer; display: inline-block; margin-bottom: 4px; }
.edge-serp-title:hover { text-decoration: underline; }
.edge-serp-snip { font-size: 14px; color: #4d5156; line-height: 1.55; }
.edge-serp-note { font-size: 12px; color: #888; border-top: 1px solid #eee; padding-top: 12px; }

/* error page */
.edge-error { background: #fff; }
.edge-err-wrap { max-width: 600px; margin: 12vh auto 0; padding: 0 24px; color: #1a1a1a; font-size: 15px; }
.edge-err-ico { width: 72px; height: 72px; margin-bottom: 20px; }
.edge-err-wrap h1 { font-size: 26px; font-weight: 600; margin: 0 0 18px; }
.edge-err-wrap p { margin: 0 0 8px; }
.edge-err-wrap ul { margin: 0 0 18px; padding-left: 20px; }
.edge-err-code { font-size: 12px; color: #616161; margin-bottom: 24px; letter-spacing: .2px; }
.edge-err-btn { min-width: 96px; height: 32px; }

/* edge:// pages */
.edge-internal { background: #f7f7f7; }
.edge-set { display: flex; min-height: 100%; }
.edge-set-nav { width: 280px; flex: none; padding: 20px 12px; }
.edge-set-title { font-size: 22px; font-weight: 600; padding: 0 12px 14px; }
.edge-set-search { display: flex; align-items: center; gap: 8px; height: 34px; border: 1px solid #ddd; border-radius: 6px; background: #fff; padding: 0 10px; margin: 0 6px 12px; }
.edge-set-search input { border: none; outline: none; flex: 1; font-size: 13px; background: none; }
.edge-set-item { height: 36px; display: flex; align-items: center; padding: 0 14px; border-radius: 6px; font-size: 13px; cursor: default; position: relative; }
.edge-set-item:hover { background: rgba(0,0,0,.05); }
.edge-set-item.sel { background: rgba(0,0,0,.06); font-weight: 600; }
.edge-set-item.sel::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: #0f6cbd; }
.edge-set-main { flex: 1; padding: 64px 32px 32px 12px; max-width: 900px; }
.edge-set-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 20px 24px; font-size: 13px; }
.edge-set-h { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.edge-set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; border-top: 1px solid #f0f0f0; padding: 8px 0; }
.edge-about { display: flex; gap: 14px; align-items: center; }
.edge-about-logo { width: 48px; height: 48px; display: inline-flex; }
.edge-ok { color: #107c10; margin-top: 8px; }
.edge-ipage { max-width: 860px; margin: 0 auto; padding: 28px 24px; }
.edge-ipage h1 { font-size: 24px; font-weight: 600; margin: 0 0 18px; }
.edge-ilist { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 8px; font-size: 13px; }
.edge-ihead { font-weight: 600; padding: 12px 10px 6px; }
.edge-irow { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 4px 10px; border-radius: 4px; cursor: default; }
.edge-irow:hover { background: #f3f3f3; }
.edge-irow.tall { min-height: 56px; }
.edge-ititle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edge-ihost { color: #666; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edge-itime { color: #666; font-size: 12px; flex: none; }

/* Microsoft Learn (generic) */
.edge-learn { background: #fff; font-family: 'Segoe UI', sans-serif; }
.edge-learn-head { display: flex; align-items: center; gap: 18px; height: 54px; padding: 0 28px; border-bottom: 1px solid #e3e3e3; font-size: 14px; }
.edge-learn-logo { width: 22px; height: 22px; display: inline-flex; }
.edge-learn-brand { font-weight: 600; font-size: 16px; margin-right: 8px; }
.edge-learn-nav { color: #323130; }
.edge-learn-sign { margin-left: auto; color: #0065b3; }
.edge-learn-main { max-width: 900px; margin: 0 auto; padding: 28px 28px 60px; font-size: 15px; line-height: 1.6; color: #171717; }
.edge-learn-main h1 { font-size: 32px; font-weight: 600; line-height: 1.25; margin: 6px 0 12px; }
.edge-learn-main h2 { font-size: 22px; font-weight: 600; margin: 28px 0 8px; }
.edge-learn-crumb { font-size: 13px; color: #555; }
.edge-learn-mods { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.edge-learn-mod { border: 1px solid #e3e3e3; border-radius: 6px; padding: 14px 18px; cursor: pointer; }
.edge-learn-mod:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.edge-learn-mt { font-weight: 600; color: #0065b3; }
.edge-learn-meta { font-size: 12px; color: #555; margin-top: 4px; }

/* =====================================================================
   Contoso IT Wiki  (wiki-)
   ===================================================================== */
.wiki { --wk-purple: #4b2a85; --wk-purple2: #6b46b8; --wk-teal: #0e8a8a; --wk-teal2: #18b3a8; --wk-bg: #f6f5fa; --wk-line: #e3e0ec; --wk-text: #23202b; --wk-muted: #6a6578;
  min-height: 100%; background: var(--wk-bg); color: var(--wk-text); font-family: 'Segoe UI', system-ui, sans-serif; font-size: 14px; display: flex; flex-direction: column; }
.wiki-top { flex: none; height: 56px; display: flex; align-items: center; gap: 20px; padding: 0 24px; background: linear-gradient(90deg, var(--wk-purple) 0%, #3a2470 60%, #24335f 100%); color: #fff; }
.wiki-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.wiki-logo { width: 30px; height: 30px; display: inline-flex; }
.wiki-brand-name { font-size: 17px; font-weight: 600; letter-spacing: .2px; }
.wiki-brand-sub { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: 1.2px; }
.wiki-topnav { display: flex; gap: 4px; margin-left: 12px; }
.wiki-topnav span { padding: 6px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; opacity: .92; }
.wiki-topnav span:hover, .wiki-topnav span.sel { background: rgba(255,255,255,.14); opacity: 1; }
.wiki-search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 280px; height: 32px; border-radius: 16px; background: rgba(255,255,255,.15); padding: 0 12px; }
.wiki-search input { flex: 1; border: none; outline: none; background: none; color: #fff; font-size: 13px; }
.wiki-search input::placeholder { color: rgba(255,255,255,.75); }
.wiki-user { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.wiki-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--wk-teal2); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.wiki-shell { flex: 1; display: flex; min-height: 0; }
.wiki-nav { width: 260px; flex: none; background: #fff; border-right: 1px solid var(--wk-line); padding: 18px 10px; }
.wiki-nav-h { font-size: 11px; font-weight: 700; color: var(--wk-muted); text-transform: uppercase; letter-spacing: 1px; padding: 6px 12px; }
.wiki-nav-item { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--wk-text); }
.wiki-nav-item:hover { background: #f1eef8; }
.wiki-nav-item.sel { background: #ebe5f7; color: var(--wk-purple); font-weight: 600; }
.wiki-nav-item.l1 { padding-left: 26px; }
.wiki-nav-item.l2 { padding-left: 42px; }
.wiki-nav-chev { width: 10px; color: var(--wk-muted); font-size: 10px; }
.wiki-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--wk-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.wiki-check.todo { background: none; border: 1.5px solid #c9c3d8; }
.wiki-main { flex: 1; min-width: 0; padding: 22px 36px 48px; }
.wiki-crumb { font-size: 12px; color: var(--wk-muted); margin-bottom: 10px; }
.wiki-crumb a { color: var(--wk-purple2); cursor: pointer; }
.wiki-crumb a:hover { text-decoration: underline; }
.wiki-h1 { font-size: 28px; font-weight: 600; margin: 0 0 6px; color: #1d1530; }
.wiki-meta { font-size: 12px; color: var(--wk-muted); margin-bottom: 20px; }
.wiki-hero { border-radius: 12px; padding: 26px 30px; color: #fff; background: linear-gradient(120deg, var(--wk-purple) 0%, var(--wk-purple2) 45%, var(--wk-teal) 100%); margin-bottom: 22px; position: relative; overflow: hidden; }
.wiki-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.wiki-hero h1 { margin: 0 0 8px; font-size: 26px; font-weight: 600; }
.wiki-hero p { margin: 0; max-width: 640px; opacity: .92; line-height: 1.5; }
.wiki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 22px; }
.wiki-card { background: #fff; border: 1px solid var(--wk-line); border-radius: 10px; padding: 16px 18px; }
.wiki-card.link { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.wiki-card.link:hover { box-shadow: 0 6px 18px rgba(75,42,133,.12); transform: translateY(-1px); }
.wiki-card h3 { margin: 0 0 6px; font-size: 15px; color: #1d1530; display: flex; align-items: center; gap: 8px; }
.wiki-card p { margin: 0; color: var(--wk-muted); font-size: 13px; line-height: 1.5; }
.wiki-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #e2f5f3; color: var(--wk-teal); margin-right: 6px; }
.wiki-tag.purple { background: #ede7f9; color: var(--wk-purple2); }
.wiki-ann { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--wk-line); }
.wiki-ann:first-of-type { border-top: none; }
.wiki-ann-date { flex: none; width: 52px; text-align: center; border-radius: 8px; background: #f1eef8; padding: 6px 0; color: var(--wk-purple); font-weight: 600; font-size: 12px; line-height: 1.2; }
.wiki-ann-date b { display: block; font-size: 18px; }
.wiki-ann h4 { margin: 0 0 3px; font-size: 14px; }
.wiki-ann p { margin: 0; font-size: 13px; color: var(--wk-muted); line-height: 1.5; }
.wiki-two { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.wiki-article { background: #fff; border: 1px solid var(--wk-line); border-radius: 10px; padding: 26px 34px 34px; max-width: 920px; line-height: 1.62; }
.wiki-article h2 { font-size: 20px; color: var(--wk-purple); margin: 28px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #efeaf8; }
.wiki-article h2:first-of-type { margin-top: 8px; }
.wiki-article h3 { font-size: 15px; margin: 18px 0 4px; color: #1d1530; }
.wiki-article p { margin: 6px 0 10px; }
.wiki-article ul { margin: 4px 0 12px; padding-left: 22px; }
.wiki-article li { margin: 3px 0; }
.wiki-toc { background: #f8f6fc; border: 1px solid var(--wk-line); border-radius: 8px; padding: 12px 18px; margin: 4px 0 18px; font-size: 13px; }
.wiki-toc b { display: block; margin-bottom: 4px; }
.wiki-toc a { color: var(--wk-purple2); cursor: pointer; display: block; padding: 1px 0; }
.wiki-callout { border-left: 4px solid var(--wk-teal); background: #eef9f8; padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 12px 0; font-size: 13px; }
.wiki-callout.exam { border-left-color: var(--wk-purple2); background: #f3effb; }
.wiki-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 13px; }
.wiki-table th, .wiki-table td { border: 1px solid var(--wk-line); padding: 7px 10px; text-align: left; vertical-align: top; }
.wiki-table th { background: #f3effb; color: #2c1d52; font-weight: 600; }
.wiki-table td.you { background: #fff6e6; }
.wiki-table td.prov { background: #e9f6f5; }
.wiki-legend { display: flex; gap: 16px; font-size: 12px; color: var(--wk-muted); }
.wiki-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -2px; margin-right: 4px; border: 1px solid var(--wk-line); }
.wiki-btn { height: 34px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--wk-line); background: #fff; color: var(--wk-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.wiki-btn:hover { background: #f6f3fb; }
.wiki-btn.primary { background: var(--wk-purple); border-color: var(--wk-purple); color: #fff; }
.wiki-btn.primary:hover { background: #3c216c; }
.wiki-foot { font-size: 12px; color: var(--wk-muted); padding: 18px 36px; border-top: 1px solid var(--wk-line); background: #fff; }

/* activity board */
.wiki-act-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 14px; }
.wiki-act-head .wiki-h1 { margin: 0; }
.wiki-progress { margin-left: auto; min-width: 220px; }
.wiki-progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--wk-muted); margin-bottom: 4px; }
.wiki-progress-bar { height: 8px; border-radius: 4px; background: #e7e2f2; overflow: hidden; }
.wiki-progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--wk-purple2), var(--wk-teal2)); transition: width .3s; }
.wiki-instr { font-size: 13px; color: var(--wk-muted); margin: 0 0 14px; }
.wiki-feedback { min-height: 42px; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px dashed var(--wk-line); color: var(--wk-muted); }
.wiki-feedback.ok { background: #e8f6ee; border: 1px solid #a8dcbc; color: #0f5b30; }
.wiki-feedback.bad { background: #fdeeee; border: 1px solid #f0b4b4; color: #8a1c1c; }
.wiki-feedback b { flex: none; }
.wiki-pool { display: flex; flex-wrap: wrap; gap: 10px; min-height: 64px; padding: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--wk-line); margin-bottom: 16px; }
.wiki-pool-empty { color: var(--wk-muted); font-size: 13px; align-self: center; }
.wiki-cardx { position: relative; width: 210px; min-height: 58px; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid #d8d2e6; box-shadow: 0 1px 3px rgba(40,20,80,.08); font-size: 13px; line-height: 1.35; cursor: grab; user-select: none; transition: box-shadow .12s, transform .12s, border-color .12s; }
.wiki-cardx:hover { border-color: var(--wk-purple2); box-shadow: 0 4px 12px rgba(75,42,133,.15); }
.wiki-cardx.sel { border-color: var(--wk-purple2); box-shadow: 0 0 0 2px var(--wk-purple2); transform: translateY(-2px); }
.wiki-cardx.dragging { opacity: .45; }
.wiki-cardx.locked { cursor: default; border-color: #8fd3ad; background: #f0faf4; box-shadow: none; width: auto; }
.wiki-cardx.locked:hover { transform: none; }
.wiki-cardx .wiki-why { display: block; margin-top: 6px; font-size: 12px; color: #2b6a45; }
.wiki-cardx .wiki-ok { position: absolute; right: 8px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #1c9e57; color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.wiki-cardx.locked .wiki-ctext { padding-right: 18px; display: block; }
.wiki-cardx.shake { animation: wikishake .45s; border-color: #d13438; box-shadow: 0 0 0 2px rgba(209,52,56,.35); }
@keyframes wikishake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.wiki-buckets { display: grid; gap: 12px; }
.wiki-bucket { border-radius: 10px; background: #fff; border: 2px dashed #d5cfe4; min-height: 180px; display: flex; flex-direction: column; transition: border-color .12s, background .12s; }
.wiki-bucket.armed { border-color: var(--wk-purple2); cursor: pointer; }
.wiki-bucket.armed:hover, .wiki-bucket.over { background: #f4f0fb; border-style: solid; }
.wiki-bucket-h { padding: 10px 12px 8px; border-bottom: 1px solid var(--wk-line); }
.wiki-bucket-t { font-weight: 700; font-size: 14px; color: var(--wk-purple); display: flex; justify-content: space-between; }
.wiki-bucket-d { font-size: 12px; color: var(--wk-muted); margin-top: 2px; line-height: 1.35; }
.wiki-bucket-b { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.wiki-done { border-radius: 12px; padding: 18px 22px; background: linear-gradient(120deg, #e6f6f4, #efe9fb); border: 1px solid #c9e6e1; display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.wiki-done-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--wk-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
.wiki-done h3 { margin: 0 0 4px; font-size: 18px; color: #1d1530; }
.wiki-done p { margin: 0; color: var(--wk-muted); font-size: 13px; }
.wiki-done-btns { margin-left: auto; display: flex; gap: 8px; }
