.standalone-demo { padding-block: 18px 34px; }
.tablet-display {
 --tablet-offset: clamp(14px, 2.5vw, 32px);
 position: relative;
 isolation: isolate;
 min-width: 0;
 padding-inline-start: var(--tablet-offset);
}
.tablet-display::before, .tablet-display::after {
 content: "";
 position: absolute;
 z-index: -1;
 pointer-events: none;
}
.tablet-display::before {
 inset: 2% 4% 1% 0;
 border: 1px solid #c5cfcb;
 border-radius: clamp(20px, 3vw, 34px);
 background: linear-gradient(130deg, #f4f6f5, #d2d8d5 55%, #a6b0a9);
 box-shadow: 0 12px 24px #182b2352, inset 2px 2px 3px #fff;
}
.tablet-display::after {
 top: calc(2% + 13px);
 left: calc(var(--tablet-offset) * .33);
 width: clamp(6px, .85vw, 12px);
 aspect-ratio: 1;
 border: 1px solid #6b7c76;
 border-radius: 50%;
 background: radial-gradient(circle at 40% 35%, #627774, #182120 52%, #0d1514);
}
.demo-panel, dialog {
 background: white;
 border: 1px solid #d8e3df;
 border-radius: 14px;
 padding: clamp(15px, 3vw, 28px);
 color: var(--ink);
}
.demo-tablet {
 position: relative;
 max-width: 66rem;
 margin-inline: auto;
 padding: clamp(10px, 1.3vw, 16px) clamp(8px, 1.2vw, 15px);
 border: 1px solid #485250;
 border-radius: clamp(20px, 3vw, 32px);
 background: linear-gradient(155deg, #333b39, #111716 38%, #1f2826);
 box-shadow: 0 18px 36px #10251e43, inset 0 0 0 2px #101716;
}
.demo-tablet::before, .demo-tablet::after {
 content: "";
 position: absolute;
 left: 50%;
 transform: translateX(-50%);
 pointer-events: none;
}
.demo-tablet::before {
 top: clamp(3px, .5vw, 6px);
 width: clamp(4px, .45vw, 6px);
 aspect-ratio: 1;
 border: 1px solid #657773;
 border-radius: 50%;
 background: #142121;
}
.demo-tablet::after {
 bottom: clamp(3px, .45vw, 5px);
 width: clamp(40px, 12%, 92px);
 height: 3px;
 border-radius: 4px;
 background: #7c8b87;
}
.demo-tablet > .demo-clock-panel {
 display: grid;
 align-content: start;
 height: clamp(540px, 45vw, 700px);
 min-height: 0;
 min-width: 0;
 aspect-ratio: auto;
 overflow-y: auto;
 overflow-x: hidden;
 overscroll-behavior: contain;
 scrollbar-gutter: stable;
 border: 0;
 border-radius: clamp(12px, 1.65vw, 19px);
 background: linear-gradient(145deg, #fbfdfb, #eef5f0);
 box-shadow: none;
 padding: clamp(14px, 2.1vw, 28px);
}
.demo-clock-panel {
 --demo-controls-width: 45rem;
 text-align: center;
 box-shadow: 0 6px 22px #1733330b;
}
.demo-clock-heading :is(h1, h2) { font-size: clamp(1.4rem, 2.7vw, 2.35rem); }
.demo-clock-heading p { margin: 8px 0; }
.demo-clock-heading label {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 margin-block: 0 16px;
}
.demo-clock-panel > * { min-width: 0; max-width: 100%; }
.demo-clock-heading select { min-width: 0; max-width: 100%; }
.demo-state :is(h2, h3), dialog h2 { font-size: 1.26rem; }
.demo-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.clock-demo label, dialog label { font-size: .87rem; font-weight: 700; }
.clock-demo select, dialog input {
 min-height: 36px;
 padding: 6px 9px;
 background: #fff;
 border: 1px solid #a9c1b4;
 border-radius: 8px;
 font: inherit;
 color: inherit;
}
.demo-actions {
 display: grid;
 grid-template-columns: repeat(4, minmax(0, 1fr));
 gap: clamp(7px, 1.1vw, 14px);
 width: min(100%, var(--demo-controls-width));
 margin: 0 auto 14px;
}
.demo-tile {
 display: grid;
 align-content: center;
 justify-items: center;
 gap: 8px;
 min-height: clamp(76px, 8vw, 110px);
 min-width: 0;
 padding: 12px 8px;
 border: 1px solid #d0ddd6;
 border-radius: 14px;
 background: #fff;
 box-shadow: 0 2px 5px #17333310;
 color: #203e34;
 font: inherit;
 font-size: clamp(.82rem, 1.3vw, 1rem);
 font-weight: 740;
 line-height: 1.24;
 cursor: pointer;
}
.demo-tile svg { width: clamp(24px, 2.2vw, 32px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.demo-tile[data-movement="in"]:enabled { background: #207950; border-color: #207950; color: #fff; }
.demo-tile[data-movement="meal"]:enabled { background: #f1f7f3; }
.demo-tile[data-movement="visit"]:enabled { background: #2362a0; border-color: #2362a0; color: #fff; }
.demo-tile:enabled:hover { box-shadow: 0 3px 10px #153e3730; }
.demo-tile:disabled { color: #697972; background: #fafcfb; border-color: #e2eae6; box-shadow: none; cursor: default; }
.demo-state {
 width: min(100%, var(--demo-controls-width));
 margin: 0 auto;
 border: 1px solid #d8e3df;
 border-radius: 14px;
 padding: clamp(11px, 1.3vw, 17px);
 text-align: left;
}
.demo-state p { margin: 9px 0 0; font-size: .92rem; }
.demo-state .demo-state-label { margin: 0 0 7px; text-transform: uppercase; letter-spacing: .085em; font-size: .78rem; font-weight: 670; }
#demo-feedback { background: #eef3ef; padding: 8px 10px; border-radius: 8px; }
.demo-last { font-size: .9rem; margin: 12px 0 0; }
.demo-timeline {
 width: min(100%, var(--demo-controls-width));
 margin: 12px auto 0;
 text-align: left;
}
.demo-timeline summary { cursor: pointer; font-weight: 720; }
.demo-timeline p { margin: 4px 0; font-size: .88rem; }
#demo-reset { justify-self: center; margin-top: 12px; min-height: 36px; font-size: .84rem; padding: 5px 10px; }
.demo-data-actions { justify-content: center; gap: 8px; margin: 14px 0 0; }
.demo-data-actions .button { font-size: .85rem; min-height: 38px; padding: 7px 12px; }
#demo-data-dialog { width: min(1100px, calc(100% - 24px)); text-align: left; }
.demo-data-eyebrow { margin: 0 0 6px; color: var(--green); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; font-weight: 750; }
.demo-data-tabs { margin-block: 20px 12px; }
.demo-data-tabs [aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.demo-data-help { font-size: .85rem; color: var(--muted); }
.demo-data-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 16px; }
.demo-data-heading p { margin: 6px 0 0; font-size: .9rem; }
.demo-data-heading label { display: grid; gap: 5px; }
#demo-monitor-kind { min-height: 38px; padding: 6px 10px; border: 1px solid #a9c1b4; border-radius: 8px; background: white; font: inherit; color: var(--ink); }
.demo-data-scroll { max-width: 100%; overflow: auto; border: 1px solid #d3e0d8; border-radius: 10px; }
.demo-data-scroll table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.demo-data-scroll :is(th,td) { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #dce6df; }
.demo-data-scroll th { color: var(--ink); background: #edf4ee; font-weight: 750; white-space: nowrap; }
.demo-data-scroll td { color: var(--muted); white-space: nowrap; }
.demo-data-scroll tr:last-child td { border-bottom: 0; }
#demo-monitor-table td:nth-child(4) { min-width: 140px; max-width: 240px; white-space: normal; overflow-wrap: anywhere; }
.demo-data-scroll .button { font-size: .78rem; padding: 5px 8px; min-height: 34px; white-space: nowrap; }
.demo-data-empty { border: 1px dashed #b5cfc1; background: #f4f8f4; border-radius: 10px; padding: 22px; }
.demo-data-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 18px 0 14px; }
.demo-data-metrics > div { padding: 14px; border-radius: 10px; background: #edf4ee; }
.demo-data-metrics span { display: block; color: var(--muted); font-size: .8rem; }
.demo-data-metrics strong { display: block; margin-top: 5px; font-size: clamp(1.05rem, 2vw, 1.45rem); color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-data-downloads { margin-top: 18px; }
@media (max-width: 600px) { .demo-data-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); } }
#timeline { padding: 0; margin: 14px 0 0; list-style: none; }
#timeline:empty { margin: 0; }
#timeline li {
 --event-color: var(--ink);
 --event-bg: #edf4ee;
 position: relative;
 margin-left: 14px;
 border-left: 2px solid #cbdcd4;
 padding: 3px 0 16px 21px;
}
#timeline li:last-child { padding-bottom: 0; }
#timeline [data-kind="in"] { --event-color: #16623f; --event-bg: #daf0e3; }
#timeline [data-kind="out"] { --event-color: #9e3126; --event-bg: #fbe3df; }
#timeline :is([data-kind="meal"], [data-kind="resume"]) { --event-color: #765407; --event-bg: #fff0b9; }
#timeline [data-kind="visit"] { --event-color: #205b8d; --event-bg: #deedf9; }
.demo-event-icon {
 position: absolute;
 inset: 0 auto auto -15px;
 width: 28px;
 height: 28px;
 padding: 5px;
 border: 1px solid currentColor;
 border-radius: 50%;
 background: var(--event-bg);
 color: var(--event-color);
 fill: none;
 stroke: currentColor;
 stroke-width: 1.8;
 stroke-linecap: round;
 stroke-linejoin: round;
}
.demo-event-title { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
.demo-event-title strong { color: var(--event-color); }
.demo-event-title time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .92rem; }
#timeline li p { margin: 2px 0; overflow-wrap: anywhere; }
#timeline .actions { margin-top: 6px; gap: 7px; }
#timeline button { min-height: 36px; padding: 5px 10px; font-size: .86rem; }
@media (max-width: 640px) {
 .demo-tablet > .demo-clock-panel { height: min(680px, 78dvh); min-height: 470px; }
 .demo-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 410px) {
 .demo-clock-heading label { flex-wrap: wrap; justify-content: center; }
}
dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; box-sizing: border-box; }
dialog::backdrop { background: #173c39a6; }
dialog p { margin: 8px 0 12px; }
dialog .button { font-size: .89rem; }
#visit-field { display: block; margin-bottom: 12px; }
dialog input { display: block; width: 100%; margin-top: 5px; }
.demo-saas { --ink: #173333; --muted: #557076; --green: #08766c; font: 14px/1.5 Inter,system-ui,sans-serif; color: var(--ink); background: #f4f7f7; }
#demo-data-dialog.demo-saas { width: min(1420px,calc(100% - 24px)); padding: clamp(16px,2.4vw,28px); }
.demo-saas :is(h2,h3) { color: var(--ink); letter-spacing: -.025em; }
.demo-saas h2 { font-size: 24px; }
.demo-saas h3 { font-size: 17px; margin: 0 0 12px; }
.demo-saas p { color: var(--muted); }
.demo-saas-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #dce5e6; }
.demo-saas-top strong { font-size: 21px; }
.demo-saas-top strong span { color: var(--green); }
.demo-saas-top > button { margin-left: auto; }
.demo-saas-badge { padding: 4px 9px; border-radius: 20px; background: #e3eff8; color: #285c7a; font-size: 12px; font-weight: 700; }
.demo-saas .button { min-height: 36px; font-size: 13px; padding: 8px 12px; border: 0; }
.demo-saas .button.primary { background: #08766c; color: white; }
.demo-saas .button.secondary { background: #eaf0f1; color: #173333; }
.demo-saas .demo-data-tabs .button[aria-pressed="true"] { background: #08766c; color: #fff; }
.demo-saas .button:disabled { opacity: .5; cursor: default; }
.demo-saas :is(input,select,textarea) { min-height: 40px; min-width: 0; max-width: 100%; margin: 4px 0 0; padding: 8px 10px; border: 1px solid #b8cbd0; border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.demo-saas label { display: grid; gap: 4px; color: #294946; font-size: 12px; font-weight: 700; }
.demo-saas-heading { display: grid; grid-template-columns: minmax(200px,.85fr) minmax(0,2.15fr); align-items: end; gap: 24px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid #dce5e6; }
.demo-saas-heading h2 { margin: 0 0 6px; }
.demo-saas-heading p { margin: 0; font-size: 14px; }
.demo-saas-controls { display: flex; justify-content: flex-end; align-items: end; flex-wrap: wrap; gap: 8px; }
.demo-saas-controls label { flex: 1 1 130px; }
.demo-saas-controls button { min-height: 40px; }
.demo-saas-status { margin: 0 0 6px; font-size: 12px; }
.demo-saas-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.demo-saas-chips small { color: var(--muted); }
.demo-saas-chip { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; background: #e8edef; color: #50646a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.demo-saas-chip.success { background: #dff3e7; color: #176141; }
.demo-saas-chip.info { background: #e3eff8; color: #285c7a; }
.demo-saas-chip.warning { background: #fff0c8; color: #755000; }
.demo-saas-chip.danger { background: #ffe4df; color: #9a3b2e; }
.demo-saas-table { max-width: 100%; min-width: 0; overflow: auto; border: 1px solid #dce6e6; border-radius: 10px; background: white; }
.demo-saas-table table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; }
.demo-saas-table th { padding: 10px 11px; background: #eef4f4; color: #557075; font-size: 13px; line-height: 1.15; text-align: left; }
.demo-saas-table td { padding: 11px; border-top: 1px solid #dde7e7; vertical-align: top; }
.demo-saas-table tbody tr:hover td { background: #f8fbfb; }
.demo-saas-table .button { white-space: nowrap; }
.demo-saas-table td:first-child { min-width: 135px; }
.demo-saas-cell-stack { display: grid; justify-items: start; gap: 7px; min-width: 150px; }
.demo-saas-net { background: #fff8d8; color: #73520d; font-weight: 800; white-space: nowrap; }
.demo-report-heading { display: flex; justify-content: space-between; align-items: center; }
.demo-report-switcher { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-report-switcher button { padding: 10px 14px; border: 1px solid #d5e2e2; border-radius: 8px; color: #294946; background: white; font: inherit; font-weight: 750; cursor: pointer; }
.demo-report-switcher button.active { background: #08766c; border-color: #08766c; color: white; }
.demo-report-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; align-items: end; gap: 12px; margin-bottom: 14px; padding: 18px 20px; border: 1px solid #dce6e6; border-radius: 13px; background: white; box-shadow: 0 7px 18px #1a42420f; }
.demo-report-filters label { font-size: 14px; }
.demo-report-filters button { min-height: 40px!important; }
.demo-report-panel { min-width: 0; padding: 20px; border: 1px solid #dce6e6; border-radius: 13px; background: white; box-shadow: 0 8px 22px #1a42420e; }
.demo-report-panel-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 15px; }
.demo-report-panel-heading h3 { font-size: 21px; margin: 0 0 3px; }
.demo-report-panel-heading p { margin: 0; font-size: 14px; }
.demo-report-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.demo-report-actions .button { min-height: 38px; }
.demo-report-actions label { font-size: 13px; }
.demo-report-week-total td { background: #e8f6f2!important; color: #175a4c; font-weight: 750; border-top: 2px solid #b8ddd3; }
.demo-saas-detail { width: min(620px,calc(100% - 24px)); }
.demo-saas-detail form { display: grid; gap: 12px; }
.demo-saas-detail .demo-saas-top { justify-content: space-between; }
.demo-saas-timeline-item { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 12px; padding: 12px 0 18px; }
.demo-saas-timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 38px; bottom: -10px; width: 2px; background: #b9ced0; }
.demo-saas-marker { z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e3eff8; color: #285c7a; border: 1px solid currentColor; }
.demo-saas-timeline-item.in .demo-saas-marker { background: #dff3e7; color: #176141; }
.demo-saas-timeline-item.out .demo-saas-marker { background: #ffe4df; color: #9a3b2e; }
.demo-saas-timeline-item:is(.meal,.resume) .demo-saas-marker { background: #fff0c8; color: #755000; }
.demo-saas-marker svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-saas-event-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 7px; }
.demo-saas-timeline-item small { display: block; margin-bottom: 7px; font-style: italic; overflow-wrap: anywhere; }
.demo-saas-timeline-item .actions { gap: 6px; }
@media(max-width:900px) { .demo-saas-heading { grid-template-columns: 1fr; gap: 14px; } .demo-saas-controls { justify-content: flex-start; } .demo-report-heading { align-items: flex-start; flex-direction: column; } .demo-report-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .demo-report-filters button { grid-column: 1/-1; } }
@media(max-width:520px) { .demo-saas-controls label { flex-basis: calc(50% - 8px); } .demo-report-filters { grid-template-columns: 1fr; padding: 15px; } .demo-report-switcher,.demo-report-actions { width: 100%; } .demo-report-switcher button { flex: 1 1 100%; } .demo-report-actions > * { flex: 1 1 auto; } .demo-report-actions label { flex-basis: 100%; } .demo-report-panel { padding: 15px; } }
#photo-frame { position: relative; background: #162d2a; border-radius: 9px; margin: 0 0 10px; height: clamp(108px, 30dvh, 260px); overflow: hidden; }
#photo-frame :is(video,img) { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-face-guide { position: absolute; inset: 11% 0; width: 28%; max-width: 140px; margin: auto; border: 2px solid #9ce7b9; border-radius: 50%; pointer-events: none; }
#evidence-content img { display: block; width: 100%; max-height: 58dvh; object-fit: contain; margin-top: 12px; border-radius: 8px; }
.demo-location-data { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0; gap: 10px; }
.demo-location-data div { border-radius: 8px; background: #edf4ee; padding: 8px 10px; }
.demo-location-data dd { margin: 2px 0 0; font-weight: 700; }
@media(max-width:380px) { .demo-location-data { grid-template-columns: minmax(0, 1fr); } }
