.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 18px 20px;
  background: #173f35;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand,
.scene-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 24px 'Newsreader', serif;
}

.brand>span,
.scene-brand>span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #b8d0c6;
  color: #f0b49f;
  font-size: 25px;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: #a9c1b7;
  font: 400 9px 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.role-label {
  margin: 48px 12px 10px;
  color: #93b0a5;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.sidebar nav {
  display: grid;
  gap: 4px;
}

.sidebar nav button,
.sidebar nav a {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c5d6cf;
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font-size: 14px;
  text-decoration: none;
}

.sidebar nav button:hover,
.sidebar nav button.active,
.sidebar nav a:hover,
.sidebar nav a.active {
  color: #fff;
  background: #28584b;
}

.sidebar nav svg {
  width: 18px;
}

.sidebar-user {
  margin-top: auto;
  padding: 16px 6px 0;
  border-top: 1px solid #386055;
  display: grid;
  grid-template-columns: 34px 1fr 30px;
  align-items: center;
  gap: 9px;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
}

.sidebar-user strong {
  font-size: 12px;
}

.sidebar-user small {
  margin-top: 2px;
  color: #9db7ad;
  font-size: 10px;
}

.sidebar .icon-button {
  color: #b7ccc4;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: #d8e6de;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}

.avatar.large {
  width: 54px;
  height: 54px;
  font-size: 15px;
}

main {
  min-width: 0;
}

.topbar {
  min-height: 92px;
  padding: 20px 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 249, .88);
}

.topbar p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
}

.topbar h1 {
  margin: 0;
  font: 600 30px 'Newsreader', serif;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.language-select span {
  text-transform: uppercase;
  letter-spacing: .7px;
}

.language-select select {
  min-width: 94px;
  padding: 7px 22px 7px 8px;
  font-size: 10px;
}

.secure {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #708079;
  font-size: 11px;
}

.secure svg {
  width: 15px;
}

.content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 34px 42px 60px;
}

.primary,
.secondary,
.done-button {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.primary {
  color: #fff;
  background: var(--coral);
  border: 1px solid var(--coral);
}

.primary:hover {
  background: #b95642;
}

.secondary {
  color: var(--green);
  background: #fff;
  border: 1px solid #cbd4cf;
}

.primary svg,
.secondary svg,
.done-button svg {
  width: 16px;
}

.icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--green);
  background: transparent;
  border: 0;
  text-decoration: none;
}

.icon-button svg {
  width: 17px;
}

.mobile-menu,
.mobile-close {
  display: none;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.panel-head {
  min-height: 82px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.form-panel h2 {
  margin: 0 0 4px;
  font: 600 21px 'Newsreader', serif;
}

.panel-head p,
.form-panel>p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.search {
  width: 235px;
  height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.search svg {
  width: 15px;
  color: #8a9690;
}

.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.customer-table {
  overflow-x: auto;
}

.table-row {
  width: 100%;
  min-width: 930px;
  min-height: 78px;
  padding: 12px 22px;
  display: grid;
  grid-template-columns: 1.5fr 1.25fr .75fr 1.1fr .9fr 25px;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eaede8;
  text-align: left;
}

button.table-row:hover {
  background: #f7f8f4;
}

.table-row>span strong,
.table-row>span small {
  display: block;
}

.table-row strong {
  font-size: 12px;
  font-weight: 600;
}

.table-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.table-heading {
  min-height: 38px;
  color: #7a8680;
  background: #f5f6f2;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.progress-cell>span {
  width: 95px;
  height: 5px;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  background: #e1e6e2;
}

.progress-cell i {
  height: 100%;
  display: block;
  background: var(--coral);
}

.back-link {
  margin-bottom: 14px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
}

.back-link svg {
  width: 15px;
}

.profile-strip {
  margin-bottom: 22px;
  padding: 19px 24px;
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) 3fr;
  gap: 25px;
  align-items: center;
  background: #e6eee7;
  border-left: 3px solid var(--green);
}

.profile-person {
  display: flex;
  align-items: center;
  gap: 13px;
}

.profile-person h2 {
  margin: 0 0 3px;
  font: 600 20px 'Newsreader', serif;
}

.profile-person p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.profile-strip dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.profile-strip dt {
  margin-bottom: 5px;
  color: #718079;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.profile-strip dd {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
}

.profile-strip dd input {
  width: 100%;
  min-width: 0;
  padding: 4px 5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd8ce;
  font: 600 10px 'DM Sans', sans-serif;
}

.profile-strip dd select {
  width: 100%;
  min-width: 0;
  padding: 4px 5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd8ce;
  font: 600 10px 'DM Sans', sans-serif;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.summary-card {
  min-height: 104px;
  padding: 19px;
  display: grid;
  grid-template-columns: 39px 1fr 20px;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
  text-decoration: none;
}

.summary-card>svg:first-child {
  width: 39px;
  height: 39px;
  padding: 10px;
  color: var(--green);
  background: var(--green-light);
}

.summary-card>svg:last-child {
  width: 16px;
  color: #9ba49f;
}

.summary-card small,
.summary-card strong {
  display: block;
}

.summary-card small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.summary-card strong {
  font-size: 12px;
}

.overview-wide {
  grid-column: 1 / -1;
}

.path-steps {
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(4, 28px 1fr);
  align-items: center;
  gap: 9px;
}

.path-steps span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #839088;
  background: #e5e9e5;
  font-size: 11px;
}

.path-steps span.done {
  color: #fff;
  background: var(--green);
}

.path-steps span.current {
  color: #fff;
  background: var(--coral);
}

.path-steps svg {
  width: 13px;
}

.path-steps b {
  font-size: 10px;
  font-weight: 500;
}

.inline-form {
  display: flex;
  gap: 8px;
}

input,
select {
  height: 40px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5dbd6;
  border-radius: 3px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px #dce9df;
}

.inline-form input {
  width: 210px;
  font-size: 11px;
}

.document-section {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.document-section h3 {
  margin: 0;
  padding: 15px 24px 10px;
  color: var(--green);
  font: 600 18px 'Newsreader', serif;
}

.empty-document-section {
  margin: 0;
  padding: 0 24px 18px;
  color: var(--muted);
  font-size: 11px;
}

.document-row {
  min-height: 78px;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 40px 1fr 75px auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #eaede8;
}

.document-row.missing {
  background: #fff4f2;
  border-left: 3px solid #c65345;
}

.document-row.uploaded,
.document-row.approved {
  background: #f1f8f2;
  border-left: 3px solid var(--green);
}

.document-row.customer-approvable {
  cursor: pointer;
}

.document-row.customer-approvable:hover,
.document-row.customer-approvable:focus-visible {
  background: #e5f1e7;
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.file-icon {
  width: 36px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #8a9690;
  background: #ecefeb;
}

.file-icon.missing {
  color: #c65345;
  background: #f7e3df;
}

.file-icon svg {
  width: 17px;
}

.file-icon.uploaded {
  color: var(--green);
  background: var(--green-light);
}

.file-icon.approved {
  color: var(--green);
  background: var(--green-light);
}

.document-name strong,
.document-name small {
  display: block;
}

.document-name strong {
  font-size: 12px;
}

.document-name small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.status.missing {
  color: #8b7367;
}

.status.missing svg {
  width: 14px;
  height: 14px;
  color: #c65345;
  stroke-width: 3;
}

.status.uploaded svg,
.status.approved svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  stroke-width: 3;
}

.status.uploaded {
  color: var(--green);
}

.status.approved {
  color: var(--green);
}

.document-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.flight-details {
  grid-column: 2 / -1;
  padding: 14px 0 2px;
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr)) auto;
  gap: 8px;
  border-top: 1px solid #f0d8d3;
}

.flight-details label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.flight-details input {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  font-size: 10px;
}

.flight-details button {
  align-self: end;
  min-height: 34px;
  white-space: nowrap;
}

.hotel-details {
  grid-column: 2 / -1;
  padding: 14px 0 2px;
  display: flex;
  align-items: end;
  gap: 8px;
  border-top: 1px solid #f0d8d3;
}

.hotel-details label {
  max-width: 280px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.hotel-details input {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  font-size: 10px;
}

.hotel-details button {
  min-height: 34px;
  white-space: nowrap;
}

.status-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.status-toggle.missing {
  color: #c65345;
  border: 1px solid #e2b8b0;
}

.status-toggle.uploaded,
.status-toggle.approved {
  color: var(--green);
  border: 1px solid #cad4cf;
}

.status-toggle svg {
  width: 17px;
}

.delete-document {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: #c65345;
  background: #f7e3df;
  border: 1px solid #e2b8b0;
  border-radius: 4px;
  cursor: pointer;
}

.delete-document:hover {
  background: #f7e3df;
  border-color: #e2b8b0;
}

.delete-document svg {
  width: 16px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, .75fr);
  gap: 20px;
  align-items: start;
}

.timeline {
  padding: 6px 24px 24px;
}

.timeline-day {
  padding: 22px 0 10px;
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 18px;
  border-bottom: 1px solid #e7eae6;
}

.date-block {
  text-align: center;
}

.date-block strong,
.date-block span {
  display: block;
}

.date-block strong {
  font: 600 27px 'Newsreader', serif;
}

.date-block span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.timeline-item {
  min-height: 59px;
  display: grid;
  grid-template-columns: 74px 12px 1fr;
  gap: 10px;
  align-items: start;
}

.timeline-item time {
  padding-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.timeline-item>span {
  position: relative;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border: 2px solid var(--coral);
  border-radius: 50%;
}

.timeline-item>span::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 49px;
  top: 8px;
  left: 2px;
  background: #d9ddd9;
}

.timeline-item strong,
.timeline-item small {
  display: block;
}

.timeline-item strong {
  font-size: 12px;
}

.timeline-item small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}


.calendar-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.calendar-controls button {
  padding: 8px 11px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}

.calendar-controls button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.calendar-period {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font: 600 18px 'Newsreader', serif;
}

.calendar-grid {
  padding: 0 24px 24px;
  display: grid;
  gap: 1px;
  background: var(--line);
}

.calendar-grid.month {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-grid.week {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  overflow-x: auto;
}

.calendar-grid.day {
  grid-template-columns: minmax(0, 1fr);
}

.calendar-weekday {
  padding: 9px 10px;
  color: var(--muted);
  background: #f4f6f2;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 112px;
  padding: 10px;
  background: var(--paper);
}

.calendar-grid.week .calendar-day,
.calendar-grid.day .calendar-day {
  min-height: 260px;
}

.calendar-day>strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 11px;
}

.calendar-appointment {
  margin-top: 5px;
  padding: 6px 7px;
  background: #e5eee7;
  border-left: 2px solid var(--green);
  font-size: 9px;
}

.calendar-appointment time,
.calendar-appointment b,
.calendar-appointment small {
  display: block;
}

.calendar-appointment time {
  color: var(--coral);
  font-size: 8px;
  font-weight: 600;
}

.calendar-appointment b {
  margin-top: 3px;
  line-height: 1.3;
}

.calendar-appointment small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.form-panel {
  padding: 24px;
}

.form-panel form,
.login-box form {
  margin-top: 22px;
  display: grid;
  gap: 15px;
}

label {
  display: grid;
  gap: 6px;
  color: #53605a;
  font-size: 10px;
  font-weight: 600;
}

.form-panel input,
.form-panel select {
  width: 100%;
  font-size: 11px;
}

.form-panel .primary {
  margin-top: 4px;
}

.price-list {
  padding: 6px 24px;
}

.price-list>div {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  align-items: center;
  border-bottom: 1px solid #e6e9e5;
  font-size: 12px;
}

.service-edit {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px auto 34px;
  align-items: center;
  gap: 8px;
}

.service-edit input {
  width: 100%;
  padding: 8px;
  font-size: 11px;
}

.service-edit button {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.service-edit .delete-service {
  width: 34px;
  padding: 0;
  color: #c65345;
  background: transparent;
  border: 1px solid transparent;
}

.service-edit .delete-service:hover {
  background: #f7e3df;
  border-color: #e2b8b0;
}

.delete-service svg {
  width: 16px;
}

.price-list strong {
  text-align: right;
}

.price-list small {
  color: var(--muted);
  text-align: right;
}

.price-total {
  margin: 12px 24px 24px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  background: #e5eee7;
}

.price-total>span {
  font: 600 17px 'Newsreader', serif;
}

.price-total strong {
  text-align: right;
  font-size: 20px;
}

.price-total small {
  margin-top: 5px;
  display: block;
  color: var(--muted);
  font: 400 9px 'DM Sans', sans-serif;
}

.balance-list {
  margin: 0 24px 24px;
  border-top: 1px solid var(--line);
}

.balance-list>div {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}

.balance-list strong {
  color: var(--ink);
  font-size: 13px;
}

.balance-list strong small,
.service-edit small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.balance-list>div:last-child strong {
  color: var(--coral);
  font-size: 19px;
}

.balance-list>div:last-child span {
  align-self: center;
  font-size: 14px;
  font-weight: 600;
}

.balance-list .overpayment strong {
  color: var(--green);
}

.balance-list .overpayment span {
  color: var(--green);
  font-weight: 600;
}

.quote-note {
  padding: 30px;
  color: #fff;
  background: var(--green);
}

.quote-note>svg {
  color: #efaa95;
}

.quote-note h3 {
  margin: 45px 0 10px;
  color: #fff;
  font: 600 23px 'Newsreader', serif;
}

.quote-note p {
  margin: 0;
  color: #bfd0c9;
  font-size: 11px;
  line-height: 1.7;
}

.section-intro {
  margin-bottom: 22px;
}

.section-intro h2 {
  margin: 5px 0 4px;
  font: 600 28px 'Newsreader', serif;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.eyebrow {
  color: var(--coral);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-grid article {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.guide-grid img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}

.hotel-grid img {
  object-position: center top;
}

.guide-grid article>div {
  padding: 18px;
}

.guide-grid article span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.guide-grid h3 {
  margin: 7px 0 6px;
  font: 600 20px 'Newsreader', serif;
}

.guide-grid p {
  min-height: 32px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.guide-grid a {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.guide-grid a svg {
  width: 14px;
}

.guide-subsection {
  margin-top: 42px;
}

.guide-subsection-head {
  margin-bottom: 22px;
}

.guide-subsection-head h2 {
  margin: 5px 0 0;
  font: 600 25px 'Newsreader', serif;
}

.itinerary {
  margin-top: 42px;
  padding: 28px 0 4px;
  border-top: 1px solid var(--line);
}

.itinerary-head h2 {
  margin: 5px 0 4px;
  font: 600 25px 'Newsreader', serif;
}

.itinerary-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.itinerary-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.itinerary-grid article {
  overflow: hidden;
  min-height: 190px;
  padding: 0 18px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.itinerary-grid img {
  width: calc(100% + 36px);
  height: 210px;
  margin: 0 -18px 16px;
  display: block;
  object-fit: cover;
}

.itinerary-grid article>span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.itinerary-grid h3 {
  margin: 8px 0 12px;
  font: 600 21px 'Newsreader', serif;
}

.itinerary-grid ul {
  margin: 0;
  padding-left: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 29, 25, .64);
}

.modal {
  width: min(660px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 27px;
  background: var(--paper);
}

.modal-head {
  display: flex;
  justify-content: space-between;
}

.modal-head h2 {
  margin: 5px 0 0;
  font: 600 25px 'Newsreader', serif;
}

.form-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid input,
.form-grid select {
  width: 100%;
}

.modal-actions {
  margin-top: 25px;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  background: #fffef9;
}

.login-scene {
  position: relative;
  min-height: 100vh;
  padding: 40px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 47, 39, .16), rgba(17, 47, 39, .9)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=85') center/cover;
}

.scene-brand>span {
  color: #fff;
  border-color: rgba(255, 255, 255, .65);
}

.scene-copy {
  max-width: 550px;
  padding-bottom: 6vh;
}

.scene-copy p {
  color: #efb09b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.7px;
}

.scene-copy h1 {
  margin: 15px 0 17px;
  color: #fff;
  font: 500 55px/1.02 'Newsreader', serif;
}

.scene-copy span {
  max-width: 440px;
  display: block;
  color: #d5e0dc;
  font-size: 13px;
  line-height: 1.7;
}

.scene-credit {
  font-size: 10px;
  letter-spacing: .8px;
}

.login-panel {
  padding: 35px;
  display: grid;
  place-items: center;
}

.login-box {
  width: min(390px, 100%);
}

.login-box h2 {
  margin: 8px 0 8px;
  font: 600 34px 'Newsreader', serif;
}

.login-box>p {
  color: var(--muted);
  font-size: 12px;
}

.role-switch {
  margin: 30px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.role-switch button {
  height: 40px;
  color: #7b8681;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  font-weight: 600;
}

.role-switch button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.login-box input {
  width: 100%;
}

.login-submit {
  width: 100%;
  margin-top: 5px;
}

.login-submit svg {
  margin-left: auto;
}

.form-error {
  padding: 9px;
  color: #9b3e30;
  background: #f7e3df;
  font-size: 10px;
}

.demo-note {
  margin-top: 21px;
  color: #89938e;
  font-size: 9px;
  text-align: center;
}

@media (max-width: 1180px) and (min-width: 981px) {
  .app-shell {
    grid-template-columns: 220px 1fr;
  }

  .content {
    padding: 30px 28px 50px;
  }

  .topbar {
    padding: 22px 28px;
  }

  .profile-strip {
    grid-template-columns: 200px 1fr;
    gap: 18px;
  }

  .profile-strip dl {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 14px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -270px;
    width: 250px;
    transition: left .2s ease;
    box-shadow: 10px 0 40px rgba(0, 0, 0, .15);
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-close {
    position: absolute;
    top: 31px;
    right: 12px;
    display: grid;
  }

  .mobile-menu {
    display: grid;
  }

  .topbar {
    padding: 17px 24px;
  }

  .content {
    padding: 28px 24px 50px;
  }

  .profile-strip {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .login-page {
    grid-template-columns: .85fr 1fr;
  }

  .scene-copy h1 {
    font-size: 42px;
  }

  .login-scene {
    padding: 34px;
  }
}

@media (max-width: 700px) {
  .topbar {
    min-height: 75px;
    padding: 12px 16px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .secure {
    display: none;
  }

  .topbar .primary {
    width: 38px;
    padding: 0;
    font-size: 0;
  }

  .content {
    padding: 20px 14px 42px;
  }

  .panel-head {
    padding: 17px;
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-controls {
    flex-wrap: wrap;
  }

  .search {
    width: 100%;
  }

  .profile-strip {
    padding: 16px;
  }

  .profile-strip dl {
    grid-template-columns: 1fr 1fr;
  }

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

  .overview-wide {
    grid-column: auto;
  }

  .path-steps {
    grid-template-columns: 28px 1fr;
  }

  .inline-form {
    width: 100%;
    flex-direction: column;
  }

  .inline-form input {
    width: 100%;
  }

  .document-row {
    padding: 14px 16px;
    grid-template-columns: 36px 1fr 65px;
  }

  .document-actions {
    grid-column: 2 / -1;
  }

  .flight-details {
    grid-template-columns: 1fr 1fr;
  }

  .flight-details button {
    grid-column: 1 / -1;
  }

  .hotel-details {
    align-items: stretch;
    flex-direction: column;
  }

  .hotel-details label {
    max-width: none;
  }

  .status-toggle {
    flex: 1;
  }

  .timeline {
    padding: 5px 16px 18px;
  }

  .timeline-day {
    grid-template-columns: 42px 1fr;
    gap: 10px;
  }

  .timeline-item {
    grid-template-columns: 64px 10px 1fr;
  }

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

  .guide-grid img {
    height: 230px;
  }

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

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

  .login-page {
    display: block;
    background: linear-gradient(rgba(19, 63, 52, .8), rgba(19, 63, 52, .92)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1000&q=80') center/cover fixed;
  }

  .login-scene {
    min-height: 190px;
    padding: 25px;
    background: transparent;
  }

  .scene-copy {
    display: none;
  }

  .login-panel {
    min-height: calc(100vh - 190px);
    padding: 25px 18px 40px;
    background: var(--paper);
    border-radius: 14px 14px 0 0;
  }

  .login-box h2 {
    font-size: 30px;
  }

  .price-list {
    padding: 6px 16px;
  }

  .price-list>div {
    grid-template-columns: 1fr 65px 65px;
  }

  .price-total {
    margin: 12px 16px 18px;
  }
}