:root {
  color-scheme: light dark;
}

[data-theme="light"] {
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="light"], :root:not([data-theme]) {
  --page-text-color: #000000;
  --page-back-color: #ffffff;
  --dialog-text-color: #000000;
  --dialog-back-color: #ffffff;
  --header-text-color: #ffffff;
  --header-left-color: #7a9bd6;
  --header-right-color: #9abbe0;
  --footer-top-border: #bbbbbb;
  --dialog-shadow-color: #00000066;
  --page-link-color: #1e59e5;
  --page-link-underline: #1e59e580;
  --header-home-color: #ffffff;
  --active-nav-link-color: #ffe946;
  --button-text-color: #ffffff;
  --button-back-color: #3b82f6;
  --catalog-link-color: #1e59e5;
  --catalog-link-hover: #0a53ff;
  --catalog-link-under: #1e59e599;
  --accent-color: #1e59e5;
  --sidebar-bg-color: #fffcc7;
  --sidebar-link-color: #000000;
  --sidebar-link-underline: #00000060;
  --assistant-user-color: #e0e0e0;
  --alt-row-color: #f3f3f3;
  --favorite-off-color: #8a8a8a;
  --favorite-on-color: #000000;
  --loading-color: #000000;
  --pop-color: #000000;
  --picker-back-color: #ffffff;
  --picker-focused-back-color: #eeeeee;
  --picker-flag-back-color: #4f87e0;
  --will-attend-color: #6dff61;
  --maybe-attend-color: #ffea5b;
  --cant-attend-color: #bd1b1b;
  --did-attend-color: #00dcc5;
}

[data-theme="dark"], :root:not([data-theme]) {
@media (prefers-color-scheme: dark) {
  --page-text-color: #a7b0b3;
  --page-back-color: #0a153d;
  --dialog-text-color: #a7b0b3;
  --dialog-back-color: #000000;
  --header-text-color: #ffffff;
  --header-left-color: #0a153d;
  --header-right-color: #0a153d;
  --footer-top-border: inherit;
  --dialog-shadow-color: #4bc3ff18;
  --page-link-color: #5a96f6;
  --page-link-underline: #5a96f6b0;
  --header-home-color: #d5d5d5;
  --active-nav-link-color: #ffe946;
  --button-text-color: #ffffff;
  --button-back-color: #3b82f6;
  --catalog-link-color: #d5d5d5;
  --catalog-link-hover: #ffffff;
  --catalog-link-under: #a4b9daaa;
  --accent-color: #1e59e5;
  --sidebar-bg-color: #0a153d;
  --sidebar-link-color: #a7b0b3;
  --sidebar-link-underline: #a7b0b3b0;
  --assistant-user-color: #273f78;
  --alt-row-color: #0d1c53;
  --favorite-off-color: #a7b0b3;
  --favorite-on-color:  #ffffff;
  --loading-color: #e2e2e2;
  --pop-color: #e2e2e2;
  --picker-back-color: #222222;
  --picker-focused-back-color: #444444;
  --picker-flag-back-color: #0a153d;
  --will-attend-color: #2bd51d;
  --maybe-attend-color: #ffe637;
  --cant-attend-color: #bd1b1b;
  --did-attend-color: #00dcc5;
}}

@keyframes opacity-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes bounce-in {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(1.05); }
  80% { transform: scale(1.15); }
  100% { transform: scale(1.1); }
}

@keyframes spin-around {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

html {
  color: var(--page-text-color);
  background-color: var(--page-back-color);
  margin: 0;
}

body {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 1.2rem;
  margin: 0;
}

header {
  color: var(--header-text-color);
  background: linear-gradient(to right, var(--header-left-color), var(--header-right-color));
}

footer {
  border-top: 1px solid var(--footer-top-border);
  margin-bottom: 100px;
}

dialog {
  color: var(--dialog-text-color);
  background: var(--dialog-back-color);
  border: none;
  filter: drop-shadow(5px 5px 25px var(--dialog-shadow-color));
}

dialog {
  width: min(100%, 900px);
  height: min(100%, 700px);
  max-width:  inherit;
  max-height: inherit;
  border-radius: 20px;
  margin-top: 50px;
  padding: 0;
}

dialog::backdrop {
  background: rgb(0 0 0 / 15%);
}

body:has(dialog[open]) {
  overflow: clip;
}

img, svg, video, canvas {
  display: inline-block;
}

h1, h2, h3 {
  color: var(--pop-color);
}

ul {
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;
}

ol {
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;
}

pre {
  font-size: 0.9rem;
}

a:link,
a:visited,
a:hover {
  color: var(--page-link-color);
  text-decoration-color:  var(--page-link-underline);
  cursor: pointer; /* for icons */
}

main.home {
  padding: 10px 10px;
  margin: 0 auto;
}

main.info {
  padding: 10px 10px;
  margin: 0 auto;
  max-width: 800px;
}

main.account {
  margin: 45px auto;
}

main.favorites,
main.manage,
main.search,
main.ask,
main.error
{
  margin: 45px 45px;
  padding-bottom: 100px;

  & h1 {
    margin: 0.25rem 0;
    line-height: 1.05;
  }

  & > div {
    margin: 5px 0;
  }

}

main.error pre {
  white-space: wrap;
}

.big-button {
  display: inline-block;
  font-size: 1.3rem;
  width: 160px;
  padding: 12px 16px;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 500;
  background: #3b82f6;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.big-button:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(59 130 246 / 20%);
}

.big-button.clear {
  color: #3b82f6;
  background: inherit;
}

.big-button.clear:hover {
  background: inherit;
}

.big-button:focus {
  box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
}

.big-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgb(59 130 246 / 20%);
}

.big-button:disabled {
  background: #9ca3af;
  border-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

a.big-button:link,
a.big-button:visited,
a.big-button:hover {
  color: inherit;
  text-decoration: none;
}

header .layout
{
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  & .left {
    margin-left: 20px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 15px;
  }

  & a.home-link {
    color: var(--header-home-color);
  }

  & a.active {
    color: var(--active-nav-link-color);
  }

  & a.home-button {
    color: var(--button-text-color);
    background-color: var(--button-back-color);
    border-radius: 5px;
    font-size: 1.5rem;
    padding: 9px;
  }

  & a.home-button svg {
    display: block;
  }

  & a.home-name {
    font-size: 1.85rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    padding-top: 5px;
    align-self: center;
    -webkit-font-smoothing: antialiased;
  }

  & .buttons {
    margin-right: 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  & .buttons .big-button {
    font-size: 1.2rem;
    width: inherit;
    padding: 8px 12px;
  }
}

footer
{
  font-size: 1.0rem;
  padding: 20px 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  & > div a {
    white-space: nowrap;
  }

  & > .layout > div {
    margin: 2px 0;
  }
}

a.not-available {
  opacity: 0.5;
}

.result-message {
  margin: 20px 20px;
  color: var(--accent-color);
}

.no-results-hint {
  margin: 20px 20px;
  max-width: 550px;
}

.results-loading {
  display: inline-flex;
  line-height: 1;
  margin: 0 10px;
  font-size: 2.5rem;
  color: var(--loading-color);
  & > svg {
    /* padding: 0.18em 0.05em 0.05em 0.18em; */
    /* animation: spin-around 1.1s linear infinite; */
    animation: opacity-pulse 1.1s infinite ease-in-out;
  }
}

.logging-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2rem;
}

.planner-layout
{
  display: flex;
  flex-direction: row;
  min-height: 60vh;

  & .sidebar {
    flex-basis: 25%;
    min-width: 270px;
    display: flex;
    flex-direction: column;
  }

  & .workarea {
    width: 100%;
  }
}

.planner-sidebar
{
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--sidebar-bg-color);

  & .items {
    margin: 10px 10px 10px 0px;
    row-gap: 10px;
  }

  & .bullet {
    font-size: 0.7rem;
    padding: 5px 6px 0 6px;
    opacity: 0.5;
  }

  & .item-link {
    font-size: 1.15rem;
    color: var(--sidebar-link-color);
    text-decoration-color: var(--sidebar-link-underline);
  }

  & .remove {
    font-size: 1.0rem;
    padding: 0 5px;
    margin-left: 3px;
  }

  & .similar {
    margin-left: 10px;
  }

  & .similar .fa-magnifying-glass {
    font-size: 1.15rem;
    padding: 0;
  }

  & .similar .fa-sparkle {
    font-size: .7rem;
    padding: 0;
    position: relative;
    left: -1px;
    top: -6px;
  }

}

.planner-section
{
  margin: 20px 15px;

  & h1 {
    font-size: 2rem;
    margin: 1.75rem 0;
    line-height: 1.05;
  }
}

.planner-form
{
  margin: 20px 15px;
  display: flex;
  flex-direction: column;

  & h2 {
    margin: 20px 0 10px 0;
  }

  & .keyword-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
  }
}

.search-history
{
  display: flex;
  flex-direction: column;
  row-gap: 2px;

  & h3 {
    margin-top: 0;
    margin-bottom: 3px;
    font-size: 1.4rem;
    font-weight: 500;
  }

  & .fa-solid {
    font-size: 0.9rem;
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 2px;
  }

}

.section-select
{
  flex: 1;
  font-size: 1.25rem;
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: 5px;
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  row-gap: 8px;
  max-width: 700px;
}

.planner-menu
{
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
  margin: 15px 25px 45px 25px;
}

.category-menu
{
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.8fr;
  grid-template-rows: auto auto;
  column-gap: 30px;
  width: fit-content;

  & .category > div {
    margin: 2px 0;
  }

  & .fringe {
    grid-column: 1;
    grid-row: 1 / -1; /* spans all rows */
  }

  & .international {
    grid-column: 2;
    grid-row: 1;
  }

  & .book {
    grid-column: 3;
    grid-row: 1;
  }

  & .others {
    grid-column: 2 / 4; /* spans columns 2 and 3 */
    grid-row: 2;
  }

  & h3 {
    margin-top: 0;
    margin-bottom: 3px;
    font-size: 1.4rem;
    font-weight: 500;
  }

  & .title {
    margin-bottom: 3px;
    font-weight: 500;
  }

  & a {
    white-space: nowrap;
  }

}

.assistant-form
{
  margin: 20px 15px;
  display: flex;
  flex-direction: column;

  & h2 {
    margin: 20px 0 10px 0;
  }

  & .input-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
  }

}

.planner-input
{
  flex: 1;

  & label {
    display: inline-block;
    margin-left: 4px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
  }

  .text-input {
    font-family: inherit;
    font-size: 1.47rem;
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    color: #000000;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
  }

  .text-input:hover {
    border-color: #9ca3af;
  }

  .text-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
  }

  .text-input::placeholder {
    color: #9197a2;
  }

  .textarea-input {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
  }

}

.planner-dashboard
{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 20px;
  margin: 0 auto 60px auto;

  & h1, h2, h3 {
    margin: 0 0;
    width: fit-content;
  }

  & h2 {
    font-size: 2rem;
  }

  & h3 {
    font-size: 1.75rem;
  }

  & .listings .fa-solid {
    margin-left: 4px;
    font-size: 1.1rem;
  }

  & .listings {
    margin: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
  }

  & .listings .flag {
    background-color: var(--picker-flag-back-color);
    font-size: 1rem;
    padding: 2px 4px;
    border-radius: 4px;
  }

  & .listings .will-attend {
    color: var(--will-attend-color);
  }

  & .listings .maybe-attend {
    color: var(--maybe-attend-color);
  }

  & .listings .cant-attend {
    color: var(--cant-attend-color);
  }

  & .listings .did-attend {
    color: var(--did-attend-color);
  }
}

.planner-upcoming
{
  flex-basis: 600px;
  flex-grow: 0.5;
}

.planner-help
{
  flex-basis: 600px;

  & .step-heading {
    display: inline-flex;
    flex-direction: row;
    margin-top: 20px;
    margin-bottom: 5px;
  }

  & p {
    margin: 0.5rem 0;
    line-height: 1.25;
  }

  .step-button {
    display: inline-block;
    font-size: 1.1rem;
    margin-left: 20px;
    padding: 4px 10px;
    border: 2px solid #3b82f6;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 500;
    background: #3b82f6;
    color: white;
    box-sizing: border-box;
    text-decoration: none;
  }
}

.planner-sheet
{
  min-height: 60vh;
}

.planner-grid
{
  padding-top: 15px;
  padding-bottom: 30px;

  overflow: scroll;
  overscroll-behavior-x: contain;

  & > div {
    text-align: center;
  }

  & > .month {
    font-size: 1.0rem;
  }

  & > .daynum {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
  }

  & > .weekday {
    font-size: 1.0rem;
    margin-bottom: 10px;
  }

  & > .item-title {
    font-size: 1.0rem;
    line-height: 1.0;
    text-align: left;
    padding: 3px 10px;
    min-width: 180px;
  }

  & > .item-title .item-link {
    color: inherit;
    text-decoration: none;
  }

  & > .item-title .item-link:hover {
    color: inherit;
    text-decoration: underline;
  }

  & > .time {
    font-size: 1.1rem;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    padding: 5px 5px;
  }

  & > .time a {
    text-decoration: underline;
  }

  & > .time a:hover {
    text-decoration: underline;
  }

  & > .time a .fa-solid {
    font-size: 0.9rem;
    color: #000000;
  }

  & > .time a .fa-solid.fa-ticket {
    color: #10b300;
  }

  & > .time a .fa-solid.fa-pencil {
    color: #ff7f00;
  }

  & > .time a .fa-solid.fa-pencil-slash {
    color: #9f9f9f;
  }

  & > .time a .fa-solid.fa-circle-check {
    color: #18a000;
  }

  & > .time a .fa-solid.fa-circle-plus {
    color: #ff7f00;
  }

  & > .alt {
    background-color: var(--alt-row-color);
  }

  & > .end {
    min-width: 15px;
  }

}

.planner-assistant
{
  margin: 60px 15px;

  & .assistant-form {
    max-width: 1000px;
  }

}

.planner-checkbox
{
  display: flex;
  cursor: pointer;
  align-items: center;

  & input[type="checkbox"] {
    display: none;
  }

  & .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    background: white;
  }

  &.rounded .checkmark {
    border-radius: 50%;
  }

  &:hover .checkmark {
    border-color: #3b82f6;
    transform: scale(1.05);
  }

  & .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
  }

  & input:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
  }

  & input:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
  }
}

.section-results
{
  margin-top: 50px;
  margin-right: 15px;
  margin-bottom: 50px;
  margin-left: 15px;
}

.catalog
{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
  gap: 25px;
}

.catalog .item
{
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;

  & h3 {
    font-size: 1.17rem;
    font-weight: 500;
    line-height: 1.1;
    margin: 2px 0;
  }

  & .titles {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  & div.favorite-toggle {
    display: inline-flex;
    font-size: 1.55rem;
    margin-left: 5px;
    padding: 3px 7px;
  }

  & a {
    color: var(--catalog-link-color);
    text-decoration-color: var(--catalog-link-under);
    transition: color 0.25s ease;
  }

  & a:hover {
    color: var(--catalog-link-hover);
  }

  & a.favorite {
    color: var(--favorite-off-color);
    transition: all 0.2s ease;
    transform-origin: center;
  }

  & a.favorite:hover {
    color: var(--favorite-on-color);
    transform: scale(1.07);
  }

  & a.favorite.favorite-on {
    color: var(--favorite-on-color);
    animation: bounce-in 0.4s ease-out;
  }

  & .listings {
    font-size: 1.1rem;
  }

  & img {
    display: block;
    width: 100%;
    border-radius: 5px;
  }

  & .pic {
    transition: transform 0.1s ease;
  }

  & .info {
    margin-top: 10px;
    margin-bottom: 15px;
  }

  & .pic:hover {
    transform: scale(1.04);
    transform-origin: center;
    transition: transform 0.2s ease-out;
  }

  & .overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }

  & .overlay .ribbon {
    display: none;
  }

}

main.item
{
  max-width: 1000px;
  margin: 40px auto 0 auto;

  & .item-details {
    padding: 5px 0px 20px 10px;
  }

  & .item-side {
    margin: 0px 20px 10px 0px;
  }
}

main.item, .item-card
{
  & .item-splitter {
    display: flex;
    flex-direction: row;
  }

  & .item-side {
    flex: 1;
    margin: 0px 20px 80px 30px;
  }

  & .item-side .listings {
    margin: 20px 0;
  }

  & .item-side .fill img {
    width: 100%;
  }

  & .item-topper .fill img {
    width: 100%;
  }

  & .section-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  & h1 {
    margin: 0.25rem 0;
    line-height: 1.05;
  }

  & .item-artist {
    font-size: 1.3rem;
    font-weight: 700;
  }

  & .item-titles {
    margin-right: 10px;
  }

  & .item-description {
    line-height: 1.3;
    margin-right: 15px;
  }

  & .item-details {
    flex: 1;
    padding: 5px 20px 20px 10px;
  }

  & .item-topper {
    display: none;
  }

  & .item-video-below  {
    display: none;
  }

  & .listing-free {
    display: none;
  }

  & .listing-message {
    font-size: 0.95rem;
    margin: 1px 0;
    color: var(--pop-color);
  }

  & .listing-when {
    display: flex;
    flex-direction: row;
    column-gap: 12px;
    font-size: 1.2rem;
    margin: 0 0 10px 0;
  }

  & .listing-when .start-time {
    order: 1;
  }

  & .listing-when .start-date {
    order: 2;
  }

  & .listing-when .pricing {
    order: 3;
    font-size: 1.08rem;
  }

  & .listing-when .flag-icons {
    order: 4;
  }

  & .listing-place {
    font-size: 1.1rem;
    margin: 20px 0;
  }

  & a.ticket {
    display: inline-block;
    font-family: 'Helvetica','Arial',sans-serif;
    font-size: 1.0rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    color: #ffffff;
    background-color: #1e59e5;
    text-decoration: none;
    cursor: pointer;
    border: none;
  }
}

.item-card
{
  & > .card-nav {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 2px 2px;
    background: var(--dialog-back-color);
    font-size: 2.5rem;
  }

  & .card-nav .favorite-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  & .card-nav a {
    color: inherit;
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    outline-width: 0.5px;
  }

  & .card-nav .modal-close {
    margin-right: 1rem;
  }

  & .card-nav .favorite {
    font-size: 2.1rem;
  }

  & .card-nav .count {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    min-width: 1rem;
  }
}


.conversation
{
  & .message {
    padding: 10px;
    margin: 2px 0;
    width: fit-content;
  }

  & .message .block {
  }

  & .message.user {
    background-color: var(--assistant-user-color);
    border-radius: 5px;
  }

  & .message p {
    margin: 7px;
    line-height: 1.3;
  }
}

.conversation-output
{
  max-width: 780px;
  margin: 0 auto;
}

.conversation-input
{
  display: flex;
  flex-direction: row;
}

.conversation-input > form
{
  margin: 15px auto;
  flex-basis: 780px;
  flex-shrink: 1;

  & .buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
    margin-top: 35px;
  }

  & .buttons > div {
    display: flex;
    flex-direction: row;
    gap: 15px;
  }

  & input[type="text"] {
      font-family: inherit;
      font-size: 1.47rem;
      width: 100%;
      padding: 10px 12px;
      border: 2px solid #d1d5db;
      border-radius: 8px;
      color: #000000;
      background: #ffffff;
      transition: all 0.3s ease;
      outline: none;
      box-sizing: border-box;
  }

  & input[type="text"]:hover {
    border-color: #9ca3af;
  }

  & input[type="text"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
  }

  & input[type="text"]::placeholder {
    color: #9ca3af;
  }

  & input.waiting {
    animation: opacity-pulse 1.5s infinite ease-in-out;
  }
}

.planner-card
{
  & > .card-nav {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 2px 2px;
    background: var(--dialog-back-color);
    font-size: 2.5rem;
  }

  & .card-nav a {
    color: inherit;
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    outline-width: 0.5px;
  }

  & .splitter {
    display: flex;
    flex-direction: row;
    padding-bottom: 200px;
  }

  & .info-column {
    flex-basis: 220px;
    margin-right: 10px;
  }

  & .info-column .image {
    margin: 5px 15px 5px 14px;
  }

  & .info-column img {
    width: 100%;
    border-radius: 8px;
  }

  & .info-column .listing-place {
    font-size: 1.0rem;
    margin: 0 5px 0 15px;
  }

  & .listings-column {
    flex: 1;
  }

  & .item-details {
    margin: 8px 15px 15px 15px;
  }

  & .section-title {
    font-size: 1.0rem;
    margin-bottom: 10px;
  }

  & .item-artist {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  & .item-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  & .listings {
    column-gap: 15px;
    row-gap: 7px;
    margin-right: 20px;
    align-items: center;
    font-size: 1.2rem;
  }

  & .start-date.highlight {
    color: var(--accent-color);
  }

  & .start-time.highlight {
    color: var(--accent-color);
  }

  & .listings .pricing {
    font-size: 1.1rem;
  }

  & .picker-listing {
    margin-left: 12px;
  }

}

.color-mode-chooser {
  font-size: 2rem;
  margin-right: 1.5rem;
}

.color-mode-chooser.auto {
  font-size: 1.75rem;
  padding: 3px;
}

.account-panel
{
  color: var(--header-text-color);
  margin: 0 auto;
  max-width: 340px;

  & .status {
    margin: 25px 0;
  }

  & .options {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
  }

  & .options .big-button {
    width: inherit;
    text-align: center;
  }
}

.picker-listing__control {
  border-color: inherit !important;
  background-color: inherit !important;
}
.picker-listing__menu {
  background-color: var(--picker-back-color) !important;
}
.picker-listing__option {
}
.picker-listing__option--is-focused {
  background-color: var(--picker-focused-back-color) !important;
}

.userfront-toolkit * {
  font-family: 'Fira Sans', sans-serif !important;
}

.userfront-container {
  background-color: #eeeeee;
  box-shadow: none;
  font-size: 1.1rem;
}

.userfront-secured
{
  display: none;
}

@media print
{
  html {
    color: #000;
    background-color: inherit;
  }

  header {
    display: none;
  }

  footer {
    display: none;
  }

  .planner-grid > .time a {
    text-decoration: none;
  }
}

@media (max-width: 999px)
{
  .planner-layout .workarea {
    margin-left: 10px;
    margin-right: 10px;
  }

  .planner-layout .sidebar {
    display: none;
  }
}

@media (max-width: 799px)
{
  .planner-menu {
    flex-direction: column;
  }

  .planner-menu .search-history {
    margin-bottom: 50px;
  }

  .planner-card .splitter {
    flex-direction: column;
  }

  .planner-card .splitter .image {
    display: none;
  }

  .planner-card .listings {
    margin-left: 10px;
    margin-right: 10px;
    column-gap: 5px;
  }

  .planner-card .info-column {
    margin-bottom: 30px;
  }

  .category-menu
  {
    gap: 15px;

    & .fringe {
      grid-column: 1;
      grid-row: 1 / 3; /* spans rows 1 and 2 */
    }
    & .international {
      grid-column: 2;
      grid-row: 1;
    }
    & .book {
      grid-column: 2;
      grid-row: 2;
    }
    & .others {
      grid-column: 1 / -1; /* spans both columns */
      grid-row: 3;
      margin-top: 20px;
      margin-bottom: 20px;
    }
  }
}

@media (max-width: 649px)
{
  header {
    & .layout .left {
      margin-left: 10px;
      margin-right: 5px;
    }
    & .layout .left-wide {
      display: none;
    }
    & .layout .long {
      display: none;
    }
    & .layout .buttons {
      margin-right: 10px;
      gap: 6px;
    }

    & .layout .buttons .big-button {
      padding: 8px;
    }
  }

  footer {
    padding: 5px 5px;
  }

  .planner-dashboard {
    flex-direction: column-reverse;
    & .planner-upcoming {
      flex-basis: inherit;
      margin-bottom: 40px;
    }
    & .planner-help {
      flex-basis: inherit;
    }
  }

  .planner-layout .workarea {
    margin-left: 2px;
    margin-right: 2px;
  }

  .planner-form {
    margin-left: 5px;
    margin-right: 5px;
  }

  .planner-form .keyword-row {
    gap: 5px;
  }

  .big-button {
    width: inherit;
    padding: 10px;
  }

  .planner-section {
    margin: 0;
  }

  .planner-menu {
    margin: 5px;
  }

  main.planner-assistant {
    margin-left: 5px;
    margin-right: 5px;
  }

  .conversation-input > form {
    & input[type="button"], & input[type="submit"] {
      width: inherit;
    }
  }

  main.item {
    margin: 20px 10px;
  }

  main.item .item-details {
    margin: 10px 0;
    padding: 0;
  }

   main.item .item-splitter, .item-card .item-splitter {
    flex-direction: column;
  }

   main.item .item-side, .item-card .item-side {
    display: none;
  }

   main.item .item-topper, .item-card .item-topper {
    display: inherit;
  }

   main.item .item-video-below, .item-card .item-video-below {
    display: inherit;
  }
}
