/* LFCWW Connect – glass dashboard concept (separate from the live portal design) */
:root {
  --ink: #1f1a16; --ink-2: #3a2f29; --muted: #6a5d53; --faint: #9c8f84;
  /* Atrium palette: wine primary, brown depth, ember orange highlights, white ground */
  --ac: #b3122b; --ac2: #d4642e; --ac-ink: #fff; --ac-soft: rgba(179, 18, 43, .11); --ac-deep: #8a0b1f;
  --hl: #f0a94f; --hl-ink: #2b1d19;
  --deep: #2b1d19; --deep-2: #5a1626;
  --line: rgba(31, 26, 22, .09);
  --glass: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55));
  --shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 40px -26px rgba(94, 58, 42, .4);
  --r: 22px;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[data-accent="ember"] { --ac: #e08a2e; --ac2: #f3c27a; --ac-ink: #2b1d19; --ac-soft: rgba(232, 160, 79, .22); --ac-deep: #a85d12; --hl: #f6cf96; }
html[data-accent="brown"] { --ac: #5e3a2a; --ac2: #b8642e; --ac-ink: #fff; --ac-soft: rgba(94, 58, 42, .12); --ac-deep: #3d2418; --hl: #e8a04f; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { font: 400 14px/1.5 var(--sans); color: var(--ink); background: #f1e4da; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 10px; }
kbd { font: 600 10.5px/1 var(--sans); padding: 4px 7px; border-radius: 7px; background: rgba(31, 26, 22, .06); color: var(--muted); }

/* ---------- backdrop ---------- */
.bg { position: fixed; inset: 0; z-index: -1; background: linear-gradient(135deg, #fbefe3 0%, #f4dcd3 42%, #e9c9bf 100%); overflow: hidden; }
.bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .8; }
.b1 { width: 520px; height: 520px; left: -120px; top: -120px; background: #ffd7ae; }
.b2 { width: 640px; height: 640px; right: -160px; top: 20%; background: #e79aa0; }
.b3 { width: 520px; height: 520px; left: 30%; bottom: -220px; background: #f6cf96; }

/* ---------- shell ---------- */
.shell { width: min(1480px, calc(100% - 56px)); margin: 28px auto; border-radius: 34px; background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 249, 244, .82) 55%, rgba(252, 242, 235, .8)); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 50px 90px -50px rgba(90, 40, 30, .5), 0 0 0 10px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); overflow: hidden; position: relative; }
.shell::before { content: ""; position: absolute; width: 640px; height: 420px; left: 30%; top: 30px; background: radial-gradient(closest-side, var(--ac-soft), transparent); opacity: .7; pointer-events: none; z-index: 0; }
.shell > * { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 34px 6px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 500; letter-spacing: -.2px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { font-weight: 800; }
.brand .bn { font-size: 19px; line-height: 1.15; }
.top-r { display: flex; align-items: center; gap: 12px; }
.search-pill { display: flex; align-items: center; gap: 10px; width: 330px; height: 44px; padding: 0 12px 0 16px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; text-align: left; box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .3), 0 0 0 1px var(--line); transition: box-shadow .25s; }
.search-pill:hover { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35), 0 0 0 1px rgba(31, 26, 22, .18); }
.search-pill span { flex: 1; }
.round { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .3), 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.round:hover { transform: translateY(-2px); }
.round.sm { width: 36px; height: 36px; }
.round.lang { width: auto; padding: 0 14px 0 12px; gap: 6px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.ping { position: absolute; top: 11px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #e8434a; box-shadow: 0 0 0 2px #fff; }
.btn-ac, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-ac { background: var(--ac); color: var(--ac-ink); box-shadow: 0 8px 20px -10px var(--ac-deep), 0 0 0 1px rgba(0, 0, 0, .06) inset; }
.btn-ac:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px var(--ac-deep); }
.btn-ghost { background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px var(--line); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.sm.btn-ac, .sm.btn-ghost { height: 34px; padding: 0 14px; font-size: 12px; gap: 6px; }
.sm .i { width: 15px; height: 15px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg, #fde6cf, #f0c5bf); color: var(--ink-2); box-shadow: 0 0 0 3px var(--ac), 0 8px 18px -10px rgba(0, 0, 0, .4); }

/* ---------- popovers ---------- */
.pop-wrap { position: relative; }
.pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 230px; padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 60px -24px rgba(60, 30, 25, .5), 0 0 0 1px var(--line); animation: pop .22s ease; }
.pop-wrap.up .pop { top: auto; bottom: 0; right: auto; left: calc(100% + 12px); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pop-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 12.5px; }
.pop-h span { padding: 3px 9px; border-radius: 99px; background: var(--ac-soft); font-size: 11px; font-weight: 700; }
.pop-bell { width: 340px; }
.pop-bell li a { display: flex; flex-direction: column; padding: 10px; border-radius: 12px; font-weight: 600; font-size: 13px; }
.pop-bell li a:hover { background: rgba(31, 26, 22, .04); }
.pop-bell li small { color: var(--muted); font-weight: 500; }
.pop-f { display: block; margin-top: 4px; padding: 10px; border-radius: 12px; text-align: center; font-size: 12.5px; font-weight: 700; background: rgba(31, 26, 22, .04); }
.pop-sm button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; text-align: left; }
.pop-sm button:hover { background: rgba(31, 26, 22, .05); }
.pop-sm button.on { background: var(--ac-soft); }
.sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.sw.wine { background: #b3122b; } .sw.ember { background: #e08a2e; } .sw.brown { background: #5e3a2a; }

/* ---------- frame: rail + content ---------- */
.frame { display: grid; grid-template-columns: 84px minmax(0, 1fr); padding: 8px 34px 0 22px; }
.rail { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; height: calc(100vh - 80px); min-height: 480px; max-height: 780px; padding-top: 6px; }
.rail-top, .rail-bot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rb { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .3), 0 0 0 1px var(--line); color: var(--ink-2); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background .25s, color .25s; }
.rb .i { width: 20px; height: 20px; }
.rb:hover { transform: scale(1.1); }
.rb.on { background: radial-gradient(circle at 30% 25%, #6a3326, #1e100c); color: var(--hl); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .6), 0 0 0 5px rgba(255, 255, 255, .6); }
.content { min-width: 0; padding-bottom: 34px; }

/* ---------- cards / panels ---------- */
.card { background: var(--glass); border: 1px solid rgba(255, 255, 255, .95); border-radius: var(--r); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.panel { padding: 22px 24px; border-radius: 26px; }
.p-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.p-h.wrap { flex-wrap: wrap; align-items: center; }
.p-h h2 { font-size: 19px; font-weight: 600; letter-spacing: -.2px; }
.p-h h3 { font-size: 15px; font-weight: 600; }
.p-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: color .2s; }
.p-link:hover { color: var(--ink); }
.p-link .i { width: 14px; height: 14px; }
.sub { color: var(--muted); font-size: 13px; }
.chip-sm { padding: 5px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--muted); }
.dots { color: var(--muted); }
.sec { margin-top: 22px; }
.two { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.linkbtn { font-weight: 700; text-decoration: underline; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 10px; align-items: start; }
.hero-l { padding-top: 8px; }
.hero h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.06; font-weight: 500; letter-spacing: -1.2px; }
.lead { margin-top: 14px; max-width: 30ch; font-size: 17px; line-height: 1.45; color: var(--muted); }
.today { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; max-width: 560px; }
.stat { padding: 18px 20px 16px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow), 0 24px 40px -26px rgba(94, 58, 42, .4); }
.s-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.s-h .i { width: 16px; height: 16px; }
.stat .n { display: block; margin-top: 10px; font-size: 30px; line-height: 1.05; font-weight: 500; letter-spacing: -1px; }
.stat small { display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px var(--line); font-size: 10.5px; color: var(--muted); font-weight: 600; }
.hero-r { position: relative; min-height: 430px; }
.ark { position: absolute; left: -30px; right: 0; top: -6px; height: 400px; margin: 0; }
.ark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; border-radius: 40px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(0deg, transparent 0, #000 22%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(0deg, transparent 0, #000 22%); mask-composite: intersect; filter: saturate(1.08) contrast(1.04); }
.ark figcaption { position: absolute; left: 20%; bottom: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; font-weight: 700; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.ark figcaption .i { width: 14px; height: 14px; }
.fab { position: fixed; right: 28px; bottom: 28px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.contact { width: 280px; padding: 16px; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .98), rgba(255, 249, 244, .94)); box-shadow: 0 40px 70px -30px rgba(70, 25, 25, .6), 0 0 0 1px rgba(255, 255, 255, .9) inset; transform-origin: 100% 100%; animation: fabin .3s cubic-bezier(.34, 1.4, .5, 1); }
.contact.out { animation: fabout .18s ease forwards; }
@keyframes fabin { from { opacity: 0; transform: translateY(14px) scale(.9); } }
@keyframes fabout { to { opacity: 0; transform: translateY(10px) scale(.94); } }
.fab-btn { position: relative; display: inline-flex; align-items: center; height: 60px; padding: 0 6px; border-radius: 99px; background: linear-gradient(145deg, var(--ac), var(--ac2)); color: var(--ac-ink); box-shadow: 0 18px 34px -12px var(--ac-deep), 0 0 0 4px rgba(255, 255, 255, .7); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s; }
.fab-btn:hover { transform: translateY(-3px); }
.fab-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--ac); opacity: .5; animation: fabping 2.8s infinite; pointer-events: none; }
.fab-btn[aria-expanded="true"]::before { animation: none; }
@keyframes fabping { 70%, 100% { box-shadow: 0 0 0 16px transparent; } }
.fab-ic { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: none; }
.fab-ic .i { width: 26px; height: 26px; grid-area: 1 / 1; transition: transform .3s, opacity .3s; }
.fab-ic .x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab-btn[aria-expanded="true"] .fab-ic .x { opacity: 1; transform: none; }
.fab-btn[aria-expanded="true"] .fab-ic .i:first-child { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab-tx { max-width: 110px; padding: 0 16px 0 4px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; transition: max-width .3s, padding .3s, opacity .3s; }
.fab-btn[aria-expanded="true"] .fab-tx { max-width: 0; padding: 0; opacity: 0; }
.c-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; }
.c-av { display: grid; place-items: center; width: 100%; height: 150px; margin: 10px 0 12px; border-radius: 16px; background: radial-gradient(circle at 70% 20%, var(--ac-soft), transparent 60%), linear-gradient(160deg, #fdf0e3, #efc9c2); color: var(--ink-2); }
.c-av .i { width: 62px; height: 62px; stroke-width: 1.2; }
.c-n { display: block; font-size: 19px; font-weight: 500; letter-spacing: -.3px; }
.contact dl { margin: 8px 0 12px; display: grid; gap: 4px; }
.contact dl div { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10.5px; }
.contact dt { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.contact dt .i { width: 12px; height: 12px; }
.contact dd { font-weight: 600; }
.c-b { display: flex; gap: 8px; }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.board-l { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.board-r { display: flex; flex-direction: column; gap: 16px; }
.u-list li { border-top: 1px solid var(--line); }
.u-list li:first-child { border-top: 0; }
.u-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; text-align: left; border-radius: 14px; transition: background .2s; }
.u-row:hover { background: rgba(255, 255, 255, .7); }
.u-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, #fdeedd, #f1cfc8); color: var(--ink-2); }
.u-row b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.u-row small { color: var(--muted); font-size: 11.5px; }
.tag { padding: 4px 11px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.t-g { background: rgba(179, 18, 43, .11); color: #8a0b1f; } .t-b { background: rgba(94, 58, 42, .12); color: #5e3a2a; } .t-o { background: rgba(232, 160, 79, .24); color: #9a5410; } .t-r { background: rgba(184, 100, 46, .16); color: #a2491a; }
.chart .big { display: block; margin-top: -2px; font-size: 32px; font-weight: 500; letter-spacing: -1px; line-height: 1.1; }
.board-l .panel { display: flex; flex-direction: column; }
.u-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.chart-box { position: relative; flex: 1; min-height: 150px; margin: 12px 0 14px; display: flex; flex-direction: column; }
.chart-box svg { width: 100%; flex: 1; min-height: 0; overflow: visible; }
.wk { display: flex; justify-content: space-between; margin-top: 6px; font-size: 9.5px; color: var(--faint); font-weight: 600; }
.wk span { flex: 1; text-align: center; }
.chart-box .tip { position: absolute; transform: translate(-50%, -135%); padding: 4px 10px; border-radius: 8px; background: var(--ac); color: var(--ac-ink); font-size: 11px; font-weight: 700; pointer-events: none; white-space: nowrap; }
.chart-box .tip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.c-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.c-foot b { display: block; font-size: 15px; font-weight: 600; }
.c-foot small { color: var(--muted); font-size: 10.5px; }
.pos { color: var(--ac-deep); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-card { position: relative; display: flex; flex-direction: column; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 24px -20px rgba(0, 0, 0, .4); text-align: left; transition: transform .25s, box-shadow .25s; }
.f-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 22px 30px -20px rgba(0, 0, 0, .45); }
.f-art { position: relative; display: grid; place-items: center; height: 84px; border-radius: 11px; overflow: hidden; color: #fff; }
.f-art .i { width: 34px; height: 34px; stroke-width: 1.4; position: relative; }
.f-art::before { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -20px; top: -30px; background: rgba(255, 255, 255, .18); }
.f-art em { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 700 9px/1.4 var(--sans); font-style: normal; }
.f-card b { display: block; margin-top: 7px; font-size: 12px; font-weight: 700; line-height: 1.25; }
.f-card small { display: block; color: var(--muted); font-size: 10px; line-height: 1.3; min-height: 26px; margin-top: 2px; }
.pipe-cols { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 10px; height: 150px; }
.pc { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.pc b { font-size: 22px; font-weight: 500; line-height: 1; letter-spacing: -.5px; }
.pc small { display: block; margin: 2px 0 6px; color: var(--muted); font-size: 11px; font-weight: 500; }
.pc i { display: block; width: 100%; height: 0; border-radius: 10px 10px 0 0; border-top: 2px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 40%, transparent), transparent); transition: height 1s cubic-bezier(.2, .8, .2, 1); }

/* ---------- applications ---------- */
.a-tools { margin-left: auto; }
.a-search { display: flex; align-items: center; gap: 8px; width: 280px; height: 42px; padding: 0 14px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--muted); transition: box-shadow .2s; }
.a-search:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.a-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; transition: background .2s, transform .2s; }
.chip:hover { transform: translateY(-2px); }
.chip em { font-style: normal; padding: 1px 7px; border-radius: 99px; background: rgba(31, 26, 22, .07); font-size: 10.5px; }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip.on em { background: var(--hl); color: var(--hl-ink); }
.gh { margin: 4px 0 10px; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.gh em { font-style: normal; margin-left: 4px; color: var(--faint); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 14px; }
.app { position: relative; display: flex; align-items: center; gap: 13px; padding: 14px 44px 14px 14px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 22px -20px rgba(0, 0, 0, .5); text-align: left; width: 100%; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s; overflow: hidden; }
.app::after { content: ""; position: absolute; inset: 0; background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 0), var(--ac-soft), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.app:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(31, 26, 22, .14), 0 22px 30px -20px rgba(0, 0, 0, .5); }
.app:hover::after { opacity: 1; }
.a-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: linear-gradient(145deg, var(--ac), var(--ac2)); color: var(--ac-ink); }
.a-tx { position: relative; z-index: 1; min-width: 0; }
.a-tx b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.a-tx small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; margin-top: 1px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.a-tx em { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(31, 26, 22, .06); font: 700 10px/1.5 var(--sans); font-style: normal; color: var(--muted); }
.a-tx em.live { background: rgba(232, 67, 74, .12); color: #c2262e; }
.pin { position: absolute; z-index: 2; right: 10px; top: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--faint); transition: background .2s, color .2s, transform .3s; }
.pin:hover { background: rgba(31, 26, 22, .06); color: var(--ink); }
.pin .i { width: 15px; height: 15px; }
.pin[aria-pressed="true"] { background: var(--ac); color: var(--ac-ink); }
.pin[aria-pressed="true"] .i { fill: currentColor; }
.empty { padding: 26px 8px; text-align: center; color: var(--muted); }

/* ---------- calendar ---------- */
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav b { min-width: 130px; text-align: center; font-size: 14px; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-h { padding: 6px 0; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--faint); }
.cal-d { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 72px; padding: 8px 9px; border-radius: 14px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px var(--line); text-align: left; font-size: 12.5px; font-weight: 600; transition: transform .2s, background .2s; }
.cal-d:hover { transform: translateY(-2px); background: #fff; }
.cal-d.out { opacity: .38; }
.cal-d.is-today { background: #fff; box-shadow: 0 0 0 2px var(--ac-deep); }
.cal-d.sel { background: var(--ink); color: #fff; box-shadow: none; }
.cal-d .dts { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.cal-d .dts i { width: 6px; height: 6px; border-radius: 50%; background: var(--k, var(--ac-deep)); }
.cal-d.sel .dts i { background: var(--hl); }
.cal-d .more { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.cal-d.sel .more { color: rgba(255, 255, 255, .7); }
.ev-list { display: grid; gap: 10px; max-height: 520px; overflow: auto; padding-right: 4px; }
.ev { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ev-d { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: var(--ac-soft); line-height: 1; padding: 8px 0; }
.ev-d b { font-size: 20px; font-weight: 600; } .ev-d small { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 3px; }
.ev b.t { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.ev .m { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.ev .m span { display: inline-flex; align-items: center; gap: 4px; } .ev .m .i { width: 12px; height: 12px; }
.ev .ics { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--ac-deep); }
.ev .ics:hover { text-decoration: underline; }
.ev .ics .i { width: 13px; height: 13px; }

/* ---------- news ---------- */
.n-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.n-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 26px -22px rgba(0, 0, 0, .5); text-align: left; transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.n-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--ac-soft); transition: transform .5s; }
.n-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(31, 26, 22, .14), 0 26px 34px -22px rgba(0, 0, 0, .5); }
.n-card:hover::before { transform: scale(1.6); }
.n-card .tag { align-self: flex-start; position: relative; }
.n-card b { position: relative; font-size: 16px; font-weight: 600; letter-spacing: -.2px; line-height: 1.3; }
.n-card p { position: relative; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.n-card small { position: relative; margin-top: auto; color: var(--faint); font-size: 11.5px; font-weight: 600; }
.a-list li { border-top: 1px solid var(--line); }
.a-list li:first-child { border-top: 0; }
.a-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 2px; text-align: left; border-radius: 12px; }
.a-row:hover { background: rgba(255, 255, 255, .7); }
.a-row .u-ic { width: 38px; height: 38px; }
.a-row b { display: block; font-size: 13px; font-weight: 600; } .a-row small { color: var(--muted); font-size: 11.5px; }
.a-row .i.go { margin-left: auto; color: var(--faint); width: 16px; }

/* ---------- mission + verse ---------- */
.mis-two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.mission { position: relative; overflow: hidden; color: #fff; padding: 30px; background: radial-gradient(120% 120% at 100% 0%, #6a1b2c 0%, #3a1d1e 45%, #1e130f 85%); border-radius: 26px; box-shadow: 0 30px 60px -34px rgba(60, 20, 20, .7); }
.m-glow { position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, var(--hl), transparent 70%); opacity: .5; filter: blur(10px); }
.live { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--hl); box-shadow: 0 0 0 0 var(--hl); animation: beat 2s infinite; }
@keyframes beat { 70% { box-shadow: 0 0 0 9px transparent; } }
.mission h2 { position: relative; margin-top: 14px; font-size: 28px; font-weight: 500; letter-spacing: -.6px; }
.mission .btn-ac { background: var(--hl); color: var(--hl-ink); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.mission p { position: relative; margin-top: 6px; max-width: 44ch; color: rgba(255, 255, 255, .7); }
.m-stats { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin: 24px 0; }
.m-stats div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.m-stats b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.6px; color: var(--hl); }
.m-stats small { color: rgba(255, 255, 255, .65); font-size: 11.5px; }
.verse { display: flex; flex-direction: column; }
.verse blockquote { font-size: 17px; line-height: 1.55; font-weight: 500; letter-spacing: -.2px; margin: 6px 0 12px; }
.verse cite { font-style: normal; font-weight: 700; color: var(--ac-deep); }
.v-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(31, 26, 22, .06); }
.seg button { padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }

/* ---------- quick links ---------- */
.q-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.q { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: left; transition: transform .25s, box-shadow .25s; }
.q:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(31, 26, 22, .14), 0 18px 26px -20px rgba(0, 0, 0, .5); }
.q b { display: block; font-size: 13px; font-weight: 700; } .q small { color: var(--muted); font-size: 11.5px; }
.q .i.go { margin-left: auto; color: var(--faint); }

/* ---------- footer ---------- */
.foot { margin: 0 22px 22px; padding: 34px 36px 22px; border-radius: 28px; color: #fff; background: radial-gradient(90% 140% at 100% 0%, #6a1b2c, #2b1d19 60%, #1a100d); overflow: hidden; position: relative; }
.foot::after { content: "INTRANET"; position: absolute; right: -10px; bottom: -34px; font-size: clamp(60px, 12vw, 170px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--hl); opacity: .14; pointer-events: none; }
.f-main { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.f-brand b { display: block; font-size: 16px; } .f-brand span { color: rgba(255, 255, 255, .6); }
.f-brand p { margin-top: 12px; max-width: 38ch; color: rgba(255, 255, 255, .62); line-height: 1.6; font-size: 13px; }
.foot h4 { margin-bottom: 12px; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--hl); }
.f-col li { margin-bottom: 8px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.f-col a:hover { text-decoration: underline; }
.f-row { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: rgba(255, 255, 255, .6); }
.online { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd47b; box-shadow: 0 0 0 3px rgba(95, 212, 123, .25); }

/* ---------- modals / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: 10vh 16px 16px; }
.m-back { position: absolute; inset: 0; background: rgba(43, 22, 18, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.m-card { position: relative; width: min(640px, 100%); border-radius: 26px; background: rgba(255, 255, 255, .97); box-shadow: 0 50px 90px -30px rgba(60, 25, 20, .6); overflow: hidden; animation: pop .25s ease; }
.m-in { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.m-in input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; }
.m-res { max-height: min(56vh, 460px); overflow: auto; padding: 8px; }
.m-res li button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left; }
.m-res li button:hover, .m-res li button.act { background: var(--ac-soft); }
.m-res .u-ic { width: 36px; height: 36px; }
.m-res b { display: block; font-size: 13.5px; } .m-res small { color: var(--muted); font-size: 11.5px; }
.m-res .k { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .8px; }
.m-res .none { padding: 24px; text-align: center; color: var(--muted); }
.d-card { padding: 30px; }
.d-x { position: absolute; right: 16px; top: 16px; }
.d-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; margin: 12px 36px 6px 0; }
.d-card .meta { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.d-card p { margin-top: 14px; line-height: 1.65; }
.d-card .btn-ac, .d-card .btn-ghost { margin-top: 18px; margin-right: 8px; }
.ch-card { padding: 26px; width: min(460px, 100%); }
.ch-card h3 { margin-bottom: 14px; font-size: 18px; }
.ch-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; margin-bottom: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: left; transition: transform .2s; }
.ch-opt:hover { transform: translateY(-2px); }
.ch-opt .u-ic { color: #fff; background: var(--c); }
.ch-opt b { display: block; font-size: 14px; } .ch-opt small { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 30px); padding: 12px 20px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.pv-badge { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 12px/1 var(--sans); pointer-events: none; opacity: .92; }
.pv-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--hl); }

/* ---------- entrance ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } * { animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .board { grid-template-columns: 1fr; }
  .board-r { flex-direction: row; } .board-r > * { flex: 1; min-width: 0; }
  .search-pill { width: 230px; }
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-r { min-height: 420px; }
  .ark { left: 0; right: 0; }
  .stats { max-width: none; }
  .two, .mis-two { grid-template-columns: 1fr; }
  .search-pill span, .search-pill kbd { display: none; }
  .search-pill { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 860px) {
  .shell { width: calc(100% - 24px); margin: 12px auto 84px; border-radius: 26px; -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(236, 246, 242, .92)); }
  .top { padding: 16px 16px 4px; }
  .btn-ac span { display: none; } .top-r .btn-ac { width: 44px; padding: 0; }
  .brand .bn { font-size: 16px; }
  .frame { grid-template-columns: 1fr; padding: 4px 16px 0; }
  .rail { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 12px; top: auto; height: auto; min-height: 0; max-height: none; flex-direction: row; justify-content: space-around; padding: 8px 10px; border-radius: 99px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .8); }
  .rail-top, .rail-bot { flex-direction: row; gap: 6px; }
  .rb { width: 44px; height: 44px; }
  .rail-bot .rb[href="#help"] { display: none; }
  .pop-wrap.up .pop { bottom: calc(100% + 12px); left: auto; right: 0; }
  .pv-badge { display: none; }
  .board-l, .board-r { grid-template-columns: 1fr; flex-direction: column; }
  .f-main { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; }
  .foot { margin: 0 12px 12px; padding: 26px 22px 18px; }
}
@media (max-width: 600px) {
  .panel { padding: 18px 16px; }
  .stats { gap: 10px; }
  .stat { padding: 14px 14px 12px; } .stat .n { font-size: 24px; }
  .hero-r { min-height: 0; }
  .ark { position: relative; height: 230px; top: 0; }
  .ark figcaption { left: 12px; bottom: 28px; }
  .fab { right: 14px; bottom: 90px; }
  .contact { width: min(300px, calc(100vw - 28px)); }
  .fab-tx { display: none; } .fab-btn { padding: 0; }
  .c-av { height: 110px; }
  .n-grid, .f-grid { grid-template-columns: 1fr; }
  .a-tools, .a-search { width: 100%; }
  .cal-nav { width: 100%; justify-content: space-between; } .cal-nav b { min-width: 0; }
  .cal-d { min-height: 46px; padding: 6px; font-size: 11.5px; } .cal-d .more { display: none; }
  .pipe-cols { gap: 6px; }
  .f-main { grid-template-columns: 1fr; }
  .lang span { display: none; } .round.lang { width: 40px; padding: 0; justify-content: center; }
  .top-r { gap: 6px; } .top-r .avatar { display: none; }
  .top { padding: 14px 14px 4px; gap: 8px; }
  .brand { gap: 8px; min-width: 0; } .brand img { width: 34px; height: 34px; } .brand .bn { font-size: 12.5px; line-height: 1.15; max-width: 104px; }
  .top-r .round, .top-r .btn-ac { width: 40px; height: 40px; }
  .pop-bell { width: min(320px, calc(100vw - 40px)); right: -90px; }
}
