.vdbost,
.vdbost * {
  box-sizing: border-box;
}

.vdbost {
  --vdbost-navy: #0b1525;
  --vdbost-blue: #1f5eff;
  --vdbost-red: #b72b22;
  --vdbost-green: #197b51;
  --vdbost-border: #dbe2ea;
  --vdbost-muted: #657184;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--vdbost-border);
  border-radius: 20px;
  background: #fff;
  color: var(--vdbost-navy);
  box-shadow: 0 16px 48px rgba(11, 21, 37, .08);
  font-family: inherit;
}

.vdbost__header h2,
.vdbost__status-panel h3,
.vdbost__section-title {
  margin: 0;
  color: var(--vdbost-navy);
  line-height: 1.2;
}

.vdbost__header h2 {
  font-size: clamp(26px, 6vw, 38px);
}

.vdbost__header-top {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.vdbost__header-top .vdbost__eyebrow {
  margin-bottom: 0;
}

.vdbost__logout {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border: 1px solid #d8a7a3;
  border-radius: 999px;
  background: #fff7f6;
  color: #9d271f;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.vdbost__logout[hidden] {
  display: none !important;
}

.vdbost__logout:hover,
.vdbost__logout:focus-visible {
  border-color: #b72b22;
  background: #fbe9e7;
}

.vdbost__header > p:last-child {
  margin: 10px 0 0;
  color: var(--vdbost-muted);
  line-height: 1.55;
}

.vdbost__eyebrow {
  margin: 0 0 6px;
  color: var(--vdbost-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.vdbost__notice {
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.vdbost__notice--info { background: #edf4ff; border-color: #c8dafb; color: #17498e; }
.vdbost__notice--success { background: #edf9f3; border-color: #b9e2cc; color: #12613e; }
.vdbost__notice--warning { background: #fff8e8; border-color: #edd49a; color: #775408; }
.vdbost__notice--error { background: #fff0ee; border-color: #efc0ba; color: #8d2119; }

.vdbost__login-link {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.vdbost__content {
  margin-top: 22px;
  overflow: hidden;
}

.vdbost__screen {
  animation: vdbost-screen-in .22s ease both;
}

@keyframes vdbost-screen-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.vdbost__back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 5px 13px 5px 5px;
  border: 1px solid var(--vdbost-border);
  border-radius: 999px;
  background: #fff;
  color: #344256;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.vdbost__back:hover {
  border-color: #b7c4d4;
  background: #f5f7fa;
  transform: translateX(-2px);
}

.vdbost__back-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--vdbost-navy);
  color: #fff;
  font-size: 19px;
  line-height: 1;
}

.vdbost__units {
  display: grid;
  gap: 12px;
}

.vdbost__unit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 76px;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--vdbost-border);
  border-radius: 17px;
  background: #fff;
  color: var(--vdbost-navy);
  box-shadow: 0 7px 22px rgba(11, 21, 37, .05);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.vdbost__unit:hover {
  border-color: #9caec3;
  box-shadow: 0 10px 28px rgba(11, 21, 37, .09);
  transform: translateY(-1px);
}

.vdbost__unit-badge {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #fbeae8;
  color: var(--vdbost-red);
  font-size: 13px;
  font-weight: 900;
}

.vdbost__unit-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vdbost__unit-copy strong {
  overflow-wrap: anywhere;
}

.vdbost__unit-copy small {
  color: var(--vdbost-muted);
  font-size: 12px;
}

.vdbost__row-arrow {
  color: #7a8798;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

.vdbost__field {
  display: grid;
  gap: 8px;
}

.vdbost__label {
  display: block;
  margin-bottom: 8px;
  color: #2c394b;
  font-size: 14px;
  font-weight: 800;
}

.vdbost__select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 14px;
  border: 1px solid #bdc8d6;
  border-radius: 12px;
  background: #fff;
  color: var(--vdbost-navy);
  font: inherit;
  font-size: 16px;
}

.vdbost__select:focus-visible,
.vdbost button:focus-visible,
.vdbost a:focus-visible {
  outline: 3px solid rgba(31, 94, 255, .3);
  outline-offset: 2px;
}

.vdbost__selected-unit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid var(--vdbost-border);
  border-radius: 12px;
  background: #f6f8fb;
}

.vdbost__selected-unit span {
  color: var(--vdbost-muted);
  font-size: 13px;
}

.vdbost__selected-unit strong {
  text-align: right;
}

.vdbost__section-title {
  margin-top: 0;
  font-size: 17px;
}

.vdbost__objects {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.vdbost__object {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--vdbost-border);
  border-radius: 13px;
  background: #fff;
  color: var(--vdbost-navy);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.vdbost__object:hover,
.vdbost__object[aria-pressed="true"] {
  border-color: #8caae9;
  box-shadow: 0 7px 20px rgba(31, 94, 255, .09);
  transform: translateY(-1px);
}

.vdbost__object-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vdbost__object-copy strong,
.vdbost__object-copy small {
  overflow-wrap: anywhere;
}

.vdbost__object-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.vdbost__empty {
  margin: 12px 0 0;
  padding: 18px;
  border: 1px dashed #c6d0dc;
  border-radius: 15px;
  background: #f7f9fb;
  color: var(--vdbost-muted);
  font-size: 14px;
  line-height: 1.5;
}

.vdbost__load-error {
  padding: 20px;
  border: 1px solid #efc0ba;
  border-radius: 16px;
  background: #fff7f6;
  text-align: center;
}

.vdbost__load-error h3 {
  margin: 0;
  color: #8d2119;
  font-size: 20px;
}

.vdbost__load-error p {
  margin: 9px 0 18px;
  color: #6d3a35;
  line-height: 1.5;
}

.vdbost__object-copy small {
  color: var(--vdbost-muted);
  font-size: 12px;
  line-height: 1.35;
}

.vdbost__chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.vdbost__chip--approved { background: #e5f6ed; color: #11663f; }
.vdbost__chip--testing { background: #fff2d8; color: #815700; }
.vdbost__permission-hint { color: #9b6710 !important; font-weight: 700; }

.vdbost__status-panel {
  margin-top: 0;
  padding: clamp(17px, 4vw, 24px);
  border: 1px solid #c7d6f1;
  border-radius: 16px;
  background: #f8fbff;
}

.vdbost__login {
  margin-top: 4px;
  padding: clamp(20px, 5vw, 30px);
  border: 1px solid #dce3ec;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  box-shadow: 0 16px 38px rgba(11, 21, 37, .07);
}

.vdbost__login h3 {
  margin: 0;
  color: var(--vdbost-navy);
  font-size: 23px;
  line-height: 1.25;
}

.vdbost__login-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.vdbost__login-field {
  display: grid;
  gap: 7px;
}

.vdbost__login-field .vdbost__label {
  margin: 0 0 0 7px;
}

.vdbost__input-shell {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cbd4df;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(11, 21, 37, .025);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.vdbost__input-shell:focus-within {
  border-color: var(--vdbost-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 94, 255, .13);
}

.vdbost__input-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  margin-left: 7px;
  border-radius: 50%;
  background: #eff3f8;
  color: #48576a;
  font-size: 15px;
  font-weight: 900;
}

.vdbost__input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--vdbost-navy);
  font: inherit;
  font-size: 16px;
}

.vdbost__input--code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .18em;
  text-align: center;
}

.vdbost__input:focus {
  outline: 0;
}

.vdbost__primary-button {
  min-height: 56px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c1342a 0%, #a3221a 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(183, 43, 34, .22);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: box-shadow .18s ease, transform .18s ease, filter .18s ease;
}

.vdbost__primary-button:hover,
.vdbost__primary-button:focus-visible {
  filter: brightness(.96);
  box-shadow: 0 12px 28px rgba(183, 43, 34, .28);
  transform: translateY(-1px);
}

.vdbost__text-button,
.vdbost__secondary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 8px 15px;
  border: 1px solid #d6dee8;
  border-radius: 999px;
  background: #fff;
  color: #17498e;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.vdbost__status-panel h3 {
  font-size: 22px;
}

.vdbost__explanation {
  margin: 9px 0 20px;
  color: var(--vdbost-muted);
  font-size: 14px;
  line-height: 1.5;
}

.vdbost__permission {
  margin-top: 20px;
  padding: 17px;
  border: 1px solid #ead19a;
  border-radius: 14px;
  background: #fff9eb;
}

.vdbost__permission h4 {
  margin: 0;
  color: #654400;
  font-size: 17px;
}

.vdbost__permission-copy {
  margin: 8px 0 0;
  color: #715719;
  font-size: 14px;
  line-height: 1.5;
}

.vdbost__permission-form {
  display: grid;
  gap: 14px;
  margin-top: 17px;
}

.vdbost__permission-form .vdbost__input-shell {
  display: block;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.vdbost__permission-form .vdbost__input-shell:focus-within {
  border: 0;
  box-shadow: none;
}

.vdbost__permission-form .vdbost__label {
  margin-left: 0;
}

.vdbost__date-input,
.vdbost__request-note {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #c8d1dc;
  border-radius: 13px;
  background: #fff;
  color: var(--vdbost-navy);
  font: inherit;
}

.vdbost__request-note {
  min-height: 88px;
  resize: vertical;
}

.vdbost__date-input:focus,
.vdbost__request-note:focus {
  border-color: var(--vdbost-blue);
  outline: 3px solid rgba(31, 94, 255, .13);
}

.vdbost__countdown {
  display: grid;
  gap: 5px;
  margin: 0 0 20px;
  padding: 15px;
  border: 1px solid #f0c36a;
  border-radius: 13px;
  background: #fff7e5;
  color: #654400;
  text-align: center;
}

.vdbost__countdown-label {
  font-size: 14px;
  font-weight: 700;
}

.vdbost__countdown strong {
  color: #8b260f;
  font-size: clamp(30px, 10vw, 46px);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  line-height: 1.1;
}

.vdbost__countdown-track {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ead9b5;
}

.vdbost__countdown-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #c1261d;
  transition: width 1s linear;
}

.vdbost__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vdbost__toggle-button {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #b9c4d3;
  border-radius: 11px;
  background: #fff;
  color: #253346;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.vdbost__toggle-button.is-active {
  border-color: var(--vdbost-blue);
  background: var(--vdbost-blue);
  color: #fff;
}

.vdbost__home-actions,
.vdbost__request-list {
  display: grid;
  gap: 12px;
}

.vdbost__home-button,
.vdbost__requests-button,
.vdbost__request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  width: 100%;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--vdbost-border);
  border-radius: 16px;
  background: #fff;
  color: var(--vdbost-navy);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.vdbost__home-button {
  grid-template-columns: minmax(0, 1fr) auto;
}

.vdbost__home-button strong,
.vdbost__home-button small {
  display: block;
  grid-column: 1;
}

.vdbost__home-button small {
  color: var(--vdbost-muted);
  font-size: 12px;
}

.vdbost__home-button .vdbost__row-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.vdbost__requests-button {
  margin-bottom: 16px;
  border-color: #efc4c0;
  background: #fff8f7;
}

.vdbost__home-actions .vdbost__requests-button {
  margin-bottom: 0;
}

.vdbost__home-button:hover,
.vdbost__requests-button:hover,
.vdbost__request-row:hover {
  border-color: #9caec3;
  box-shadow: 0 9px 24px rgba(11, 21, 37, .08);
  transform: translateY(-1px);
}

.vdbost__request-count {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--vdbost-red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.vdbost__request-row-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vdbost__request-row-copy strong,
.vdbost__request-row-copy span,
.vdbost__request-row-copy small {
  overflow-wrap: anywhere;
}

.vdbost__request-row-copy span {
  font-size: 14px;
}

.vdbost__request-row-copy small {
  color: var(--vdbost-muted);
  font-size: 12px;
}

.vdbost__chip--pending {
  background: #fff0d5;
  color: #7a5200;
}

.vdbost__request-card {
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid #d8e0ea;
  border-radius: 18px;
  background: #fff;
}

.vdbost__request-card h3 {
  margin: 0;
  font-size: clamp(21px, 5vw, 28px);
}

.vdbost__request-address {
  margin: 7px 0 18px;
  color: var(--vdbost-muted);
}

.vdbost__request-fact {
  display: grid;
  grid-template-columns: minmax(110px, .55fr) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #edf0f4;
  font-size: 14px;
  line-height: 1.45;
}

.vdbost__request-fact span {
  color: var(--vdbost-muted);
}

.vdbost__request-fact strong {
  overflow-wrap: anywhere;
}

.vdbost__decision-controls {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5eaf0;
}

.vdbost__decision-controls .vdbost__input-shell {
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vdbost__decision-controls .vdbost__label {
  margin-left: 0;
}

.vdbost__decision-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vdbost__primary-button--approve {
  background: linear-gradient(135deg, #23835b 0%, #126440 100%);
  box-shadow: 0 10px 24px rgba(25, 123, 81, .2);
}

.vdbost__danger-button {
  min-height: 56px;
  padding: 12px 20px;
  border: 1px solid #dca9a5;
  border-radius: 999px;
  background: #fff;
  color: #9a251d;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.vdbost__decision-state {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: #edf9f3;
  color: #12613e;
  line-height: 1.5;
}

.vdbost__decision-state--warning {
  background: #fff8e8;
  color: #775408;
}

.vdbost__object-requests {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #edd49a;
  border-radius: 16px;
  background: #fffaf0;
}

.vdbost.is-busy {
  cursor: progress;
}

.vdbost.is-busy button,
.vdbost.is-busy select {
  cursor: progress;
  opacity: .68;
}

body.vdbost-modal-open {
  overflow: hidden;
}

.vdbost-modal,
.vdbost-modal * {
  box-sizing: border-box;
}

.vdbost-modal[hidden] {
  display: none !important;
}

.vdbost-modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 13, 23, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: inherit;
}

.vdbost-modal__dialog {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: min(100%, 470px);
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 22px;
  background: #fff;
  color: #0b1525;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  animation: vdbost-modal-in .18s ease both;
}

@keyframes vdbost-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vdbost-modal__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fbe9e7;
  color: #a3261e;
  font-size: 22px;
  font-weight: 900;
}

.vdbost-modal__dialog[data-tone="warning"] .vdbost-modal__icon {
  background: #fff1d4;
  color: #805500;
}

.vdbost-modal__dialog[data-tone="success"] .vdbost-modal__icon {
  background: #e4f5ec;
  color: #12613e;
}

.vdbost-modal__copy h3 {
  margin: 1px 0 7px;
  color: #0b1525;
  font-size: 21px;
  line-height: 1.25;
}

.vdbost-modal__copy p {
  margin: 0;
  color: #526074;
  font-size: 15px;
  line-height: 1.55;
}

.vdbost-modal__actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 7px;
}

.vdbost-modal__cancel,
.vdbost-modal__confirm {
  min-height: 52px;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.vdbost-modal__cancel {
  border: 1px solid #cbd4df;
  background: #fff;
  color: #344256;
}

.vdbost-modal__confirm {
  border: 1px solid transparent;
  background: #a3261e;
  color: #fff;
  box-shadow: 0 9px 22px rgba(163, 38, 30, .22);
}

.vdbost-modal__confirm--warning {
  background: #9b6500;
  box-shadow: 0 9px 22px rgba(155, 101, 0, .22);
}

.vdbost-modal__confirm--success {
  background: #197b51;
  box-shadow: 0 9px 22px rgba(25, 123, 81, .22);
}

.vdbost-modal__cancel:focus-visible,
.vdbost-modal__confirm:focus-visible {
  outline: 3px solid rgba(31, 94, 255, .28);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .vdbost {
    border-radius: 0;
    box-shadow: none;
  }

  .vdbost__object {
    align-items: flex-start;
    flex-direction: column;
  }

  .vdbost__object-status,
  .vdbost__chip {
    align-self: flex-start;
  }

  .vdbost__toggle {
    grid-template-columns: 1fr;
  }

  .vdbost__request-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .vdbost__request-row .vdbost__row-arrow {
    display: none;
  }

  .vdbost__request-fact,
  .vdbost__decision-actions {
    grid-template-columns: 1fr;
  }

  .vdbost-modal {
    align-items: end;
    padding: 12px;
  }

  .vdbost-modal__dialog {
    width: 100%;
    padding: 20px 18px 18px;
    border-radius: 24px;
  }

  .vdbost-modal__actions {
    grid-template-columns: 1fr;
  }

  .vdbost-modal__confirm {
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vdbost *,
  .vdbost *::before,
  .vdbost *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
