:root {
  --navy: #071f2e;
  --ink: #18313f;
  --muted: #6e7e87;
  --line: #dfe7e8;
  --surface: rgba(255, 255, 255, 0.94);
  --brand: #2095d2;
  --brand-dark: #0f71a8;
  --brand-pale: #eaf6fc;
  --blue-pale: #eef6fb;
  --warning: #805c16;
  --warning-bg: #fff9e9;
  --danger: #a34141;
  --danger-bg: #fff1f0;
  --shadow: 0 18px 50px rgba(25, 59, 69, 0.08);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: #f5f9fc;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(27, 79, 89, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 79, 89, 0.035) 1px, transparent 1px),
    #f5f9fc;
  background-size: 40px 40px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  top: 60px;
  right: -240px;
  background: radial-gradient(circle, rgba(32, 149, 210, 0.13), transparent 70%);
}

.ambient-two {
  top: 620px;
  left: -260px;
  background: radial-gradient(circle, rgba(32, 149, 210, 0.09), transparent 70%);
}

.site-header {
  height: 72px;
  padding: 0 max(28px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(213, 227, 228, 0.9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: var(--navy);
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-logo {
  display: block;
  width: 82px;
  height: 36px;
  object-fit: contain;
}

.header-meta {
  font-size: 13px;
  font-weight: 600;
  color: #718188;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(32, 149, 210, 0.13);
}

main {
  width: min(100% - 40px, 1000px);
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 74px 0 44px;
}

.eyebrow {
  color: var(--brand-dark);
  font-size: 11px;
  letter-spacing: 2.1px;
  font-weight: 800;
  margin: 0 0 20px;
}

.hero h1 {
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  font-size: clamp(39px, 5.5vw, 64px);
  letter-spacing: -3px;
  line-height: 1.03;
  margin: 0;
}

.hero h1 span {
  color: #86a2a9;
}

.hero-copy {
  margin: 22px auto 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.workflow {
  width: min(100%, 680px);
  display: flex;
  align-items: center;
  margin: 0 auto 34px;
}

.workflow-step {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #a5b1b5;
  flex: 0 0 auto;
}

.workflow-step > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d3dddf;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: white;
}

.workflow-step div {
  display: flex;
  flex-direction: column;
}

.workflow-step strong {
  font-size: 13px;
}

.workflow-step small {
  font-size: 10px;
  margin-top: 2px;
}

.workflow-step.active {
  color: var(--navy);
}

.workflow-step.active > span,
.workflow-step.complete > span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--navy);
}

.workflow-step.complete > span {
  font-size: 0;
}

.workflow-step.complete > span::after {
  content: "✓";
  font-size: 13px;
}

.workflow-line {
  height: 1px;
  background: #dce5e6;
  flex: 1;
  margin: 0 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(214, 227, 228, 0.95);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 30px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 24px;
}

.panel-heading > div:nth-child(2) {
  min-width: 0;
}

.panel-heading h2 {
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.6px;
  font-size: 21px;
  margin: 0 0 5px;
}

.panel-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--blue-pale);
  color: #3b6570;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 12px;
}

.security-chip,
.lock-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  background: var(--brand-pale);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 7px 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.security-chip svg,
.lock-chip svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.notice {
  border-radius: 11px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 23px;
}

.notice svg {
  width: 18px;
  min-width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notice.warning {
  background: var(--warning-bg);
  border: 1px solid #f2e4b8;
  color: var(--warning);
}

.notice.secure {
  background: var(--brand-pale);
  border: 1px solid #cbe7f5;
  color: var(--brand-dark);
}

.notice.error {
  background: var(--danger-bg);
  border: 1px solid #f1cfcd;
  color: var(--danger);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-grid {
  grid-template-columns: 1fr 1.35fr 0.65fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.field > span:first-child em {
  font-style: normal;
  font-weight: 500;
  color: #9aa7ab;
  margin-left: 4px;
}

.field input {
  width: 100%;
  height: 47px;
  border: 1px solid #d5e0e1;
  border-radius: 10px;
  outline: none;
  padding: 0 14px;
  color: var(--navy);
  background: #fbfdfd;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field select {
  width: 100%;
  height: 47px;
  border: 1px solid #d5e0e1;
  border-radius: 10px;
  outline: none;
  padding: 0 40px 0 14px;
  color: var(--navy);
  background: #fbfdfd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field select:focus {
  border-color: #75bde3;
  box-shadow: 0 0 0 3px rgba(32, 149, 210, 0.13);
  background: white;
}

.field select:disabled {
  cursor: not-allowed;
  color: #9aa7ab;
  background: #f2f6f6;
}

.event-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.event-option-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--navy);
  font-weight: 700;
}

.event-option-date {
  color: #839398;
  font-size: 10px;
  font-weight: 500;
}

.event-option-status {
  border-radius: 20px;
  padding: 5px 8px;
  color: #5e747b;
  background: #edf3f3;
  font-size: 9px;
  font-weight: 800;
  text-transform: capitalize;
}

.event-option-status[data-active="true"] {
  color: var(--brand-dark);
  background: var(--brand-pale);
}

@supports (appearance: base-select) {
  .field select,
  .field select::picker(select) {
    appearance: base-select;
  }

  .field select {
    padding: 0;
  }

  .field select > button {
    width: 100%;
    min-height: 45px;
    padding: 7px 12px 7px 14px;
    border: 0;
    color: inherit;
    background: transparent;
  }

  .field select::picker(select) {
    margin-top: 7px;
    border: 1px solid #d5e0e1;
    border-radius: 12px;
    background: white;
    box-shadow: 0 18px 44px rgba(7, 31, 46, 0.16);
    max-height: min(420px, 55vh);
  }

  .field select option {
    padding: 11px 13px;
    border-bottom: 1px solid #edf1f2;
    background: white;
  }

  .field select option:last-child {
    border-bottom: 0;
  }

  .field select option:hover,
  .field select option:focus {
    background: var(--brand-pale);
  }

  .field select option:checked {
    background: var(--brand-pale);
  }

  .field select option::checkmark {
    display: none;
  }

  .field select::picker-icon {
    margin-right: 13px;
    color: #70858b;
  }

  .field select:open::picker-icon {
    transform: rotate(180deg);
  }

  selectedcontent .event-option-status {
    display: none;
  }
}

.field input::placeholder {
  color: #a6b2b5;
}

.field input:focus {
  border-color: #75bde3;
  box-shadow: 0 0 0 3px rgba(32, 149, 210, 0.13);
  background: white;
}

.field small {
  font-size: 10px;
  line-height: 1.45;
  font-weight: 500;
  color: #88969b;
}

.input-action-wrap {
  display: block;
  position: relative;
}

.input-action-wrap input {
  padding-right: 48px;
}

.input-action,
.inline-button {
  position: absolute;
  border: 0;
  cursor: pointer;
}

.input-action {
  right: 5px;
  top: 5px;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #8d9da2;
  border-radius: 8px;
}

.input-action:hover {
  color: var(--navy);
  background: #eff5f5;
}

.input-action svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.inline-button {
  right: 5px;
  top: 5px;
  height: 37px;
  padding: 0 14px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  background: var(--brand);
}

.event-grid .input-action-wrap input {
  padding-right: 112px;
}

.number-input {
  position: relative;
}

.number-input b {
  position: absolute;
  right: 14px;
  top: 15px;
  color: #849499;
  font-size: 12px;
}

.number-input input {
  padding-right: 50px;
}

.advanced-settings {
  margin-top: 17px;
}

.advanced-settings summary {
  cursor: pointer;
  width: max-content;
  color: #658087;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
}

.advanced-settings .field {
  max-width: 600px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf1f2;
  padding-top: 21px;
  margin-top: 24px;
}

.form-footer > a,
footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #56767e;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.form-footer > a:hover,
footer a:hover {
  color: var(--brand-dark);
}

.form-footer > a svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.button {
  position: relative;
  min-height: 42px;
  border-radius: 9px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button.primary {
  color: var(--navy);
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(32, 149, 210, 0.22);
}

.button.primary:hover {
  background: #2fa6e3;
}

.button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.subtle {
  margin-left: auto;
  min-height: 36px;
  color: #56727a;
  background: #eff5f5;
}

.button.large {
  min-height: 48px;
  min-width: 180px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.button.is-loading {
  pointer-events: none;
}

.button.is-loading span,
.button.is-loading svg {
  visibility: hidden;
}

.button.is-loading::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.is-locked {
  opacity: 0.53;
  box-shadow: none;
}

.is-locked form {
  pointer-events: none;
}

.is-hidden {
  display: none !important;
}

.review-panel {
  padding-bottom: 0;
  overflow: hidden;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.summary-cards article {
  background: #f4f8f8;
  border-radius: 10px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-cards span {
  color: #849399;
  font-size: 10px;
  font-weight: 700;
}

.summary-cards strong {
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 19px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 11px;
}

th {
  background: #f5f9f9;
  color: #7c8d92;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 9px;
  padding: 12px 14px;
}

td {
  border-top: 1px solid #e9eeee;
  padding: 13px 14px;
  color: #4e6870;
}

td strong {
  color: var(--navy);
}

.duration-new {
  color: var(--brand-dark);
  font-weight: 800;
}

.pill {
  display: inline-flex;
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 800;
  background: var(--brand-pale);
  color: var(--brand-dark);
}

.pill.conflict {
  color: var(--danger);
  background: var(--danger-bg);
}

.apply-area {
  margin: 26px -30px 0;
  padding: 21px 30px;
  background: #f8fbfb;
  border-top: 1px solid #e7eeee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.confirm-check {
  cursor: pointer;
  color: #697d83;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.45;
}

.confirm-check input {
  position: absolute;
  opacity: 0;
}

.confirm-check span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid #cbd8da;
  border-radius: 5px;
  background: white;
}

.confirm-check input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
}

.confirm-check input:checked + span::after {
  content: "✓";
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.toast-region {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toast {
  width: min(380px, calc(100vw - 44px));
  background: var(--navy);
  color: white;
  border-radius: 11px;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 15px 35px rgba(7, 31, 46, 0.25);
  animation: toast-in 200ms ease-out;
}

.toast.error {
  background: #873d3d;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

footer {
  width: min(100% - 40px, 1000px);
  margin: 34px auto 0;
  padding: 24px 0 36px;
  border-top: 1px solid #dfe8e8;
  color: #94a1a5;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 720px) {
  .site-header {
    padding: 0 20px;
  }

  .header-meta {
    display: none;
  }

  main {
    width: min(100% - 24px, 1000px);
  }

  .hero {
    padding: 50px 0 34px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .workflow-step div,
  .workflow-line {
    display: none;
  }

  .workflow {
    justify-content: center;
    gap: 18px;
  }

  .panel {
    padding: 22px 18px;
  }

  .two-columns,
  .event-grid,
  .summary-cards {
    grid-template-columns: 1fr;
  }

  .security-chip,
  .lock-chip {
    display: none;
  }

  .form-footer,
  .apply-area {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button {
    order: -1;
  }

  .apply-area {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  footer {
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
