body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  -webkit-user-select: none;
  /* Chrome all / Safari all */
  -moz-user-select: none;
  /* Firefox all */
  -ms-user-select: none;
  /* IE 10+ */
  user-select: none;
  /* Likely future */
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overflow: hidden;
  background-color: transparent;
  width: 100%;
}

.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#spinner {
  width: 100%;
  height: 100%;
  /*height: 56.25vw;*/
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.2);
}
#spinner .sk-cube-grid {
  width: 100px;
  height: 100px;
  margin: 100px auto;
}
#spinner .sk-cube-grid .sk-cube {
  width: 33%;
  height: 33%;
  background-color: #008dc1;
  opacity: 0.3;
  float: left;
  -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
  animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
  border-radius: -25%;
}
#spinner .sk-cube-grid .sk-cube1, #spinner .sk-cube-grid .sk-cube2, #spinner .sk-cube-grid .sk-cube3,
#spinner .sk-cube-grid .sk-cube4, #spinner .sk-cube-grid .sk-cube6,
#spinner .sk-cube-grid .sk-cube7, #spinner .sk-cube-grid .sk-cube8, #spinner .sk-cube-grid .sk-cube9 {
  background-color: #fff;
  opacity: 0.8;
  border-radius: 50%;
}
#spinner .sk-cube-grid .sk-cube1 {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}
#spinner .sk-cube-grid .sk-cube2 {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}
#spinner .sk-cube-grid .sk-cube3 {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}
#spinner .sk-cube-grid .sk-cube4 {
  -webkit-animation-delay: 0.1s;
  animation-delay: 0.1s;
}
#spinner .sk-cube-grid .sk-cube5 {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}
#spinner .sk-cube-grid .sk-cube6 {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}
#spinner .sk-cube-grid .sk-cube7 {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}
#spinner .sk-cube-grid .sk-cube8 {
  -webkit-animation-delay: 0.1s;
  animation-delay: 0.1s;
}
#spinner .sk-cube-grid .sk-cube9 {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}
@-webkit-keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
    transform: scale3D(1, 1, 1);
  }
  35% {
    -webkit-transform: scale3D(0, 0, 1);
    transform: scale3D(0, 0, 1);
  }
}
@keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
    transform: scale3D(1, 1, 1);
  }
  35% {
    -webkit-transform: scale3D(0, 0, 1);
    transform: scale3D(0, 0, 1);
  }
}

main.main #spinner {
  display: none;
}

main.main.waiting #spinner, main.main.not-ready #spinner {
  display: flex;
}

main.main.waiting .hide-if-waiting {
  display: none !important;
}

main.main.small-screen .hide-if-small {
  display: none !important;
}

a {
  color: #008dc1;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  cursor: pointer;
}
a.current {
  font-weight: bold;
}
a.current:hover {
  text-decoration: none;
}

.info-panel {
  /*    background-color: #eeeeee; */
  height: 55px;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  grid-auto-rows: 1fr;
}
.info-panel .item {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  flex: 1;
}
.info-panel .webcast-info {
  min-width: 0;
}
.info-panel .webcast-sidebar {
  flex: 0 1 140px;
}
.info-panel .title {
  margin: 0;
  padding: 0;
  padding-bottom: 4px;
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.info-panel .description {
  margin: 0;
  padding: 0;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.info-panel .webcast-sidebar {
  text-align: right;
}
.info-panel .event-date {
  margin: 0;
  padding: 0;
  font-size: 13px;
  display: block;
}
.info-panel .case-navigator {
  display: flex;
  flex-direction: row;
}
.info-panel .previous-case {
  font-size: 10px;
  flex: 0;
  display: none;
}
.info-panel .current-case {
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-size: 13px;
  display: block;
  flex: 1;
}
.info-panel .next-case {
  font-size: 10px;
  flex: 0;
  display: none;
}
.info-panel div.item .box {
  padding: 4px;
  margin: 4px;
  box-sizing: border-box;
  height: 47px;
}

.small-screen .info-panel .webcast-stats {
  display: none;
}

/*
.info-panel .general-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px;
    width: 80%;
}

.info-panel .general-info .item {
    margin: 0 .5rem .5rem 0;
    text-decoration: none;
}
*/
div {
  outline: none;
}

/* iPhones hide the scrollbar in portrait mode when the page is taller than the viewport */
#iphoneToolbarHack {
  position: absolute;
  top: 100%;
  width: 100px;
  height: 100px;
  border: 1px solid red;
  visibility: hidden;
}

main {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 100%;
  overflow: hidden;
}
main .boxes {
  display: flex;
  box-sizing: border-box;
  flex-wrap: wrap;
  order: 0;
}
main .controls {
  order: 100;
  display: flex;
  height: 44px;
}
main .controls .control {
  margin: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
}
main .controls .button {
  display: flex;
  justify-content: center;
  align-items: center;
}
main .controls .button.control {
  width: 44px;
  font-size: 1.4rem;
  border-radius: 0.2rem;
  transition: all 0.25s;
  cursor: pointer;
  outline: none;
}
main .controls .button.control:hover,
main .controls .button.control:focus {
  background-color: #008dc1;
  color: white;
}
main .controls .button.control[aria-pressed=true] {
  color: #008dc1;
}
main .controls .button.control[aria-pressed=true]:hover,
main .controls .button.control[aria-pressed=true]:focus {
  color: white;
}

.video-overlay, .muted-overlay, .play-button-overlay {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.8) 100%);
}

.muted-overlay {
  display: none;
  z-index: 1000;
  pointer-events: none;
}
.muted-overlay.show {
  display: flex;
  pointer-events: auto;
}

.big-play-button {
  font-size: 5rem;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.muted-icon {
  font-size: 6rem;
  color: #000;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
}
.muted-icon span {
  font-size: 1.2rem;
  margin-top: 1rem;
  display: block;
  font-weight: bold;
}

.button-reset {
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

div.box {
  box-sizing: border-box;
  flex: 0 0 20%;
  order: 1;
}

div.box.final {
  order: 1000;
  flex-grow: 1;
  display: flex;
}

div.box .container {
  margin: 0;
}

div.box.final .container {
  flex-grow: 1;
}

div.video-clone-box {
  cursor: pointer;
  position: relative;
}

div.video-clone-box:focus {
  outline: none;
}

div.video-clone-box:focus::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 8px solid #008dc1;
  pointer-events: none;
  z-index: 100;
}

div.box.selected-video .video-clone-box:not(:focus)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 4px solid #008dc1;
  pointer-events: none;
  z-index: 100;
}

div.video-clone-box canvas {
  height: 100%;
  transition: filter 0.25s;
}

div.video-clone-box:hover canvas {
  transition: filter 0.25s;
}

div.box.active-video .video-clone-box {
  background-color: black;
}

div.box .active-symbol {
  display: none;
}

.paused canvas {
  filter: blur(2px);
}

div.box.active-video canvas {
  /*    opacity: 0.7; */
}

div.box.primary {
  flex: 0 0 100%;
  order: 0;
  z-index: 1000;
}

div.extras {
  text-align: right;
}

div.extras .button {
  float: right;
  width: 2.5rem;
  height: 2rem;
  background-color: #555;
  border-radius: 0.2rem;
  transition: all 0.25s;
  cursor: pointer;
  color: #999;
  text-align: center;
  margin-left: 0.2rem;
}

div.extras .button i {
  line-height: 2rem;
  font-size: 1.5rem;
}

div.extras .button:hover {
  color: #bbb;
  background-color: #777;
}

.chapters-table-wrapper {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
.chapters-table-wrapper .chapter-people {
  font-size: 12px;
}

table.chapters {
  border-collapse: collapse;
  width: 100%;
  box-sizing: border-box;
}
table.chapters thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
table.chapters th {
  font-weight: 600;
  font-size: 0.85rem;
  color: #333333;
  white-space: nowrap;
}
table.chapters th i {
  margin-right: 0.25rem;
  color: #008dc1;
}
table.chapters tbody tr {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
table.chapters tbody tr:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #008dc1;
  background-color: rgba(0, 141, 193, 0.1);
}

table.chapters th, table.chapters td {
  padding: 0.5rem 0.2rem;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
  box-sizing: border-box;
}

table.chapters th:first-child, table.chapters td:first-child {
  width: 7.5rem;
  text-align: center;
  font-size: 0.9rem;
  white-space: nowrap;
  color: #666666;
}

table.chapters th:nth-child(2), table.chapters td:nth-child(2) {
  width: auto;
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

table.chapters th:last-child, table.chapters td:last-child {
  width: 10rem;
  text-align: center;
}

table.chapters tbody tr:hover td {
  background-color: #eeeeee;
}

div.controls .growing.control {
  flex: 1;
}

.a169 {
  padding-top: 56.25%;
  overflow: hidden;
  position: relative;
}

.a169 > * {
  width: 100%;
  top: 0;
  position: absolute;
}

.video-box {
  display: flex;
  background-color: black;
}

.video-box video {
  background-color: black;
  width: 100%;
  transition: filter 0.25s;
}

.playButton i.fa-pause {
  display: none;
}

.playing .playButton i.fa-pause {
  display: inline-block;
}

.playing .playButton i.fa-play {
  display: none;
}

.fullscreenButton i.fa-compress {
  display: none;
}

.fullscreen .fullscreenButton i.fa-compress {
  display: inline-block;
}

.fullscreen .fullscreenButton i.fa-expand {
  display: none;
}

.scrubBar {
  position: relative;
  cursor: pointer;
  border-radius: 0.2rem;
  transition: background-color 0.25s;
  outline: none;
}

.scrubBar:hover,
.scrubBar:focus {
  background-color: #008dc1;
}

.scrubBar .line {
  background-color: #767676;
  border-radius: 1px;
  height: 4px;
  width: 100%;
  transition: background-color 0.25s, height 0.25s;
  box-sizing: border-box;
}

.scrubBar:hover .line {
  background-color: #000;
  height: 6px;
}

.scrubBar .scrubber, .scrubBar .shadowScrubber {
  background-color: #767676;
  height: 16px;
  width: 6px;
  position: absolute;
  border-radius: 1px;
  left: 0;
  transition: background-color 0.25s;
}

.scrubBar .shadowScrubber {
  opacity: 0;
  transition: opacity 0.25s;
}

.scrubbing .scrubBar .shadowScrubber {
  display: block;
  opacity: 0.5;
}

.scrubBar:hover .scrubber,
.scrubBar:hover .shadowScrubber,
.scrubBar:focus .scrubber,
.scrubBar:focus .shadowScrubber {
  background-color: white;
}

.scrubber-tooltip {
  position: absolute;
  bottom: 20px;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1000;
}

.scrubber-tooltip.visible {
  opacity: 1;
}

.logoButton {
  flex: 0 0 140px;
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.logoButton img {
  height: 35px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.small-screen .logoButton {
  flex: 0 0 30px;
}

main.width-lte-1024 .logoButton {
  flex: 0 0 35px;
  justify-content: flex-start;
}
main.width-lte-1024 .videoTime .split {
  display: none;
}
main.width-lte-1024 .videoTime .duration {
  display: none;
}

main.width-lte-700 .stepRightButton {
  display: none;
}

main.at-live-edge .stepRightButton {
  display: none;
}

main.width-lte-640 .stepLeftButton {
  display: none !important;
}
main.width-lte-640 .shareButton {
  display: none !important;
}

.volumeBar {
  z-index: 1000;
}

main .dialog {
  position: fixed;
  top: 44px;
  left: 44px;
  right: 44px;
  bottom: 44px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: white;
  display: none;
  z-index: 10002;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dialog > *:not(.dialog-header):not(.settings-container) {
  width: 100%;
  height: calc(100% - 38.5px);
}

.dialog > .settings-container {
  height: calc(100% - 38.5px);
  width: 100%;
}

.dialog .dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 18px;
  height: 38.5px;
  box-sizing: border-box;
  border-bottom: 1px solid #cccccc;
  border-radius: 8px 8px 0 0;
}

.dialog .dialog-header .dialog-title {
  margin: 0;
}

.dialog .dialog-header .dialog-spacer {
  flex: 1;
}

.dialog .dialog-header .dialog-close-btn {
  color: #767676;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
}

.dialog .dialog-header .dialog-close-btn:hover {
  color: #000;
}

.dialog .dialog-header .dialog-close-btn:focus {
  outline: 2px solid #008dc1;
  outline-offset: 2px;
  color: #008dc1;
}

.dialog iframe {
  border: 0;
  background-color: #ffffff;
}

#debug {
  opacity: 0.8;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 20vh;
  background-color: #fff;
  z-index: 10000;
  font-size: 10px;
  overflow-y: scroll;
}

.ui-loader h1 {
  visibility: hidden;
}

.videoTime {
  order: 600;
  font-size: 100%;
}

.videoTime .split {
  padding: 0 3px;
  font-size: 85%;
}

.videoTime .live-indicator {
  background-color: white;
  color: black;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.25s;
}

.videoTime:hover .live-indicator {
  background-color: #008dc1;
  color: white;
}

.fullscreen .ui-page {
  background-color: #fff;
}

.logoButton {
  cursor: pointer;
}

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

.cursor-pointer {
  cursor: pointer;
}

.share-wrapper {
  padding: 20px 40px;
  box-sizing: border-box;
  overflow-y: auto;
}

.share-wrapper h2:first-child {
  margin-top: 0;
}

.share-wrapper h2 {
  margin-top: 2em;
}

.share-wrapper p.url {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid gray;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
  display: inline-block;
  text-overflow: ellipsis;
  max-width: 100%;
  overflow: hidden;
}

.share-wrapper div.other {
  justify-content: space-between;
  flex-wrap: wrap;
}

.share-wrapper div.other > a {
  padding-left: 10px;
  margin: 0 5rem 0.25rem 0;
  font-size: 42px;
  color: #767676;
  transition: color 0.25s;
}

.share-wrapper div.other > a:hover {
  color: black;
}

.share-dropup {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  min-width: 250px;
  background-color: white;
  border: 2px solid #008dc1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  padding: 4px 0;
}
.share-dropup::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: #008dc1 transparent transparent transparent;
}
.share-dropup::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 11px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 7px 0 7px;
  border-color: white transparent transparent transparent;
  z-index: 1;
}

.share-dropup-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.share-dropup-item:hover {
  background-color: #f5f5f5;
  color: #008dc1;
}
.share-dropup-item:focus {
  outline: none;
  background-color: #008dc1;
  color: white;
}
.share-dropup-item:first-child {
  border-radius: 6px 6px 0 0;
}
.share-dropup-item:last-child {
  border-radius: 0 0 6px 6px;
}
.share-dropup-item:only-child {
  border-radius: 6px;
}

/* css for subs */
video::cue {
  visibility: hidden;
}

div.box.primary {
  position: relative;
}

div#subs {
  background: rgba(0, 0, 0, 0.75);
  padding: 0.5rem 0.75rem;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 1.75vw;
  line-height: 1.5;
  color: white;
  max-width: calc(100% - 2rem);
  box-sizing: border-box;
  border-radius: 4px;
  text-align: left;
}

div#subs:empty {
  display: none;
}

/* Muted overlay - shown when autoplay blocks audio */
.muted-overlay {
  z-index: 1000 !important;
  pointer-events: auto !important;
}

.muted-overlay:focus {
  outline: 3px solid #018dc1;
  outline-offset: -3px;
}

/* Control tooltips - reusable bubble tooltips for toolbar controls */
.control-tooltip {
  position: absolute;
  background-color: #ffffff;
  border: 2px solid #008dc1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  white-space: nowrap;
  z-index: 10001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  /* Arrow pointing down */
  /* Inner white triangle to cover border */
}
.control-tooltip.tooltip-visible {
  opacity: 1;
}
.control-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--arrow-left, 50%);
  margin-left: -6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 6px 0 6px;
  border-color: #008dc1 transparent transparent transparent;
}
.control-tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--arrow-left, 50%);
  margin-left: -5px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  border-color: #ffffff transparent transparent transparent;
  z-index: 1;
}

/* Spotlight tooltips - auto-shown to draw attention to features */
.spotlight-tooltip {
  background-color: #008dc1;
  color: white;
  border-color: #008dc1;
  font-weight: 500;
  animation: pulse-glow 2s ease-in-out infinite;
}
.spotlight-tooltip::after {
  border-color: #008dc1 transparent transparent transparent;
}
.spotlight-tooltip::before {
  border-color: #008dc1 transparent transparent transparent;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.4);
  }
}
/* Message form (Questions module) - JavaScript-generated form with message, name, email, phone */
.message-form {
  padding: 16px;
  box-sizing: border-box;
  max-width: 600px;
  margin: 0 auto;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
}
.message-form input, .message-form textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.flash-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  min-width: 300px;
  max-width: 500px;
  padding: 14px 40px 14px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 30000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}
.flash-message.flash-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.flash-message.flash-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.flash-message.flash-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.flash-message.flash-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}
.flash-message .flash-text {
  flex: 1;
}
.flash-message .flash-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: currentColor;
  opacity: 0.6;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 16px;
  transition: opacity 0.15s;
}
.flash-message .flash-close:hover {
  opacity: 1;
}
.flash-message .flash-close:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  opacity: 1;
}

.form-instructions {
  background-color: #e7f3ff;
  border-left: 4px solid #008dc1;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.form-instructions.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}
.form-instructions.success {
  background-color: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}
.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #008dc1;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}
.form-group input[aria-invalid=true],
.form-group textarea[aria-invalid=true] {
  border-color: #dc3545;
  background-color: #fff5f5;
}
.form-group input[aria-invalid=true]:focus,
.form-group textarea[aria-invalid=true]:focus {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
  border-color: #dc3545;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
.form-group [dir=rtl] {
  text-align: right;
}
.form-group [dir=ltr] {
  text-align: left;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.form-row .form-group {
  margin-bottom: 0;
}
.form-row .form-col {
  flex: 1;
  min-width: 0;
}
@media (max-width: 500px) {
  .form-row {
    flex-direction: column;
    gap: 14px;
  }
}

.form-actions {
  margin-top: 16px;
  margin-bottom: 8px;
  text-align: right;
}
.form-actions .submit-button {
  background-color: #008dc1;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s;
}
.form-actions .submit-button:hover:not(:disabled) {
  background-color: #00688e;
}
.form-actions .submit-button:focus {
  outline: 2px solid #008dc1;
  outline-offset: 2px;
}
.form-actions .submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.settings-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.settings-sidebar {
  flex: 0 0 180px;
  background-color: #f5f5f5;
  border-right: 1px solid #ddd;
  padding: 1rem 0;
  overflow-y: auto;
}

.settings-tab {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, outline 0.2s ease;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
  min-height: 44px;
}
.settings-tab i {
  margin-right: 0.5rem;
  color: #008dc1;
  width: 1.2rem;
  text-align: center;
}
.settings-tab:hover {
  background-color: #e0e0e0;
}
.settings-tab:focus {
  outline: 3px solid #008dc1;
  outline-offset: -3px;
  background-color: #e0e0e0;
}
.settings-tab:focus:not(:focus-visible) {
  outline: none;
}
.settings-tab:focus-visible {
  outline: 3px solid #008dc1;
  outline-offset: -3px;
  background-color: #e0e0e0;
}
.settings-tab.active {
  background-color: white;
  font-weight: 600;
  border-left: 4px solid #008dc1;
  padding-left: calc(1rem - 4px);
  color: #000;
}

.settings-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background-color: white;
}

.settings-page h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.5rem;
}
.settings-page h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #555;
  font-size: 1.2rem;
}
.settings-page section {
  margin-bottom: 2rem;
}
.settings-page section:last-child {
  margin-bottom: 0;
}
.settings-page p {
  line-height: 1.6;
  color: #666;
  margin-bottom: 1rem;
}
.settings-page ul {
  line-height: 1.8;
  color: #666;
  margin-left: 1.5rem;
}
.settings-page a {
  color: #008dc1;
  text-decoration: none;
}
.settings-page a:hover {
  text-decoration: underline;
}
.settings-page a:focus {
  outline: 2px solid #008dc1;
  outline-offset: 2px;
}

.settings-option {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.settings-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #333;
}

.settings-checkbox {
  margin-right: 0.75rem;
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
}
.settings-checkbox:focus {
  outline: 2px solid #008dc1;
  outline-offset: 2px;
}

.settings-label-text {
  flex: 1;
}

.settings-select-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: flex-start;
}

.settings-select {
  flex: 1;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
}
.settings-select:focus {
  outline: 2px solid #008dc1;
  outline-offset: 2px;
  border-color: #008dc1;
}
.settings-select:hover {
  border-color: #999;
}

.settings-reset-button {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
}
.settings-reset-button:hover {
  background-color: #f5f5f5;
  border-color: #999;
  color: #008dc1;
}
.settings-reset-button:focus {
  outline: 2px solid #008dc1;
  outline-offset: 2px;
  border-color: #008dc1;
}
.settings-reset-button:active {
  background-color: #e0e0e0;
}
.settings-reset-button i {
  display: block;
}

.settings-description {
  margin-top: 0.5rem;
  margin-bottom: 0;
  margin-left: 0;
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
}

.settings-clear-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

.settings-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid #d32f2f;
  border-radius: 4px;
  background-color: white;
  color: #d32f2f;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}
.settings-button:hover:not(:disabled) {
  background-color: #d32f2f;
  color: white;
}
.settings-button:focus {
  outline: 3px solid #008dc1;
  outline-offset: 3px;
}
.settings-button:active:not(:disabled) {
  background-color: #b71c1c;
  border-color: #b71c1c;
}
.settings-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
  color: #999;
}

.settings-tech-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}
.settings-tech-info dt {
  font-weight: 600;
  color: #555;
}
.settings-tech-info dd {
  color: #666;
  margin: 0;
}

.settings-privacy-page {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}
.settings-privacy-page .last-updated {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}
.settings-privacy-page h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 1rem;
  font-weight: 600;
}
.settings-privacy-page .event-host-info {
  background-color: #f5f5f5;
  padding: 0.75rem;
  border-left: 3px solid #008dc1;
  margin-top: 1rem;
}

.settings-accessibility-page {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}
.settings-accessibility-page .last-updated {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}
.settings-accessibility-page .contact-box {
  background-color: #f5f5f5;
  padding: 0.75rem;
  border-left: 3px solid #008dc1;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.settings-accessibility-page .contact-box p {
  margin: 0.25rem 0;
}

@media (max-width: 600px) {
  .settings-container {
    flex-direction: column;
  }

  .settings-sidebar {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
    display: flex;
    overflow-x: auto;
  }

  .settings-tab {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    min-width: 44px;
    min-height: 44px;
  }
  .settings-tab.active {
    border-left: none;
    border-bottom: 4px solid #008dc1;
    padding-left: 1rem;
    padding-bottom: calc(0.75rem - 4px);
  }
  .settings-tab span {
    display: none;
  }
  .settings-tab i {
    margin-right: 0;
    font-size: 1.4rem;
  }

  .settings-content {
    padding: 1rem;
  }
}
@media (max-width: 768px) {
  main .dialog {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}
@media (max-width: 480px) {
  main .dialog {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}
