#armx9-calendar {
  --a9c-accent: #c4b5fd;
  --a9c-surface: #181822;
  --a9c-raised: #20202d;
  --a9c-inset: #14141d;
  --a9c-line: #343441;
  --a9c-text: #f4f1fb;
  --a9c-muted: #aaa7b9;
  --a9c-turquoise: #86dcc1;
  --a9c-tangerine: #f0bd86;
  --a9c-confirmed: #b4abff;
  --a9c-closed: #ef9aad;
  --a9c-offer: #f2c88b;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(310px, 1fr);
  align-items: start;
  gap: 14px;
  min-width: 0;
  color: var(--a9c-text);
}
#armx9-calendar :where(h3, h4, p) { margin: 0; }
#armx9-calendar [hidden] { display: none !important; }
#armx9-calendar header { position: static; padding: 0; color: inherit; background: none; }
.a9c-header, .a9c-toolbar, .a9c-month-nav, .a9c-month-arrows, .a9c-tools, .a9c-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.a9c-header, .a9c-toolbar { justify-content: space-between; flex-wrap: wrap; }
.a9c-header h4 { font-size: 1.21rem; line-height: 1.25; font-weight: 680; letter-spacing: -.025em; }
.a9c-kicker {
  color: var(--a9c-accent);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .69rem;
  font-weight: 700;
}
.a9c-muted, .a9c-message { font-size: .84rem; line-height: 1.5; }
.a9c-muted { color: var(--a9c-muted); }
.a9c-button, #armx9-calendar :is(input, select) {
  background: var(--a9c-inset);
  border: 1px solid var(--a9c-line);
  border-radius: 8px;
  color: inherit;
  font: inherit;
  font-size: .85rem;
  min-width: 0;
  min-height: 38px;
  padding: 7px 11px;
}
.a9c-button { cursor: pointer; }
.a9c-button:hover:not(:disabled) { border-color: #70668e; background-color: #262436; }
#armx9-calendar :is(button, input, select, a, summary):focus-visible { outline: 2px solid var(--a9c-accent); outline-offset: 2px; }
#armx9-calendar :disabled { opacity: .6; cursor: default; }
#armx9-calendar .a9c-primary {
  background: var(--a9c-accent);
  color: #19132b;
  border-color: transparent;
  font-weight: 700;
}
#armx9-calendar .a9c-primary:hover:not(:disabled) { background: #dccffe; }
.a9c-danger { color: var(--a9c-tangerine); }
.a9c-tools, .a9c-actions { flex-wrap: wrap; }
.a9c-month-nav { gap: 16px; min-width: 0; }
.a9c-month-nav h3 { font-size: clamp(1.18rem, 2.2vw, 1.62rem); line-height: 1.15; font-weight: 720; letter-spacing: -.035em; }
.a9c-month-arrows { gap: 4px; }
#armx9-calendar .a9c-icon { min-width: 38px; padding: 0; font-size: 1.4rem; line-height: 1; }
#armx9-calendar .a9c-refresh { font-size: 1.15rem; }
.a9c-filters { position: relative; }
.a9c-filters summary { display: flex; align-items: center; list-style: none; }
.a9c-filters summary::-webkit-details-marker { display: none; }
.a9c-filters[open] summary, .a9c-filters[data-active="true"] summary { border-color: var(--a9c-accent); color: var(--a9c-accent); }
.a9c-filter-panel { position: absolute; z-index: 3; top: calc(100% + 6px); right: 0; display: grid; width: 212px; gap: 8px; padding: 12px; border: 1px solid var(--a9c-line); border-radius: 12px; background: var(--a9c-raised); box-shadow: 0 12px 32px #090911c0; }
.a9c-filter-panel label { display: grid; gap: 3px; color: var(--a9c-muted); font-size: .8rem; }
#armx9-calendar .a9c-filter-panel select { color: var(--a9c-text); }
.a9c-filter-actions { display: flex; gap: 6px; justify-content: space-between; }
.a9c-surface {
  min-width: 0;
  border: 1px solid var(--a9c-line);
  border-radius: 16px;
  background: var(--a9c-surface);
  padding: clamp(12px, 1.55vw, 22px);
}
.a9c-month { display: grid; }
.a9c-toolbar { gap: 12px; padding-bottom: 14px; }
.a9c-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(4px, .52vw, 7px); }
.a9c-weekdays { color: var(--a9c-muted); font-size: .72rem; font-weight: 650; text-align: center; padding-bottom: 9px; }
.a9c-weekdays span:nth-child(n+6) { color: #c7b6dc; }
.a9c-days { grid-auto-rows: minmax(min-content, 1fr); }
#armx9-calendar .a9c-day {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: clamp(5px, .64vw, 9px);
  min-height: clamp(59px, 6vw, 79px);
  border-color: #30303e;
  border-radius: 9px;
  background: #1d1d29;
  font-variant-numeric: tabular-nums;
}
#armx9-calendar .a9c-day-number { font-size: clamp(.78rem, 1.5vw, 1.05rem); font-weight: 700; line-height: 1.15; }
#armx9-calendar .a9c-day[data-outside="true"] { color: #8a869a; background: var(--a9c-inset); border-color: #2b2b37; }
#armx9-calendar .a9c-day[aria-current="date"] .a9c-day-number { color: var(--a9c-accent); text-decoration: underline; text-underline-offset: 3px; }
#armx9-calendar .a9c-day:hover { background: #292638; border-color: #776b93; }
#armx9-calendar .a9c-day[aria-pressed="true"] { background-color: #342a4d; border-color: var(--a9c-accent); }
#armx9-calendar .a9c-day[data-closed="all"] { background-image: repeating-linear-gradient(-45deg, transparent 0 8px, #ef9aad13 8px 10px); }
.a9c-day-count, .a9c-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.a9c-day-count span { min-width: 1.4em; padding: 2px; background: color-mix(in srgb, var(--a9c-tone) 15%, transparent); border-radius: 4px; color: var(--a9c-tone); font-size: .68rem; line-height: 1; text-align: center; }
.a9c-day-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.a9c-day-marks { display: flex; align-items: center; gap: 4px; }
.a9c-day-preview { border-left: 2px solid var(--a9c-tone); padding-left: 5px; color: var(--a9c-muted); font-size: .68rem; line-height: 1.3; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.a9c-month-footer { display: flex; justify-content: space-between; align-items: center; gap: 7px 12px; flex-wrap: wrap; padding-top: 13px; color: var(--a9c-muted); }
.a9c-legend { display: flex; flex-wrap: wrap; gap: 2px 13px; }
.a9c-legend, .a9c-zone { font-size: .72rem; }
.a9c-legend i { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--a9c-tone); border-radius: 3px; vertical-align: middle; }
.a9c-legend .a9c-closed-key, .a9c-day-marks .a9c-closed-key { display: inline-block; width: 8px; height: 3px; border: 0; border-radius: 2px; background: var(--a9c-closed); }
.a9c-legend .a9c-offer-key, .a9c-day-marks .a9c-offer-key { display: inline-block; width: 6px; height: 6px; border: 0; border-radius: 1px; transform: rotate(45deg); background: var(--a9c-offer); }
#armx9-calendar [data-tone="paid"] { --a9c-tone: var(--a9c-turquoise); }
#armx9-calendar [data-tone="requested"] { --a9c-tone: var(--a9c-tangerine); }
#armx9-calendar [data-tone="confirmed"] { --a9c-tone: var(--a9c-confirmed); }
#armx9-calendar [data-tone="history"] { --a9c-tone: var(--a9c-muted); }
#armx9-calendar .a9c-popup {
  width: min(710px, calc(100% - 24px));
  max-height: min(760px, calc(100dvh - 24px));
  position: fixed;
  margin: auto;
  color: inherit;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--a9c-surface);
  box-shadow: 0 24px 80px #050a14b0;
  padding: clamp(10px, 2.6vw, 22px);
}
#armx9-calendar .a9c-popup[open] { display: grid; gap: 15px; }
.a9c-popup::backdrop { background: #090811b8; backdrop-filter: blur(4px); }
.a9c-popup-header, .a9c-day-identity, .a9c-day-nav { display: flex; align-items: center; gap: 7px; }
.a9c-popup-header { flex-wrap: nowrap; }
.a9c-day-identity { gap: 11px; min-width: 0; }
.a9c-date-emblem { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border: 1px solid #54436f; background: #302544; border-radius: 11px; color: var(--a9c-accent); font-size: 1.3rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.a9c-date-emblem svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
#armx9-calendar .a9c-agenda-header h4 { margin-bottom: 2px; }
#armx9-calendar .a9c-agenda-header h4:focus { outline: none; }
#armx9-calendar .a9c-popup-header h4 { margin: 2px 0 0; }
.a9c-day-tabs { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 3px; padding: 3px; border: 1px solid var(--a9c-line); background: var(--a9c-inset); border-radius: 10px; }
#armx9-calendar .a9c-day-tabs button { background: transparent; border-color: transparent; }
#armx9-calendar .a9c-day-tabs button[aria-selected="true"] { background: #2a233b; border-color: #48385f; color: var(--a9c-accent); }
.a9c-day-tabs button span:not(:empty) { margin-left: 2px; color: var(--a9c-muted); font-variant-numeric: tabular-nums; font-size: .72em; }
#armx9-calendar .a9c-agenda > [role="tabpanel"], .a9c-timeline, .a9c-block-list { display: grid; gap: 8px; min-width: 0; }
.a9c-day-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 3px 0; }
.a9c-day-note { padding-inline: 2px; }
#armx9-calendar .a9c-day-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding-inline: 6px; }
.a9c-day-actions svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--a9c-accent); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#armx9-calendar .a9c-offer-action { grid-column: 1 / -1; background: #33283a; border-color: #584056; color: #f2d5af; font-weight: 650; }
#armx9-calendar .a9c-offer-action:hover:not(:disabled) { background: #473347; border-color: #906080; }
.a9c-offer-action svg { color: var(--a9c-offer); }
.a9c-offer-row, .a9c-block-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border: 1px solid var(--a9c-line); border-radius: 9px; background: var(--a9c-inset); overflow-wrap: anywhere; }
.a9c-offer-row { flex-wrap: wrap; }
.a9c-offer-presets { display: flex; gap: 4px; flex-wrap: wrap; }
#armx9-calendar .a9c-slot-chip { color: var(--a9c-offer); font-variant-numeric: tabular-nums; }
.a9c-block-editor { padding: 12px; border-radius: 9px; border: 1px solid var(--a9c-line); background: var(--a9c-inset); }
.a9c-time-controls { display: grid; gap: 7px; }
#armx9-calendar .a9c-time-controls button { min-height: 30px; padding: 4px 8px; font-size: .74rem; }
#armx9-calendar .a9c-time-controls button[aria-pressed="true"] { color: var(--a9c-accent); border-color: var(--a9c-accent); }
.a9c-agenda, .a9c-editor, .a9c-booking, .a9c-ride-details, .a9c-editor form:not(.a9c-search) { display: grid; gap: 10px; }
.a9c-agenda { gap: 12px; scroll-margin-block-start: 88px; }
.a9c-editor form:not(.a9c-search) > button { justify-self: start; }
.a9c-booking { grid-template-columns: 50px minmax(0, 1fr); padding: 10px 11px; border: 1px solid var(--a9c-line); border-left: 3px solid var(--a9c-tone, var(--a9c-line)); border-radius: 9px; background: var(--a9c-inset); overflow-wrap: anywhere; }
.a9c-ride-clock { display: grid; align-content: start; align-items: start; gap: 2px; padding-right: 7px; border-right: 1px solid var(--a9c-line); color: var(--a9c-muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.a9c-ride-clock strong { color: var(--a9c-text); font-size: .94rem; line-height: 1.2; white-space: nowrap; }
.a9c-ride-details { gap: 6px; min-width: 0; }
.a9c-booking header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; }
.a9c-badge { display: inline-block; border-radius: 999px; padding: 3px 7px; background: color-mix(in srgb, currentColor 12%, transparent); font-size: .74rem; }
.a9c-badge { color: var(--a9c-tone, var(--a9c-muted)); }
.a9c-reschedule, .a9c-closures, .a9c-message[data-error="true"] { color: var(--a9c-tangerine); }
.a9c-customer, .a9c-client { font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
#armx9-calendar .a9c-customer { justify-self: start; min-height: 26px; padding: 2px 0; border: 0; color: var(--a9c-accent); text-align: left; text-decoration: underline; text-underline-offset: 3px; }
#armx9-calendar .a9c-ride-details .a9c-actions button { min-height: 29px; padding: 4px 8px; font-size: .74rem; }
.a9c-reschedule { font-size: .84rem; }
.a9c-empty {
  padding: 15px;
  border: 1px dashed var(--a9c-line);
  border-radius: 9px;
  color: var(--a9c-muted);
  font-size: .9rem;
}
.a9c-message:empty { display: none; }
.a9c-month > .a9c-message:not(:empty) { margin-top: 10px !important; }
.a9c-search, .a9c-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; align-items: end; }
.a9c-search { grid-template-columns: minmax(0, 1fr) auto; max-width: 530px; }
.a9c-editor .a9c-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a9c-search label, .a9c-fields label { display: grid; gap: 5px; font-size: .85rem; min-width: 0; }
.a9c-search + .a9c-message:not(:empty), .a9c-customers:not(:empty) { margin-top: 7px !important; }
.a9c-customers { display: flex; gap: 6px; flex-wrap: wrap; }
.a9c-customers .a9c-button { text-align: left; overflow-wrap: anywhere; }
@media (max-width: 1120px) {
  .a9c-day-preview { display: none; }
}
@media (max-width: 960px) {
  #armx9-calendar { grid-template-columns: minmax(0, 1fr); }
  #armx9-calendar .a9c-day { min-height: clamp(42px, 8vw, 67px); }
}
@media (max-width: 520px) {
  .a9c-toolbar { gap: 8px; padding-bottom: 11px; }
  .a9c-month-nav { justify-content: space-between; width: 100%; gap: 8px; }
  .a9c-tools { gap: 5px; }
  .a9c-button { font-size: .76rem; padding-inline: 8px; }
  .a9c-filter-panel { left: 0; right: auto; }
  #armx9-calendar .a9c-day { align-items: center; padding-inline: 1px; gap: 3px; }
  .a9c-day-top { justify-content: center; position: relative; }
  .a9c-day-marks { position: absolute; top: 0; right: 2px; flex-direction: column; gap: 2px; }
  .a9c-day-marks .a9c-closed-key { width: 4px; }
  .a9c-day-marks .a9c-offer-key { width: 3px; height: 3px; }
  .a9c-day-identity { gap: 8px; }
  .a9c-date-emblem { flex-basis: 40px; height: 40px; font-size: 1.12rem; }
  .a9c-day-nav { gap: 4px; }
  #armx9-calendar .a9c-popup-header h4 { font-size: 1rem; }
  .a9c-booking { grid-template-columns: 44px minmax(0, 1fr); gap: 7px; padding: 8px; }
  .a9c-ride-clock strong { font-size: .85rem; }
  .a9c-day-count { justify-content: center; gap: 2px; }
  .a9c-day-count span { font-size: .58rem; padding: 1px; }
}
@media (max-width: 360px) {
  .a9c-month-footer { gap: 2px 5px; }
  .a9c-legend { gap: 2px 7px; font-size: .66rem; }
  #armx9-calendar .a9c-day-tabs button { padding-inline: 3px; }
}
