#omnitec-demo .om-phone {
  --key: #ab342b;
  --surface: light-dark(#fff, #181c24);
  --paper: light-dark(#f6f7fa, #11151c);
  --ink: light-dark(#172231, #f2f5fa);
  --soft: light-dark(#506072, #aebbd0);
  --line: light-dark(#dce2ea, #363f4e);
  --edge: light-dark(#253044, #56667d);
  --tone: color-mix(in srgb, var(--key) 10%, var(--surface));
  width: 100%;
  height: clamp(540px, calc(100dvh - 110px), 790px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 5px solid var(--edge);
  box-shadow: 0 20px 70px #1b22302b;
  border-radius: 29px;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.4 system-ui, sans-serif;
}
#omnitec-demo .om-phone *, #omnitec-demo .om-phone *::before { box-sizing: border-box; }
#omnitec-demo .om-phone h2, #omnitec-demo .om-phone h3, #omnitec-demo .om-phone p { margin: 0; color: inherit; }
#omnitec-demo .om-phone h2 { font-size: 1.8em; line-height: 1.12; letter-spacing: -.05em; font-weight: 750; }
#omnitec-demo .om-phone h3 { font-size: 1.03em; line-height: 1.27; font-weight: 720; }
#omnitec-demo .om-phone small { color: var(--soft); font-size: .83em; }
#omnitec-demo .om-phone :is(button, input, textarea, select) { font: inherit; }
#omnitec-demo .om-phone :is(button, input, textarea, select):focus-visible { outline: 2px solid var(--key); outline-offset: 2px; }
#omnitec-demo .om-phone button { color: inherit; cursor: pointer; }
#omnitec-demo .om-phone svg { width: 19px; height: 19px; flex: none; }
#omnitec-demo .statusbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 17px 5px; background: var(--surface); font-weight: 750; font-size: .81em; }
#omnitec-demo .status-icons { display: flex; gap: 5px; }
#omnitec-demo .status-icons svg { width: 13px; height: 13px; }
#omnitec-demo .app-head { padding: 8px 11px 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 7px; background: var(--surface); border-bottom: 1px solid var(--line); }
#omnitec-demo .wordmark { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 780; letter-spacing: -.03em; }
#omnitec-demo .wordmark :is(picture, img) { display: block; flex: none; }
#omnitec-demo .wordmark img { width: 69px; height: auto; }
#omnitec-demo .role-select { max-width: 110px; min-height: 34px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 0 4px; font-size: .81em; }
#omnitec-demo .head-right { display: flex; align-items: center; gap: 5px; }
#omnitec-demo .icon-action { min-width: 36px; min-height: 36px; display: grid; place-items: center; position: relative; padding: 0; border: 0; border-radius: 9px; background: var(--tone); }
#omnitec-demo .unread-dot { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #bb382d; }
#omnitec-demo .screen { overflow: auto; min-height: 0; padding: 15px; scrollbar-width: thin; overscroll-behavior: contain; }
#omnitec-demo .app-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px; border-top: 1px solid var(--line); background: var(--surface); }
#omnitec-demo .app-nav button { display: grid; gap: 3px; justify-items: center; min-height: 49px; border: 0; border-radius: 9px; background: transparent; padding: 5px 0; color: var(--soft); font-size: .76em; }
#omnitec-demo .app-nav button[aria-current="page"] { color: var(--ink); background: var(--tone); font-weight: 770; }
#omnitec-demo .app-nav button[aria-current="page"] svg { color: var(--key); }
#omnitec-demo .app-nav svg { width: 18px; height: 18px; }
#omnitec-demo .heading { display: grid; gap: 5px; margin-bottom: 15px; }
#omnitec-demo .mini-heading { margin: 17px 0 7px; }
#omnitec-demo .tile, #omnitec-demo .sheet { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
#omnitec-demo .tile { padding: 13px; }
#omnitec-demo .stack { display: grid; gap: 9px; }
#omnitec-demo .row { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 57px; padding: 9px 11px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; }
#omnitec-demo .row:last-child { border-bottom: 0; }
#omnitec-demo .row > span:nth-child(2) { display: grid; gap: 2px; }
#omnitec-demo .bubble { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: var(--tone); color: var(--key); }
#omnitec-demo .chip { width: fit-content; display: inline-flex; padding: 3px 7px; border-radius: 6px; font-size: .76em; font-weight: 740; background: var(--tone); color: var(--ink); white-space: nowrap; }
#omnitec-demo .chip.urgent { background: light-dark(#fbe4e3, #4c2428); color: light-dark(#982c2a, #ffbbb5); }
#omnitec-demo .action { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); min-height: 41px; padding: 8px 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 730; }
#omnitec-demo .action.major { border-color: transparent; background: var(--key); color: #fff; }
#omnitec-demo .action.full { width: 100%; }
#omnitec-demo .soft-action { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0 10px; border: 0; background: none; min-height: 33px; font-weight: 700; }
#omnitec-demo .quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#omnitec-demo .quick button { min-height: 72px; display: flex; align-items: flex-start; justify-content: space-between; flex-direction: column; gap: 5px; text-align: left; font-weight: 720; }
#omnitec-demo .quick svg { color: var(--key); }
#omnitec-demo .field { display: grid; gap: 4px; }
#omnitec-demo .field :is(input, select, textarea) { width: 100%; min-height: 40px; padding: 7px 8px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
#omnitec-demo .field textarea { min-height: 76px; resize: vertical; }
#omnitec-demo .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#omnitec-demo .toast { border: 1px solid var(--line); background: var(--tone); padding: 8px 10px; border-radius: 9px; margin-bottom: 9px; font-weight: 680; }
#omnitec-demo .terrain-focus { border: 0; padding: 15px; background: var(--key); color: #fff; }
#omnitec-demo .terrain-focus h3 { font-size: 1.38em; margin: 8px 0 3px; }
#omnitec-demo .terrain-focus p { margin-bottom: 12px; }
#omnitec-demo .terrain-focus .action { color: #172231; background: #fff; }
#omnitec-demo .week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; }
#omnitec-demo .week button { display: grid; justify-items: center; min-height: 58px; gap: 3px; padding: 6px 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
#omnitec-demo .week button[aria-pressed="true"] { background: var(--key); border-color: var(--key); color: #fff; }
#omnitec-demo .week button[aria-pressed="true"] small { color: #fff; }
#omnitec-demo .agenda-entry { border-left: 4px solid var(--key); }
#omnitec-demo .terrain-planning { margin-top: 15px; }
#omnitec-demo .terrain-planning-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; margin-bottom: 7px; }
#omnitec-demo .terrain-planning-head .soft-action { min-height: 33px; padding: 2px 0; color: var(--soft); }
#omnitec-demo .terrain-planning .week { margin-bottom: 7px; }
#omnitec-demo .terrain-planning .week button { min-height: 46px; padding-block: 4px; }
#omnitec-demo .terrain-planning .agenda-entry { padding: 8px 11px; }
@media (max-width: 360px) {
  #omnitec-demo .screen { padding: 10px; }
  #omnitec-demo .app-head { padding-inline: 7px; }
  #omnitec-demo .wordmark { font-size: .85em; }
  #omnitec-demo .app-nav button { font-size: .71em; }
}

:root {
  color-scheme: light dark;
  font: 16px/1.4 system-ui, sans-serif;
  --stage: light-dark(#f9f6f3, #10141b);
  --page-ink: light-dark(#1b2331, #f2f4f8);
  --page-soft: light-dark(#586271, #adb9cd);
  --page-line: light-dark(#dad8d8, #455268);
  --page-surface: light-dark(#fff, #202936);
}
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--page-ink);
  background:
    radial-gradient(ellipse at 50% 20%, light-dark(#fdfbf9, #263043) 0%, transparent 69%),
    radial-gradient(light-dark(#75665c23, #d1ddf021) .75px, transparent .75px) 0 0 / 19px 19px,
    var(--stage);
}
.demo {
  width: min(402px, calc(100% - 20px));
  margin-inline: auto;
  padding-block: 15px 18px;
}
.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 10px;
}
.demo-title h1 { font-size: clamp(16px, 5vw, 21px); line-height: 1.2; font-weight: 800; letter-spacing: -.045em; margin: 0; }
.demo-title p { margin: 3px 0 0; color: var(--page-soft); font-size: .77rem; }
.reset {
  min-height: 36px;
  border: 1px solid var(--page-line);
  border-radius: 8px;
  padding: 5px 9px;
  background: var(--page-surface);
  color: var(--page-ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}
.reset:hover { border-color: var(--page-soft); }
.reset:focus-visible { outline: 2px solid #ab342b; outline-offset: 2px; }
.reset-primary { background: #ab342b; color: #fff; border-color: #ab342b; }
#restart-dialog {
  width: min(360px, calc(100% - 48px));
  padding: 20px;
  color: var(--page-ink);
  background: var(--page-surface);
  border: 1px solid var(--page-line);
  border-radius: 14px;
}
#restart-dialog::backdrop { background: #0c142197; }
#restart-dialog :is(h2, p) { margin: 0 0 12px; }
#restart-dialog h2 { font-size: 1.2rem; }
#restart-dialog p { color: var(--page-soft); font-size: .92rem; }
.dialog-actions, #omnitec-demo .inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dialog-actions { justify-content: flex-end; }
#omnitec-demo .proof { display: block; width: 100%; max-height: 175px; object-fit: contain; border-radius: 7px; background: var(--paper); }
#omnitec-demo .om-phone button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 440px) {
  .demo { width: min(398px, calc(100% - 12px)); padding-block: 8px; }
  #omnitec-demo .om-phone { height: max(470px, calc(100dvh - 73px)); border-width: 3px; border-radius: 23px; }
  .demo-header { margin-inline: 5px; }
  #omnitec-demo .om-phone :is(input, textarea, select) { font-size: 16px; }
  #omnitec-demo .om-phone .role-select { font-size: 11px; }
}
