/* Presence Pro sample dashboard (an illustration, with invented data). It is deliberately a branded app window, not a copy of the live screens. */

.dm-hero { padding: 132px 0 40px; background: linear-gradient(180deg, #f6ecd5 0%, #faf5e8 70%, #fbf8f1 100%); text-align: center; position: relative; overflow: hidden; }
.dm-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 360px at 50% 0, rgba(201,161,90,.28), transparent 70%); }
.dm-hero .wrap { position: relative; max-width: 820px; }
.dm-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.06; color: var(--ink); margin: 0 0 14px; } .dm-hero h1 em { color: var(--gold-d); font-style: italic; }
.dm-hero p { color: #43506a; font-size: 1.1rem; margin: 0 auto 8px; max-width: 38em; }
.dm-sec { padding: 12px 0 70px; background: #fbf8f1; }

/* the window */
.dm-app { background: #fff; border: 1px solid #d9cfb8; border-radius: 22px; overflow: hidden; box-shadow: 0 60px 100px -50px rgba(20,33,58,.55), 0 0 0 8px rgba(201,161,90,.12); color: var(--text); }
.dm-bar { display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: linear-gradient(180deg, #14213a, #0f192e); color: #fff; flex-wrap: wrap; }
.dm-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.05rem/1 var(--serif); letter-spacing: .01em; } .dm-brand b { color: #e0bd78; font-weight: 600; } .dm-brand svg { width: 28px; height: 28px; flex: none; }
.dm-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.1); margin-left: 6px; }
.dm-switch button { border: 0; background: transparent; color: rgba(255,255,255,.78); font: 600 .84rem/1 var(--sans); padding: 8px 14px; border-radius: 8px; cursor: pointer; transition: background .25s, color .25s; }
.dm-switch button[aria-selected=true] { background: linear-gradient(135deg, #e0bd78, #c99a43); color: #1a1405; }
.dm-tag { margin-left: auto; font: 700 .64rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #f0d9a5; border: 1px solid rgba(240,217,165,.5); padding: 7px 11px; border-radius: 99px; }

.dm-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 640px; }
.dm-side { background: #14213a; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.dm-side button { display: flex; justify-content: space-between; align-items: center; text-align: left; border: 0; background: transparent; color: rgba(255,255,255,.72); font: 500 .94rem/1 var(--sans); padding: 12px 14px; border-radius: 10px; cursor: pointer; border-left: 3px solid transparent; transition: background .2s, color .2s; }
.dm-side button:hover { background: rgba(255,255,255,.07); color: #fff; }
.dm-side button[aria-current=page] { background: rgba(224,189,120,.16); color: #fff; border-left-color: #e0bd78; }
.dm-side u { text-decoration: none; font-size: .7rem; font-weight: 700; background: #e0bd78; color: #1a1405; border-radius: 99px; padding: 3px 7px; }
.dm-main { padding: 24px 26px 28px; background: #faf7f0; min-width: 0; }

.dm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dm-head h3 { font-size: 1.5rem; margin: 0 0 2px; color: var(--ink); } .dm-head p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 36em; }
.dm-months { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.dm-months button { border: 0; background: transparent; padding: 7px 11px; border-radius: 7px; font: 600 .8rem/1 var(--sans); color: var(--muted); cursor: pointer; }
.dm-months button[aria-pressed=true] { background: var(--ink); color: #fff; }

.dm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.dm-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dm-tile small { font: 700 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .dm-tile span { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.dm-big { font: 600 2rem/1 var(--serif); color: var(--ink); } .dm-big.up { color: var(--signal-d); } .dm-tile.warn .dm-big { color: #b4533f; }
.dm-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#b98a35 calc(var(--p) * 1%), #ece5d3 0); position: relative; }
.dm-ring::before { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 50%; } .dm-ring b { position: relative; font: 700 .92rem/1 var(--sans); color: var(--ink); }

.dm-two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; margin-bottom: 14px; }
.dm-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; } .dm-card h4 { font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.dm-chart { width: 100%; height: auto; display: block; } .dm-axis { font: 600 11px var(--sans); fill: #8c8470; } .dm-axis.sel { fill: #14213a; font-weight: 700; }
.dm-note { color: var(--muted); font-size: .8rem; margin: 8px 0 0; }
.dm-qb { display: grid; grid-template-columns: minmax(0, 1.5fr) 1fr 56px; gap: 10px; align-items: center; font-size: .86rem; padding: 5px 0; } .dm-qb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dm-qb em { font-style: normal; font-weight: 700; text-align: right; color: var(--ink); }
.dm-tr { height: 9px; border-radius: 99px; background: #ece5d3; overflow: hidden; } .dm-tr i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #b98a35, #e0bd78); transition: width .9s cubic-bezier(.2,.7,.2,1); } .dm-tr i.rv { width: 0 !important; }
.dm-next { background: linear-gradient(160deg, #14213a, #1d3053); border-color: transparent; color: #fff; } .dm-next h4 { color: #e0bd78; }
.dm-na b { display: block; font: 600 1.15rem/1.3 var(--serif); margin-bottom: 6px; } .dm-na span { color: rgba(255,255,255,.78); font-size: .9rem; display: block; margin-bottom: 14px; }
.dm-link, .dm-btn { border: 0; cursor: pointer; font: 700 .86rem/1 var(--sans); border-radius: 8px; padding: 10px 14px; background: linear-gradient(135deg, #e0bd78, #c99a43); color: #1a1405; }
.dm-btn { background: var(--ink); color: #fff; }

.dm-table { width: 100%; border-collapse: collapse; font-size: .9rem; } .dm-table th { text-align: left; font: 700 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fcfaf5; white-space: nowrap; }
.dm-table td { padding: 12px 14px; border-bottom: 1px solid #f0ebde; vertical-align: middle; } .dm-table td.n { font-variant-numeric: tabular-nums; white-space: nowrap; } .dm-table tr:last-child td { border-bottom: 0; }
.dm-table .up { color: var(--signal-d); font-weight: 700; } .dm-table .down { color: #b4533f; font-weight: 700; } .dm-table td small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.dm-tablecard { padding: 0; overflow: hidden; } .dm-scroll { overflow-x: auto; }
.dm-chip { display: inline-block; font-size: .76rem; background: #f3efe3; border: 1px solid var(--line); border-radius: 99px; padding: 4px 9px; margin: 2px 4px 2px 0; white-space: nowrap; }
.dm-hrow { cursor: pointer; transition: background .2s; } .dm-hrow:hover, .dm-hrow:focus { background: #fbf4e2; outline: none; } .dm-hrow.you td:first-child b { color: var(--gold-d); }
.dm-sp { color: #b98a35; width: 110px; } .dm-spark { width: 92px; height: 26px; display: block; }
.dm-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; }

.dm-list { display: grid; gap: 10px; }
.dm-src, .dm-act { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.dm-src b, .dm-act b { display: block; font: 600 1rem/1.3 var(--serif); color: var(--ink); } .dm-src small, .dm-act small { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; line-height: 1.4; }
.dm-type { font: 700 .66rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: #f3efe3; color: #6b5a30; border-radius: 8px; padding: 7px 9px; white-space: nowrap; }
.dm-pill { font: 700 .72rem/1 var(--sans); border-radius: 99px; padding: 6px 10px; white-space: nowrap; }
.dm-pill.ok { background: #e1f1e8; color: #1f6a47; } .dm-pill.lk { background: #f8ecd0; color: #7a5410; } .dm-pill.ck { background: #e8eaf2; color: #3b4170; } .dm-pill.hi { background: #f7dfd8; color: #9a3a28; }
.dm-check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #c9bd9b; background: #fff; cursor: pointer; position: relative; transition: background .2s, border-color .2s; }
.dm-check[aria-checked=true] { background: #b98a35; border-color: #b98a35; } .dm-check[aria-checked=true]::after { content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid #1a1405; border-width: 0 2.6px 2.6px 0; transform: rotate(45deg); }
.dm-act.done { background: #f6f3ea; } .dm-act.done b { text-decoration: line-through; text-decoration-color: rgba(20,33,58,.4); color: var(--muted); }
.dm-prog { position: relative; min-width: 190px; height: 34px; background: #ece5d3; border-radius: 99px; overflow: hidden; } .dm-prog i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #d3ab63, #e0bd78); transition: width .5s; } .dm-prog span { position: relative; display: block; text-align: center; line-height: 34px; font: 700 .84rem/34px var(--sans); color: var(--ink); }
.dm-msg { margin: 14px 0 0; padding: 12px 14px; background: #fdf0d2; border: 1px solid #ecd9a4; border-radius: 10px; color: #6b470a; font-size: .9rem; }
.dm-fine { text-align: center; max-width: 46em; margin: 18px auto 0; color: var(--muted); font-size: .84rem; }

.dm-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 56px 0 0; }
.dm-points div { border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; } .dm-points b { display: block; font: 600 1.1rem/1.3 var(--serif); color: var(--ink); margin-bottom: 4px; } .dm-points span { color: var(--muted); font-size: .96rem; }

@media (max-width: 900px) {
  .dm-body { grid-template-columns: 1fr; min-height: 0; }
  .dm-side { flex-direction: row; overflow-x: auto; padding: 10px; gap: 6px; } .dm-side button { flex: none; border-left: 0; border-bottom: 3px solid transparent; border-radius: 8px; } .dm-side button[aria-current=page] { border-bottom-color: #e0bd78; }
  .dm-tiles { grid-template-columns: 1fr 1fr; } .dm-two { grid-template-columns: 1fr; } .dm-main { padding: 18px 14px 22px; } .dm-points { grid-template-columns: 1fr; }
  .dm-tag { margin-left: 0; } .dm-hero { padding: 104px 0 28px; }
}
@media (max-width: 560px) {
  .dm-src, .dm-act { grid-template-columns: auto 1fr; } .dm-src .dm-pill, .dm-act .dm-pill, .dm-src .dm-btn { grid-column: 2; justify-self: start; }
  .dm-qb { grid-template-columns: 1fr 52px; } .dm-qb .dm-tr { grid-column: 1 / -1; grid-row: 2; } .dm-qb span { white-space: normal; }
  .dm-head h3 { font-size: 1.3rem; } .dm-bar { gap: 10px; } .dm-switch { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .dm-tr i, .dm-prog i { transition: none; } }
.dm-table td .dm-tr { min-width: 90px; }
