.demo-page {
  background:
    radial-gradient(circle at top left, rgba(33, 150, 243, 0.08), transparent 36%),
    var(--bg-main);
}

.demo-shell-section {
  padding-top: 54px;
}

.demo-intro {
  margin-bottom: 28px;
}

.demo-intro h1 {
  max-width: 880px;
}

.demo-lead {
  max-width: 920px;
  margin-top: 18px;
  font-size: 1.08rem;
}

.demo-disclaimer {
  max-width: 920px;
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 152, 0, 0.36);
  border-radius: 16px;
  background: rgba(255, 152, 0, 0.1);
  color: #f3d4a7;
  font-weight: 800;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.76fr) minmax(320px, 430px) minmax(250px, 0.86fr);
  gap: 22px;
  align-items: start;
}

.demo-side-panel,
.demo-detail-panel {
  position: sticky;
  top: 106px;
}

.demo-summary-card,
.demo-detail-card,
.demo-summary-list,
.demo-help-card,
.demo-pdf-card {
  border: 1px solid var(--border-soft);
  background: rgba(30, 30, 30, 0.92);
  border-radius: 22px;
  padding: 18px;
}

.demo-summary-card {
  border-color: rgba(33, 150, 243, 0.32);
}

.demo-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.14);
  color: #d9edff;
  font-size: 0.78rem;
  font-weight: 800;
}

.demo-summary-card h2,
.demo-detail-card h2,
.demo-help-card h2,
.demo-pdf-card h2 {
  font-size: 1.34rem;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.demo-summary-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.demo-summary-list div {
  display: grid;
  gap: 2px;
}

.demo-summary-list strong {
  color: #fff;
  font-size: 0.9rem;
}

.demo-summary-list span {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.demo-reset {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid rgba(255, 152, 0, 0.4);
  border-radius: 14px;
  background: rgba(255, 152, 0, 0.1);
  color: var(--orange);
  font-weight: 800;
  cursor: pointer;
}

.demo-phone {
  width: 100%;
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(33, 150, 243, 0.45);
  border-radius: 30px;
  background: #111;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.42);
}

.demo-app-bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: #24212d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.demo-app-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-app-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.demo-app-brand strong,
.demo-app-brand span {
  display: block;
}

.demo-app-brand strong {
  font-family: 'Orbitron', Arial, sans-serif;
  color: #eaf5ff;
  font-size: 1rem;
  letter-spacing: 0.8px;
}

.demo-app-brand span {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.demo-icon-button,
.demo-card-button,
.demo-chip,
.demo-form-choice,
.demo-note-action,
.demo-tab-button,
.demo-modal-close {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.demo-icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.56);
  background: transparent;
  color: #fff;
  font-weight: 900;
}

.demo-alert {
  padding: 10px 16px;
  background: rgba(255, 152, 0, 0.12);
  border-bottom: 1px solid rgba(255, 152, 0, 0.24);
  color: #f6d2a1;
  font-size: 0.86rem;
  font-weight: 700;
}

.demo-screen {
  min-height: 590px;
  max-height: 590px;
  overflow: auto;
  padding: 16px;
  scrollbar-color: rgba(33, 150, 243, 0.5) rgba(255, 255, 255, 0.08);
}

.demo-screen h2 {
  font-size: 1.45rem;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.demo-screen-subtitle {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.demo-days,
.demo-filter-row,
.demo-form-grid,
.demo-quick-row,
.demo-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.demo-day {
  padding: 8px 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.demo-day.is-active {
  color: #fff;
  border-color: var(--blue);
  background: rgba(33, 150, 243, 0.18);
}

.demo-search {
  width: 100%;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.demo-search::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.demo-chip {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.demo-chip.is-active {
  border-color: rgba(33, 150, 243, 0.7);
  color: #fff;
  background: rgba(33, 150, 243, 0.18);
}

.demo-appointments {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.demo-appointment-card {
  border: 1px solid rgba(33, 150, 243, 0.36);
  background: #1b1b1b;
  border-radius: 22px;
  padding: 14px;
}

.demo-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.demo-client {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.2;
}

.demo-hour {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.demo-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.demo-status.pending { background: rgba(176, 176, 176, 0.18); color: #d7d7d7; }
.demo-status.confirmed { background: rgba(33, 150, 243, 0.18); color: #64b5f6; }
.demo-status.onTheWay { background: rgba(255, 152, 0, 0.16); color: #ffb74d; }
.demo-status.onSite { background: rgba(156, 39, 176, 0.2); color: #d48be4; }
.demo-status.done { background: rgba(76, 175, 80, 0.18); color: #81c784; }
.demo-status.absent, .demo-status.cancelled { background: rgba(244, 67, 54, 0.18); color: #ef9a9a; }
.demo-status.postponed { background: rgba(255, 193, 7, 0.18); color: #ffd54f; }

.demo-info-lines {
  display: grid;
  gap: 7px;
  margin: 13px 0;
}

.demo-info-line {
  padding: 9px 10px;
  border-radius: 12px;
  background: #343434;
  color: #efefef;
  font-size: 0.84rem;
  font-weight: 700;
}

.demo-card-note {
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.demo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.demo-card-button,
.demo-note-action {
  min-height: 38px;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.16);
  color: #d9edff;
  font-weight: 900;
}

.demo-card-button.secondary {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.demo-card-button.warning {
  background: rgba(255, 152, 0, 0.16);
  color: #ffd29a;
}

.demo-card-button.success {
  background: rgba(76, 175, 80, 0.18);
  color: #a5d6a7;
}

.demo-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  background: #181818;
}

.demo-bottom-nav button {
  border: 0;
  border-top: 3px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 900;
  cursor: pointer;
}

.demo-bottom-nav button.is-active {
  color: var(--blue);
  border-top-color: var(--blue);
  background: rgba(33, 150, 243, 0.1);
}

.demo-detail-panel:empty::before {
  content: "Sélectionnez un rendez-vous ou une note pour afficher le détail.";
  display: block;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 18px;
  background: rgba(30, 30, 30, 0.78);
  color: var(--text-secondary);
}

.demo-detail-list {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.demo-detail-list div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.demo-detail-list strong {
  color: #fff;
  font-size: 0.82rem;
}

.demo-detail-list span {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.demo-status-grid {
  margin-top: 12px;
}

.demo-status-grid .demo-chip {
  flex: 1 1 calc(50% - 8px);
}

.demo-note-card,
.demo-setting-card,
.demo-pdf-preview {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.demo-note-card + .demo-note-card,
.demo-setting-card + .demo-setting-card {
  margin-top: 12px;
}

.demo-note-card h3,
.demo-setting-card h3 {
  margin-bottom: 6px;
}

.demo-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.demo-note-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.13);
  color: #d9edff;
  font-size: 0.76rem;
  font-weight: 800;
}

.demo-form-choice {
  display: grid;
  gap: 4px;
  flex: 1 1 calc(50% - 8px);
  min-height: 72px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  text-align: left;
}

.demo-form-choice.is-active {
  border-color: var(--blue);
  background: rgba(33, 150, 243, 0.15);
}

.demo-form-choice strong {
  font-size: 0.88rem;
}

.demo-form-choice span {
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.demo-form-fields {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.demo-field {
  display: grid;
  gap: 5px;
}

.demo-field label {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.demo-field input,
.demo-field textarea,
.demo-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 9px 11px;
  font: inherit;
}

.demo-field textarea {
  min-height: 94px;
  resize: vertical;
}

.demo-quick-row {
  margin-top: 12px;
}

.demo-quick-row .demo-note-action {
  flex: 1 1 calc(50% - 8px);
}

.demo-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-toggle {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.34);
  position: relative;
  flex: 0 0 auto;
}

.demo-toggle::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
}

.demo-toggle.off {
  background: rgba(255, 255, 255, 0.18);
}

.demo-toggle.off::after {
  right: 23px;
}

.demo-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.demo-stat {
  padding: 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.demo-stat strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
}

.demo-stat span {
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 800;
}

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 300;
  max-width: min(420px, calc(100% - 24px));
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(33, 150, 243, 0.94);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.demo-modal.is-open {
  display: flex;
}

.demo-modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid rgba(33, 150, 243, 0.36);
  border-radius: 22px;
  background: #151515;
  padding: 22px;
}

.demo-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.demo-pdf-preview {
  margin-top: 14px;
  background: #f7f7f7;
  color: #111;
}

.demo-pdf-preview p,
.demo-pdf-preview li {
  color: #333;
}

.demo-pdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 2px solid #2196f3;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.demo-pdf-header strong {
  color: #0a2c66;
}

.demo-pdf-sections {
  display: grid;
  gap: 10px;
}

.demo-pdf-sections section {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.demo-pdf-sections h3 {
  color: #0a2c66;
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .demo-layout {
    grid-template-columns: minmax(310px, 430px) minmax(250px, 1fr);
  }

  .demo-side-panel {
    display: none;
  }
}

@media (max-width: 820px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .demo-side-panel,
  .demo-detail-panel {
    position: static;
  }

  .demo-side-panel {
    display: block;
    order: 2;
  }

  .demo-phone {
    order: 1;
    border-radius: 24px;
    min-height: 700px;
  }

  .demo-detail-panel {
    order: 3;
  }
}

@media (max-width: 700px) {
  .demo-shell-section {
    padding-top: 36px;
  }

  .demo-lead {
    font-size: 1rem;
  }

  .demo-layout {
    width: min(100% - 16px, var(--container));
  }

  .demo-phone {
    min-height: 690px;
  }

  .demo-app-bar {
    min-height: 70px;
    padding: 10px 12px;
  }

  .demo-app-brand img {
    width: 40px;
    height: 40px;
  }

  .demo-screen {
    min-height: 548px;
    max-height: 548px;
    padding: 12px;
  }

  .demo-days {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .demo-actions,
  .demo-stat-row {
    grid-template-columns: 1fr;
  }

  .demo-form-choice,
  .demo-quick-row .demo-note-action,
  .demo-status-grid .demo-chip {
    flex-basis: 100%;
  }

  .demo-bottom-nav {
    min-height: 64px;
  }

  .demo-bottom-nav button {
    font-size: 0.86rem;
  }
}

/* Vue agenda proche de l'application Android */
.demo-phone {
  background: #0f0f0f;
}

.demo-phone.is-detail .demo-bottom-nav {
  display: none;
}

.demo-phone.is-detail .demo-app-bar {
  display: none;
}

.demo-phone.is-detail .demo-screen {
  min-height: 760px;
  max-height: 760px;
}

.demo-app-bar {
  justify-content: center;
  position: relative;
  background: #302c3a;
}

.demo-app-brand {
  justify-content: center;
}

.demo-app-brand strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.demo-app-brand span {
  display: none;
}

.demo-icon-button {
  position: absolute;
  right: 14px;
}

.demo-alert {
  display: none;
}

.demo-screen {
  padding: 0;
  background: #101010;
}

.demo-view-toolbar {
  display: grid;
  grid-template-columns: 42px 42px 1fr 42px 42px;
  align-items: center;
  min-height: 58px;
  padding: 0 10px;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-view-toolbar strong {
  justify-self: center;
  color: #f6f6f6;
  font-size: 1rem;
}

.demo-view-toolbar button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d8d8d8;
  font-size: 1.55rem;
  font-weight: 800;
  cursor: pointer;
}

.demo-sync-banner {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: rgba(255, 152, 0, 0.18);
  color: #ccbda8;
  font-size: 0.79rem;
}

.demo-sync-banner.ok {
  background: rgba(76, 175, 80, 0.16);
  color: #aac9b0;
}

.demo-search-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #151515;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.demo-search-line input {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0 12px;
}

.demo-agenda-day-title {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: #171717;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.demo-agenda-day-title span {
  color: var(--blue);
  font-size: 1.28rem;
}

.demo-agenda-day-title strong {
  font-size: 1.05rem;
}

.demo-zoom-pill {
  position: sticky;
  top: 0;
  z-index: 5;
  width: fit-content;
  margin: 10px 10px 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #232323;
  color: #cfcfcf;
  font-size: 0.78rem;
  font-weight: 800;
}

.demo-zoom-pill button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.demo-agenda-scroll {
  overflow: auto;
  scrollbar-color: rgba(33, 150, 243, 0.48) rgba(255, 255, 255, 0.07);
}

.demo-agenda-scroll.single {
  max-height: 420px;
}

.demo-agenda-grid {
  position: relative;
  min-height: 650px;
  padding-left: 58px;
}

.demo-agenda-grid.multi {
  display: grid;
  grid-template-columns: 58px repeat(3, minmax(210px, 1fr));
  width: max(100%, 820px);
  padding-left: 0;
}

.demo-agenda-grid.single {
  display: grid;
  grid-template-columns: 58px minmax(280px, 1fr);
  padding-left: 0;
}

.demo-time-rail {
  position: relative;
  grid-column: 1;
  min-height: 650px;
  background: #101010;
}

.demo-time-rail span {
  position: absolute;
  left: 14px;
  color: #9d9d9d;
  font-size: 0.78rem;
  transform: translateY(-50%);
}

.demo-day-column {
  position: relative;
  min-height: 650px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  background: #101010;
}

.demo-day-column.wide {
  border-right: 0;
}

.demo-day-heading {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 36px;
  padding: 8px 10px;
  background: rgba(16, 16, 16, 0.96);
  color: #d9edff;
  font-size: 0.82rem;
  font-weight: 900;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.demo-now-line {
  position: absolute;
  left: 48px;
  right: 0;
  z-index: 6;
  height: 3px;
  background: #ff5d68;
}

.demo-now-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5d68;
}

.demo-now-line span {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 3px 7px;
  border-radius: 999px;
  background: #ff5d68;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.demo-agenda-card {
  position: absolute;
  left: 8px;
  right: 8px;
  overflow: hidden;
  border: 1px solid rgba(88, 139, 150, 0.72);
  border-radius: 14px;
  background: #20242a;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.demo-agenda-card.compact {
  padding: 8px;
}

.demo-agenda-card.done {
  border-color: #4caf50;
  background: rgba(35, 74, 36, 0.7);
}

.demo-agenda-card.confirmed {
  border-color: rgba(91, 143, 153, 0.8);
}

.demo-agenda-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demo-mini-time {
  color: #d8d8d8;
  font-size: 0.72rem;
  font-weight: 900;
}

.demo-mini-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.demo-agenda-card strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-agenda-card.compact strong {
  font-size: 0.82rem;
}

.demo-agenda-card p {
  margin-top: 2px;
  color: #b8b8b8;
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-agenda-card.compact p {
  font-size: 0.68rem;
}

.demo-round-actions {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  display: flex;
  gap: 8px;
}

.demo-agenda-card.compact .demo-round-actions {
  gap: 6px;
  bottom: 7px;
}

.demo-round-action {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.demo-agenda-card.compact .demo-round-action {
  width: 27px;
  height: 27px;
  font-size: 0.76rem;
}

.demo-round-action.blue { background: rgba(33, 150, 243, 0.34); }
.demo-round-action.green { background: rgba(76, 175, 80, 0.36); }
.demo-round-action.orange { background: rgba(255, 152, 0, 0.42); }
.demo-round-action.purple { background: rgba(124, 77, 255, 0.42); }

.demo-beta-strip {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: rgba(255, 152, 0, 0.16);
  color: #d0b899;
  font-size: 0.78rem;
}

.demo-detail-appbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  background: #151118;
  color: #fff;
}

.demo-detail-appbar button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.3rem;
  line-height: 1;
  cursor: pointer;
}

.demo-detail-appbar strong {
  font-size: 1.28rem;
  font-weight: 400;
}

.demo-phone-detail-card {
  margin: 22px;
  padding: 22px;
  border: 2px solid rgba(180, 180, 180, 0.8);
  border-radius: 24px;
  background: #1c1c1c;
}

.demo-phone-detail-card.done {
  border-color: #4caf50;
}

.demo-detail-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.demo-detail-topline h2 {
  color: #fff;
  font-size: 1.7rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.demo-detail-icons {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #bbb;
}

.demo-detail-icons span {
  font-size: 1.5rem;
}

.demo-detail-icons strong {
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

.demo-detail-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
  color: #bfbfbf;
}

.demo-detail-line {
  display: grid;
  grid-template-columns: 24px 1fr 18px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #333;
}

.demo-detail-line span {
  color: var(--blue);
  font-size: 1.15rem;
}

.demo-detail-line strong {
  color: #fff;
  font-size: 0.95rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-detail-line em {
  color: #8e8e8e;
  font-style: normal;
}

.demo-detail-note {
  margin: 28px 0 18px;
  padding: 20px;
  border-radius: 17px;
  background: #333;
  color: #e2e2e2;
}

.demo-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-big-action {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 0.92rem;
}

.demo-big-action.blue { background: #2d9bf0; }
.demo-big-action.green { background: #2e8b32; }
.demo-big-action.purple {
  grid-column: 1 / -1;
  background: #7d49f7;
}

.demo-time-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(124, 77, 255, 0.45);
  border-radius: 16px;
  background: rgba(68, 47, 112, 0.34);
}

.demo-time-box strong {
  color: #fff;
}

.demo-time-box span {
  color: #d7c3ff;
  font-weight: 800;
}

.demo-time-box p {
  grid-column: 1 / -1;
}

.demo-time-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.demo-time-pills span {
  padding: 10px 13px;
  border-radius: 999px;
  background: #303030;
  color: #d5d5d5;
  font-weight: 800;
}

.demo-detail-status-button {
  width: 100%;
  min-height: 58px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: #bdbdbd;
  font-weight: 900;
}

.demo-detail-status-button.done {
  border-color: #4caf50;
  color: #4caf50;
}

@media (max-width: 700px) {
  .demo-agenda-grid.multi {
    width: 760px;
    grid-template-columns: 52px repeat(3, 225px);
  }

  .demo-agenda-grid.single {
    grid-template-columns: 52px minmax(300px, 1fr);
  }

  .demo-time-rail span {
    left: 10px;
  }

  .demo-agenda-card {
    left: 6px;
    right: 6px;
  }

  .demo-phone-detail-card {
    margin: 16px;
    padding: 18px;
  }

  .demo-phone.is-detail .demo-screen {
    min-height: 690px;
    max-height: 690px;
  }

  .demo-detail-topline h2 {
    font-size: 1.45rem;
  }

  .demo-detail-icons {
    gap: 8px;
  }

  .demo-detail-icons strong {
    padding: 8px 12px;
  }

  .demo-detail-actions {
    grid-template-columns: 1fr;
  }

  .demo-big-action.purple {
    grid-column: auto;
  }
}
