/* Ecosystem → Digest (public/lan-digest.js) */
.dg { display:flex; flex-direction:column; gap:16px; }
.dg .muted { color:var(--muted); }
.dg svg { width:15px; height:15px; flex:none; }
.dg-st { display:inline-flex; align-items:center; font-style:normal; font-size:11.5px; font-weight:600; padding:3px 9px; border-radius:99px; background:var(--soft); color:var(--ink-2); border:1px solid var(--line); white-space:nowrap; }
.dg-st.ok { background:var(--ok-soft); color:var(--ok); border-color:transparent; }
.dg-st.warn { background:var(--warn-soft); color:var(--warn); border-color:transparent; }
.dg-st.bad { background:var(--bad-soft); color:var(--bad); border-color:transparent; }

/* Header: issue + stepper */
.dg-top { display:flex; align-items:center; gap:16px 24px; flex-wrap:wrap; background:var(--surface); border:1px solid var(--line); border-radius:var(--r, 14px); padding:14px 18px; }
.dg-id { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0; flex:1; }
.dg-id b { font-size:16px; letter-spacing:-.01em; }
.dg-id > span { color:var(--muted); font-size:13px; }
.dg-steps { display:flex; align-items:center; gap:6px; }
.dg-bar { width:22px; height:2px; background:var(--line-2); border-radius:2px; }
.dg-step { display:flex; align-items:center; gap:9px; background:none; border:1px solid transparent; border-radius:12px; padding:6px 10px 6px 6px; cursor:pointer; color:var(--ink-2); text-align:left; font:inherit; }
.dg-step:hover { background:var(--hover); }
.dg-step i { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-weight:700; font-size:12.5px; background:var(--soft); border:1px solid var(--line-2); color:var(--muted); }
.dg-step i svg { width:13px; height:13px; }
.dg-step span { display:flex; flex-direction:column; line-height:1.2; }
.dg-step b { font-size:13px; }
.dg-step small { font-size:11px; color:var(--muted); }
.dg-step.on { border-color:var(--accent); background:var(--accent-soft); color:var(--ink); }
.dg-step.on i { background:var(--accent); color:var(--accent-ink); border-color:transparent; }
.dg-step.done i { background:var(--ok); color:#fff; border-color:transparent; }
@media (max-width:860px) { .dg-step small { display:none; } .dg-bar { width:10px; } }

/* Empty: the hero */
.dg-hero { display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr); gap:24px; padding:26px 28px; border-radius:var(--r, 14px); color:#fff;
  background:radial-gradient(120% 140% at 100% 0%, #2e1fa3 0%, #100069 55%, #0a0047 100%); box-shadow:var(--shadow); position:relative; overflow:hidden; }
.dg-hero::after { content:''; position:absolute; right:-80px; bottom:-120px; width:300px; height:300px; border-radius:50%; background:rgba(255,169,4,.12); }
.dg-hero-t small { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#ffa904; }
.dg-hero-t h2 { font-size:28px; line-height:1.1; margin:10px 0 8px; letter-spacing:-.02em; }
.dg-hero-t p { color:rgba(255,255,255,.75); margin:0 0 18px; font-size:14px; }
.dg-hero .btn.primary { background:#ffa904; color:#100069; border-color:#ffa904; font-weight:700; }
.dg-hero-l { display:flex; flex-direction:column; gap:7px; position:relative; z-index:1; }
.dg-hero-l div { display:flex; gap:10px; align-items:center; font-size:13px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); border-radius:10px; padding:8px 10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dg-hero-l div span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.dg-hero-l i { width:20px; height:20px; border-radius:6px; display:grid; place-items:center; font-style:normal; font-size:11px; font-weight:800; flex:none; }
.dg-hero-l i.n { background:#ffa904; color:#100069; } .dg-hero-l i.e { background:#fff; color:#100069; }
@media (max-width:860px) { .dg-hero { grid-template-columns:1fr; padding:22px; } }

/* 1 Select */
.dg-sel { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; align-items:start; }
@media (max-width:980px) { .dg-sel { grid-template-columns:1fr; } }
.dg-col { background:var(--surface); border:1px solid var(--line); border-radius:var(--r, 14px); overflow:hidden; }
.dg-col header { display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--surface); z-index:1; }
.dg-col header h3 { margin:0; font-size:14.5px; }
.dg-col-i { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent-text); }
.dg-col.events .dg-col-i { background:var(--gold-soft); color:var(--gold-ink, var(--gold)); }
.dg-col-c { flex:1; color:var(--muted); font-size:12.5px; }
.dg-col-c b { color:var(--ink); }
.dg .btn.sm { padding:5px 10px; font-size:12px; min-height:0; height:auto; display:inline-flex; gap:5px; align-items:center; }
.dg .btn.ghost { background:none; }
.dg-list { padding:8px; display:flex; flex-direction:column; gap:6px; }
.dg-it { display:flex; gap:11px; align-items:flex-start; padding:10px; border-radius:12px; border:1px solid var(--line); cursor:pointer; transition:background .15s, border-color .15s; background:var(--surface); }
.dg-it:hover { background:var(--hover); }
.dg-it.on { border-color:var(--accent); background:var(--accent-soft); }
.dg-tick { width:20px; height:20px; border-radius:6px; border:1.5px solid var(--line-2); display:grid; place-items:center; flex:none; margin-top:2px; color:transparent; }
.dg-tick svg { width:13px; height:13px; }
.dg-it.on .dg-tick { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.dg-th { width:64px; height:44px; border-radius:8px; background:var(--soft) center/cover no-repeat; flex:none; display:grid; place-items:center; color:var(--muted); }
.dg-date { width:44px; height:46px; border-radius:9px; background:#100069; color:#fff; flex:none; display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1; }
.dg-date small { font-size:9.5px; font-weight:800; color:#ffa904; letter-spacing:.06em; }
.dg-date b { font-size:18px; margin-top:3px; }
.dg-tx { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.dg-tx > b { font-size:13.5px; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.dg-tx > small { font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dg-why { font-size:11.5px; color:var(--ink-2); display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; }
.dg-why em.ai { display:inline-flex; align-items:center; gap:4px; font-style:normal; font-weight:700; color:var(--accent-text); background:var(--accent-soft); border-radius:99px; padding:1px 8px 1px 6px; }
.dg-it.on .dg-why em.ai { background:var(--surface); }
.dg-why em.ai svg { width:11px; height:11px; }
.dg-why a { color:var(--accent-text); }
.dg-rest { display:none; flex-direction:column; gap:6px; }
.dg-col.all .dg-rest { display:flex; }
.dg-more { background:none; border:1px dashed var(--line-2); border-radius:10px; padding:9px; color:var(--muted); cursor:pointer; font:inherit; font-size:12.5px; }
.dg-more:hover { color:var(--ink); border-color:var(--ink-2); }
.dg-none { color:var(--muted); font-size:13px; padding:14px; text-align:center; }

/* Footer bar */
.dg-foot { position:sticky; bottom:0; z-index:3; display:flex; align-items:center; gap:12px; padding:12px 16px; background:color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter:blur(8px); border:1px solid var(--line); border-radius:var(--r, 14px); box-shadow:var(--shadow); }
.dg-foot > span { flex:1; font-size:13px; color:var(--ink-2); }
.dg-foot .btn { display:inline-flex; gap:6px; align-items:center; }

/* 2 Check */
.dg-chk { display:grid; grid-template-columns:330px minmax(0, 1fr); gap:16px; align-items:start; }
@media (max-width:980px) { .dg-chk { grid-template-columns:1fr; } }
.dg-form { background:var(--surface); border:1px solid var(--line); border-radius:var(--r, 14px); padding:16px; display:flex; flex-direction:column; gap:13px; position:sticky; top:12px; }
.dg-form label { display:flex; flex-direction:column; gap:5px; font-size:12.5px; font-weight:600; color:var(--ink-2); }
.dg-form input:not([type=checkbox]), .dg-form textarea, .dg-wk select, .dg-wk input[type=time], .dg-when input { font:inherit; font-size:13.5px; font-weight:400; color:var(--ink); background:var(--soft); border:1px solid var(--line); border-radius:10px; padding:8px 10px; }
.dg-form textarea { resize:vertical; line-height:1.45; }
.dg-form label.dg-tg { flex-direction:row; align-items:center; }
.dg-form label small { font-weight:400; color:var(--muted); font-size:11.5px; line-height:1.4; }
.dg-built { display:flex; gap:8px; align-items:center; font-size:12.5px; color:var(--ink-2); background:var(--soft); border-radius:10px; padding:9px 11px; }
.dg-dl { display:flex; gap:8px; flex-wrap:wrap; }
.dg-fine { display:flex; gap:7px; align-items:flex-start; font-size:11.8px; color:var(--muted); line-height:1.45; margin:0; }
.dg-fine svg { margin-top:2px; color:var(--ok); }
.dg-fine a { color:var(--accent-text); }
.dg-prev { background:var(--surface); border:1px solid var(--line); border-radius:var(--r, 14px); overflow:hidden; display:flex; flex-direction:column; min-height:70vh; }
.dg-tabs { display:flex; gap:4px; padding:8px; border-bottom:1px solid var(--line); overflow-x:auto; }
.dg-tabs button { background:none; border:0; font:inherit; font-size:13px; font-weight:600; color:var(--muted); padding:7px 12px; border-radius:9px; cursor:pointer; white-space:nowrap; }
.dg-tabs button.on { background:var(--accent-soft); color:var(--accent-text); }
.dg-frame { flex:1; display:flex; background:#525659; }
.dg-frame iframe { flex:1; border:0; width:100%; min-height:72vh; background:#525659; }
.dg-wait { flex:1; display:grid; place-items:center; min-height:50vh; }
.dg-spin { width:16px; height:16px; border-radius:50%; border:2px solid var(--line-2); border-top-color:var(--accent); animation:dgspin .8s linear infinite; flex:none; }
.dg-wait .dg-spin { width:28px; height:28px; border-color:rgba(255,255,255,.25); border-top-color:#ffa904; }
@keyframes dgspin { to { transform:rotate(360deg); } }

/* The WhatsApp look */
.dg-phone { flex:1; display:flex; flex-direction:column; background:#efeae2; min-height:60vh; }
.dg-ph-h { display:flex; gap:10px; align-items:center; background:#075e54; color:#fff; padding:10px 14px; }
.dg-ph-h span:last-child { display:flex; flex-direction:column; line-height:1.25; }
.dg-ph-h small { opacity:.8; font-size:11.5px; }
.dg-av { width:34px; height:34px; border-radius:50%; background:#ffa904; color:#100069; display:grid; place-items:center; font-weight:800; }
.dg-ph-b { padding:18px 16px; display:flex; flex-direction:column; gap:10px; max-width:460px; }
.dg-bub { background:#fff; color:#111b21; border-radius:4px 12px 12px 12px; padding:5px 5px 18px; box-shadow:0 1px 1px rgba(0,0,0,.12); position:relative; font-size:13.5px; line-height:1.45; }
.dg-bub p { margin:6px 6px 0; }
.dg-bub time { position:absolute; right:8px; bottom:3px; font-size:10.5px; color:#667781; }
.dg-doc { display:flex; gap:10px; align-items:center; background:#f5f6f6; border-radius:8px; padding:10px; }
.dg-doc span:last-child { display:flex; flex-direction:column; min-width:0; }
.dg-doc b { font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dg-doc small { font-size:11.5px; color:#667781; }
.dg-doc-i { width:30px; height:36px; border-radius:4px; background:#e53935; color:#fff; font-size:9px; font-weight:800; display:grid; place-items:center; flex:none; }

/* 3 Approve */
.dg-apr { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; align-items:start; }
.dg-apr .dg-week { grid-column:1 / -1; }
@media (max-width:980px) { .dg-apr { grid-template-columns:1fr; } }
.dg-card .panel-h { display:flex; align-items:center; gap:8px; }
.dg-card .panel-h .n, .dg-past .n { font-size:12px; color:var(--muted); font-weight:600; }
.dg-card > :not(.panel-h) { margin:0 16px; }
.dg-card > :last-child { margin-bottom:16px; }
.dg-groups { display:flex; flex-direction:column; gap:7px; margin-top:12px !important; margin-bottom:12px !important; }
.dg-g, .dg-tg { display:flex; gap:11px; align-items:center; cursor:pointer; padding:10px 12px; border-radius:12px; border:1px solid var(--line); }
.dg-g.on { border-color:var(--ok); background:var(--ok-soft); }
.dg-g.off { opacity:.6; }
.dg-g input, .dg-tg input { display:none; }
.dg-g > i, .dg-tg > i { width:36px; height:21px; flex:none; border-radius:99px; background:var(--line-2); position:relative; transition:background .2s; }
.dg-g > i::after, .dg-tg > i::after { content:''; position:absolute; top:2.5px; left:2.5px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.25); transition:transform .2s; }
.dg-g input:checked + i, .dg-tg input:checked + i { background:var(--ok); }
.dg-g input:checked + i::after, .dg-tg input:checked + i::after { transform:translateX(15px); }
.dg-g input:disabled + i, .dg-tg input:disabled + i { opacity:.55; }
.dg-g span, .dg-tg span { display:flex; flex-direction:column; line-height:1.3; min-width:0; }
.dg-g b, .dg-tg b { font-size:13.5px; font-weight:600; color:var(--ink); }
.dg-g small, .dg-tg small { font-size:11.8px; color:var(--muted); font-weight:400; }
.dg-tg.auto.on { border-color:var(--warn); background:var(--warn-soft); }
.dg-when { display:flex; flex-direction:column; gap:7px; margin-top:12px !important; }
.dg-r { display:flex; gap:10px; align-items:center; padding:10px 12px; border-radius:12px; border:1px solid var(--line); cursor:pointer; }
.dg-r.on { border-color:var(--accent); background:var(--accent-soft); }
.dg-r input { accent-color:var(--accent); }
.dg-r span { display:flex; flex-direction:column; line-height:1.3; }
.dg-r b { font-size:13.5px; font-weight:600; }
.dg-r small { font-size:11.8px; color:var(--muted); }
.dg-go { margin-top:14px !important; }
.dg .btn.big { width:100%; justify-content:center; padding:12px 16px; font-size:14.5px; font-weight:700; display:flex; gap:8px; align-items:center; }
.dg-wait-t { display:flex; gap:8px; align-items:center; justify-content:center; padding:12px; border-radius:12px; background:var(--warn-soft); color:var(--warn); font-weight:600; }
.dg-wk { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px 16px; margin-top:12px !important; }
@media (max-width:700px) { .dg-wk { grid-template-columns:1fr; } }
.dg-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.dg-row label { display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--ink-2); }
.dg-tbl { width:100%; border-collapse:collapse; font-size:13px; margin-top:10px; }
.dg-tbl th { text-align:left; font-size:11.5px; color:var(--muted); font-weight:600; padding:6px 8px; border-bottom:1px solid var(--line); }
.dg-tbl td { padding:8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.dg-tbl td.r { text-align:right; white-space:nowrap; }
.dg-past { background:var(--surface); border:1px solid var(--line); border-radius:var(--r, 14px); padding:12px 16px; }
.dg-past summary { cursor:pointer; font-weight:700; font-size:13.5px; }
@media (max-width:640px) {
  .dg-top { padding:12px; }
  .dg-foot { flex-wrap:wrap; }
  .dg-th { width:52px; height:40px; }
}

.dg-pic { flex:1; overflow:auto; display:flex; justify-content:center; padding:20px; background:#525659; }
.dg-pic img { width:min(100%, 620px); height:auto; align-self:flex-start; box-shadow:0 8px 30px rgba(0,0,0,.35); }
.dg-bimg { display:block; width:100%; border-radius:8px; }
/* Step 3 Confirm: where the issue is once it has been handed to Community */
.dg-done { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent); }
.dg-done > svg { width: 22px; height: 22px; flex: none; color: var(--ok); margin-top: 1px; }
.dg-done b { display: block; font-size: 14.5px; }
.dg-done span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.dg-go small { display: block; margin-top: 8px; font-size: 12px; }

/* the week it is for (header: < week >, Move to this week) */
.dg-wp { display:inline-flex; align-items:center; gap:2px; color:var(--muted); font-size:13px; }
.dg-wp-b { background:none; border:1px solid var(--line); color:inherit; border-radius:6px; width:24px; height:24px; line-height:1; cursor:pointer; font-size:15px; }
.dg-wp-b:hover { color:var(--ink); border-color:currentColor; }
.dg-wp-l { position:relative; padding:0 6px; cursor:pointer; }
.dg-wp-l:hover { color:var(--ink); text-decoration:underline; }
.dg-wp-l input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; }
.dg-wp-l input::-webkit-calendar-picker-indicator { position:absolute; inset:0; width:100%; height:100%; cursor:pointer; }
.dg-wp-now { background:none; border:1px solid var(--line); color:var(--muted); border-radius:999px; padding:3px 10px; font-size:12px; cursor:pointer; }
.dg-wp-now:hover { color:var(--ink); }
.dg-wp-now.warn { color:#f5b544; border-color:rgba(245,181,68,.45); background:rgba(245,181,68,.08); }
