body.admin { background: #f4f3ee; }

/* top navigation: five tabs, the active one underlined in gold */
.topbar nav { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { padding: 8px 14px; border-radius: 8px; border-bottom: 0; font-weight: 500; }
.topbar nav a:hover { background: #f4f3ee; }
.topbar nav a.active { background: #f5efdc; color: var(--gold-dark); font-weight: 700; box-shadow: inset 0 -3px 0 var(--gold); }
.topbar .wordmark { color: var(--gold-dark); }

/* home */
.home { max-width: 980px; margin: 0 auto; }
.home-brand { text-align: center; font-size: 2.4rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin: 14px 0 4px; }
.home-hello { text-align: center; margin-bottom: 18px; } .home-hello h2 { font-size: 1.7rem; margin: 0; } .home-hello p { margin: 4px 0 0; }
.tipbox { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #fff8e6, #f3ecff); border: 1px solid #e6dcc0; border-radius: 14px; padding: 14px 16px; margin: 0 auto 22px; max-width: 760px; }
.tip-body { flex: 1; text-align: center; min-height: 66px; display: flex; flex-direction: column; justify-content: center; }
.tip-tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.tip-body p { margin: 6px 0 0; font-size: 1.05rem; }
.tip-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #d9cfae; background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--gold-dark); flex: none; }
.tip-nav:hover { background: var(--gold); color: #fff; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.home-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.home-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.09); }
.hc-ico { font-size: 1.9rem; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); flex: none; }
.hc-body { display: flex; flex-direction: column; flex: 1; } .hc-body span { color: var(--muted); font-size: .88rem; } .hc-body strong { font-size: 1.08rem; }
.hc-go { font-size: 1.8rem; color: var(--c); }

/* reporting */
.range { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.range label { font-size: .85rem; color: var(--muted); } .range input[type=date] { padding: 6px 8px; border: 1px solid #c9c5b8; border-radius: 6px; margin-left: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { padding: 6px 14px; border-radius: 16px; border: 1px solid #d9d4c4; text-decoration: none; color: var(--ink); background: #fff; font-size: .88rem; }
.chip.on { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.evpick { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink) !important; } .evpick select { padding: 7px 10px; border: 1px solid #c9c5b8; border-radius: 8px; background: #fff; max-width: 340px; font-weight: 400; }
.chips.dim { opacity: .45; pointer-events: none; } .range input:disabled, .range button:disabled { opacity: .5; cursor: not-allowed; }
#export { white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 14px 0; }
.tile { background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); border-top: 5px solid var(--c); }
.t-l { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; } .t-v { font-size: 2.1rem; font-weight: 800; color: var(--c); line-height: 1.15; margin: 4px 0 2px; } .t-h { font-size: .8rem; color: var(--muted); }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.rep-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; } .rep-card.wide { grid-column: 1 / -1; } .rep-card h3 { font-size: .98rem; margin: 0 0 10px; }
.donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; } .donut svg { width: 150px; height: 150px; flex: none; }
.d-num { font-size: 26px; font-weight: 800; fill: var(--ink); } .d-cap { font-size: 10px; fill: var(--muted); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .86rem; } .legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; }
.legend.inline { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.bars { width: 100%; height: auto; } .ax { font-size: 9px; fill: var(--muted); } .grid-l { stroke: #eceae2; stroke-width: 1; }
.hbars { display: grid; gap: 7px; } .hb { display: grid; grid-template-columns: 38% 1fr 40px; align-items: center; gap: 8px; font-size: .86rem; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hb-t { background: #f1efe7; border-radius: 6px; height: 14px; overflow: hidden; } .hb-f { display: block; height: 100%; border-radius: 6px; } .hb-v { text-align: right; }
.funnel { display: grid; gap: 6px; justify-items: start; } .fn { display: flex; align-items: baseline; gap: 10px; color: #fff; padding: 10px 14px; border-radius: 8px; min-width: 190px; } .fn b { font-size: 1.3rem; } .fn small { opacity: .9; margin-left: auto; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 12px; color: #fff; background: var(--c); font-size: .8rem; font-weight: 700; }

/* profile */
.prof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.prof-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.avatar-sm, .avatar-lg, .avatar-xl { border-radius: 50%; background: var(--gold); color: #fff; display: inline-grid; place-items: center; font-weight: 700; flex: none; object-fit: cover; object-position: center 20%; }
.avatar-sm { width: 26px; height: 26px; font-size: .75rem; } .avatar-lg { width: 60px; height: 60px; font-size: 1.3rem; } .avatar-xl { width: 92px; height: 92px; font-size: 2rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold); }
.topbar nav a[data-nav="profile"] { display: inline-flex; align-items: center; gap: 8px; padding-top: 4px; padding-bottom: 4px; }
.photo-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.home-avatar { display: inline-block; margin-bottom: 10px; text-decoration: none; } .home-avatar .avatar-xl { width: 112px; height: 112px; font-size: 2.4rem; }

/* photo editor */
.photo-ed { min-width: min(92vw, 360px); } .pe-stage { position: relative; width: 280px; height: 280px; margin: 8px auto; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 20px 20px; border-radius: 8px; overflow: hidden; touch-action: none; }
.pe-stage canvas { display: block; cursor: grab; } .pe-stage canvas:active { cursor: grabbing; }
.pe-ring { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 200px rgba(255,255,255,.72), inset 0 0 0 2px var(--gold); }
.pe-hint { text-align: center; margin: 4px 0; font-size: .85rem; } .pe-zoom { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: .85rem; color: var(--muted); } .pe-zoom input { width: 200px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar .wordmark { font-weight: 700; letter-spacing: .06em; color: var(--gold-dark); }
.topbar .wordmark span { font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.topbar nav { display: flex; gap: 16px; align-items: center; }
.topbar nav a { text-decoration: none; color: var(--ink); padding: 4px 2px; border-bottom: 2px solid transparent; }
.topbar nav a.active { border-color: var(--gold); font-weight: 600; }
.shell { max-width: 1200px; margin: 0 auto; padding: 18px; }
.login { max-width: 360px; margin: 60px auto; }
.field { display: block; margin: 10px 0; font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 3px; padding: 8px 10px; border: 1px solid #c9c5b8; border-radius: 6px; background: #fff; color: var(--ink); }
.grid { display: grid; gap: 12px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 800px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.kpi .label { font-size: .78rem; color: var(--muted); } .kpi .value { font-size: 1.9rem; font-weight: 700; }
.kpi.warn .value { color: var(--warn); } .kpi.bad .value { color: var(--bad); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 12px 0; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a.active { color: var(--ink); border-color: var(--gold); font-weight: 600; }
.tabs .count { background: var(--bad); color: #fff; border-radius: 9px; padding: 0 6px; font-size: .72rem; margin-left: 4px; }
table.t { width: 100%; border-collapse: collapse; background: #fff; font-size: .88rem; }
table.t th { text-align: left; background: #fbfaf6; color: var(--muted); font-weight: 600; font-size: .78rem; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 8px 10px; border-bottom: 1px solid #f0eee6; vertical-align: top; }
table.t tr:hover td { background: #fcfbf7; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.toolbar input, .toolbar select { padding: 7px 10px; border: 1px solid #c9c5b8; border-radius: 6px; }
.alert { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 12px; border-left: 4px solid var(--blue); background: #fff; margin: 6px 0; border-radius: 4px; font-size: .88rem; }
.alert.warn { border-color: var(--warn); } .alert.critical { border-color: var(--bad); background: #fff6f6; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 18px; border-radius: 6px; z-index: 20; max-width: 90vw; }
.toast.bad { background: var(--bad); }
.scan { background: #000; border-radius: 8px; width: 100%; max-width: 420px; aspect-ratio: 4/3; object-fit: cover; }
.result { font-size: 1.05rem; } .result .name { font-size: 1.4rem; font-weight: 700; }
dialog { border: 0; border-radius: 10px; padding: 20px; max-width: 560px; width: 92vw; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(0,0,0,.4); }
.choice-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0; cursor: pointer; background: #fff; }
.choice-card:has(input:checked) { border-color: var(--gold); background: #fbf8ef; } .choice-card input { margin-top: 4px; width: auto; }
.bulkbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; } .bulkbar .muted { margin-left: auto; }
table.t td.sel, table.t th.sel { width: 34px; padding-right: 0; } table.t td.sel input, table.t th.sel input { width: 16px; height: 16px; cursor: pointer; }
.timeline { list-style: none; padding: 0; margin: 8px 0; } .timeline li { padding: 4px 0 4px 14px; border-left: 2px solid var(--gold); font-size: .86rem; }
.stat-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #eee; } .stat-bar i { display: block; background: var(--gold); }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; }

/* meetings */
.meet-layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
@media (max-width: 800px) { .meet-layout { grid-template-columns: 1fr; } }
.meet-day { margin: 18px 0 8px; font-size: 1rem; } .meet-day span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.meet-card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
.meet-main { flex: 1; min-width: 0; } .meet-name { font-weight: 600; }
.meet-sub { color: var(--muted); font-size: .85rem; } .meet-sub strong.you, .meet-sub strong { color: var(--blue); font-weight: 600; }
.meet-kpi { background: #fff; } .meet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.seg { display: inline-flex; border: 1px solid #c9c5b8; border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: #fff; padding: 6px 14px; cursor: pointer; color: var(--muted); } .seg button.on { background: #eceae2; color: var(--ink); font-weight: 600; }
.outlook-ok { font-size: .82rem; margin: -4px 0 6px; }
.mini-nav { border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--muted); padding: 0 10px; }
.dots { position: relative; } .dots summary { list-style: none; cursor: pointer; padding: 0 8px; color: var(--muted); font-weight: 700; letter-spacing: 1px; }
.dots summary::-webkit-details-marker { display: none; }
.dots-menu { position: absolute; right: 0; top: 24px; z-index: 6; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); min-width: 170px; padding: 4px; }
.dots-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; cursor: pointer; border-radius: 6px; } .dots-menu button:hover { background: #f4f3ee; }
.mini-cal { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-top: 12px; }
.mini-title { font-weight: 600; text-align: center; margin-bottom: 6px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .78rem; }
.mini-grid b { color: var(--muted); font-weight: 600; }
/* each day is a button; a day with meetings is shaded and carries a small count badge */
.mini-grid .day { position: relative; border: 0; background: none; font: inherit; font-size: .78rem; color: var(--muted); padding: 5px 0; border-radius: 50%; cursor: pointer; line-height: 1.2; }
.mini-grid .day:hover { background: #f4f3ee; color: var(--ink); } .mini-grid .day:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.mini-grid .day.has { color: var(--ink); font-weight: 700; background: #f0e9d3; } .mini-grid .day.has:hover { background: #e6dcbc; }
.mini-grid .day.today { outline: 1px solid var(--gold); }
.mini-grid .day.sel { background: var(--gold); color: #fff; outline: 0; }
.kpi.meet-kpi .value { font-size: 2.6rem; line-height: 1.1; } .kpi.meet-kpi .kicker { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.mini-foot { margin-top: 8px; font-size: .75rem; color: var(--muted); text-align: center; }
.linklike { border: 0; background: none; padding: 0; color: var(--blue); cursor: pointer; text-decoration: underline; font: inherit; }
.daybar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 8px; padding: 10px 14px; margin: 8px 0 4px; }
.daypick { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; } .daypick label { color: var(--ink); }
.daypick input { display: inline; width: auto; margin: 0; }

