trix-editor {
  border: 1px solid #bbb;
  border-radius: 3px;
  margin: 0;
  padding: 0.4em 0.6em;
  min-height: 5em;
  outline: none; }

trix-toolbar * {
  box-sizing: border-box; }

trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto; }

trix-toolbar .trix-button-group {
  display: flex;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-top-color: #ccc;
  border-bottom-color: #888;
  border-radius: 3px; }
  trix-toolbar .trix-button-group:not(:first-child) {
    margin-left: 1.5vw; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button-group:not(:first-child) {
        margin-left: 0; } }

trix-toolbar .trix-button-group-spacer {
  flex-grow: 1; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button-group-spacer {
      display: none; } }

trix-toolbar .trix-button {
  position: relative;
  float: left;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.5em;
  margin: 0;
  outline: none;
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent; }
  trix-toolbar .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-toolbar .trix-button.trix-active {
    background: #cbeefa;
    color: black; }
  trix-toolbar .trix-button:not(:disabled) {
    cursor: pointer; }
  trix-toolbar .trix-button:disabled {
    color: rgba(0, 0, 0, 0.125); }
  @media (max-width: 768px) {
    trix-toolbar .trix-button {
      letter-spacing: -0.01em;
      padding: 0 0.3em; } }

trix-toolbar .trix-button--icon {
  font-size: inherit;
  width: 2.6em;
  height: 1.6em;
  max-width: calc(0.8em + 4vw);
  text-indent: -9999px; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button--icon {
      height: 2em;
      max-width: calc(0.8em + 3.5vw); } }
  trix-toolbar .trix-button--icon::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.6;
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button--icon::before {
        right: 6%;
        left: 6%; } }
  trix-toolbar .trix-button--icon.trix-active::before {
    opacity: 1; }
  trix-toolbar .trix-button--icon:disabled::before {
    opacity: 0.125; }

trix-toolbar .trix-button--icon-attach::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  top: 8%;
  bottom: 4%; }

trix-toolbar .trix-button--icon-bold::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-italic::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-link::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-strike::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-quote::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-heading-1::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-code::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-bullet-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-number-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-undo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-redo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-decrease-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-increase-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-dialogs {
  position: relative; }

trix-toolbar .trix-dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.75em;
  padding: 15px 10px;
  background: #fff;
  box-shadow: 0 0.3em 1em #ccc;
  border-top: 2px solid #888;
  border-radius: 5px;
  z-index: 5; }

trix-toolbar .trix-input--dialog {
  font-size: inherit;
  font-weight: normal;
  padding: 0.5em 0.8em;
  margin: 0 10px 0 0;
  border-radius: 3px;
  border: 1px solid #bbb;
  background-color: #fff;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }
  trix-toolbar .trix-input--dialog.validate:invalid {
    box-shadow: #F00 0px 0px 1.5px 1px; }

trix-toolbar .trix-button--dialog {
  font-size: inherit;
  padding: 0.5em;
  border-bottom: none; }

trix-toolbar .trix-dialog--link {
  max-width: 600px; }

trix-toolbar .trix-dialog__link-fields {
  display: flex;
  align-items: baseline; }
  trix-toolbar .trix-dialog__link-fields .trix-input {
    flex: 1; }
  trix-toolbar .trix-dialog__link-fields .trix-button-group {
    flex: 0 0 content;
    margin: 0; }

trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; }

trix-editor [data-trix-mutable]::-moz-selection,
trix-editor [data-trix-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection {
  background: none; }

trix-editor [data-trix-mutable]::selection,
trix-editor [data-trix-cursor-target]::selection, trix-editor [data-trix-mutable] ::selection {
  background: none; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::-moz-selection {
  background: highlight; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::selection {
  background: highlight; }

trix-editor [data-trix-mutable].attachment.attachment--file {
  box-shadow: 0 0 0 2px highlight;
  border-color: transparent; }

trix-editor [data-trix-mutable].attachment img {
  box-shadow: 0 0 0 2px highlight; }

trix-editor .attachment {
  position: relative; }
  trix-editor .attachment:hover {
    cursor: default; }

trix-editor .attachment--preview .attachment__caption:hover {
  cursor: text; }

trix-editor .attachment__progress {
  position: absolute;
  z-index: 1;
  height: 20px;
  top: calc(50% - 10px);
  left: 5%;
  width: 90%;
  opacity: 0.9;
  transition: opacity 200ms ease-in; }
  trix-editor .attachment__progress[value="100"] {
    opacity: 0; }

trix-editor .attachment__caption-editor {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;
  vertical-align: top;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }

trix-editor .attachment__toolbar {
  position: absolute;
  z-index: 1;
  top: -0.9em;
  left: 0;
  width: 100%;
  text-align: center; }

trix-editor .trix-button-group {
  display: inline-flex; }

trix-editor .trix-button {
  position: relative;
  float: left;
  color: #666;
  white-space: nowrap;
  font-size: 80%;
  padding: 0 0.8em;
  margin: 0;
  outline: none;
  border: none;
  border-radius: 0;
  background: transparent; }
  trix-editor .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-editor .trix-button.trix-active {
    background: #cbeefa; }
  trix-editor .trix-button:not(:disabled) {
    cursor: pointer; }

trix-editor .trix-button--remove {
  text-indent: -9999px;
  display: inline-block;
  padding: 0;
  outline: none;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid highlight;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25); }
  trix-editor .trix-button--remove::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%; }
  trix-editor .trix-button--remove:hover {
    border-color: #333; }
    trix-editor .trix-button--remove:hover::before {
      opacity: 1; }

trix-editor .attachment__metadata-container {
  position: relative; }

trix-editor .attachment__metadata {
  position: absolute;
  left: 50%;
  top: 2em;
  transform: translate(-50%, 0);
  max-width: 90%;
  padding: 0.1em 0.6em;
  font-size: 0.8em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 3px; }
  trix-editor .attachment__metadata .attachment__name {
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }
  trix-editor .attachment__metadata .attachment__size {
    margin-left: 0.2em;
    white-space: nowrap; }

.trix-content {
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word; }
  .trix-content * {
    box-sizing: border-box;
    margin: 0;
    padding: 0; }
  .trix-content h1 {
    font-size: 1.2em;
    line-height: 1.2; }
  .trix-content blockquote {
    border: 0 solid #ccc;
    border-left-width: 0.3em;
    margin-left: 0.3em;
    padding-left: 0.6em; }
  .trix-content [dir=rtl] blockquote,
  .trix-content blockquote[dir=rtl] {
    border-width: 0;
    border-right-width: 0.3em;
    margin-right: 0.3em;
    padding-right: 0.6em; }
  .trix-content li {
    margin-left: 1em; }
  .trix-content [dir=rtl] li {
    margin-right: 1em; }
  .trix-content pre {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    font-family: monospace;
    font-size: 0.9em;
    padding: 0.5em;
    white-space: pre;
    background-color: #eee;
    overflow-x: auto; }
  .trix-content img {
    max-width: 100%;
    height: auto; }
  .trix-content .attachment {
    display: inline-block;
    position: relative;
    max-width: 100%; }
    .trix-content .attachment a {
      color: inherit;
      text-decoration: none; }
      .trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
        color: inherit; }
  .trix-content .attachment__caption {
    text-align: center; }
    .trix-content .attachment__caption .attachment__name + .attachment__size::before {
      content: ' \2022 '; }
  .trix-content .attachment--preview {
    width: 100%;
    text-align: center; }
    .trix-content .attachment--preview .attachment__caption {
      color: #666;
      font-size: 0.9em;
      line-height: 1.2; }
  .trix-content .attachment--file {
    color: #333;
    line-height: 1;
    margin: 0 2px 2px 2px;
    padding: 0.4em 1em;
    border: 1px solid #bbb;
    border-radius: 5px; }
  .trix-content .attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    position: relative; }
    .trix-content .attachment-gallery .attachment {
      flex: 1 0 33%;
      padding: 0 0.5em;
      max-width: 33%; }
    .trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
      flex-basis: 50%;
      max-width: 50%; }
/*
 * Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
 * the trix-editor content (whether displayed or under editing). Feel free to incorporate this
 * inclusion directly in any other asset bundle and remove this file.
 *

*/

/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
body.admin-console,
body.admin-auth {
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.10), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #f5fffb 100%);
  color: #172033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

.admin-shell {
  --admin-sidebar-width: 16rem;
  display: grid;
  grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
}

.admin-sidebar {
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  padding: 1rem;
  position: sticky;
  top: 0;
}

.admin-brand,
.admin-toolbar__brand,
.admin-auth__brand {
  align-items: center;
  color: #172033;
  display: inline-flex;
  gap: 0.8rem;
  text-decoration: none;
}

.admin-brand__mark {
  align-items: center;
  background: #f8fafc;
  border: 0;
  border-radius: 0.9rem;
  display: inline-grid;
  height: 2.65rem;
  justify-content: center;
  overflow: hidden;
  padding: 0.22rem;
  width: 2.65rem;
}

.admin-brand__logo {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.admin-brand strong,
.admin-toolbar__brand strong,
.admin-auth__brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.admin-brand small,
.admin-toolbar__brand small,
.admin-auth__brand small {
  color: #64748b;
  display: block;
  font-size: 0.72rem;
  line-height: 1.1;
  margin-top: 0.15rem;
}

.admin-sidebar-nav {
  display: grid;
  flex: 1;
  gap: 0.48rem;
  margin-top: 0.95rem;
  min-height: 0;
}

.admin-sidebar-group {
  display: grid;
  gap: 0.12rem;
}

.admin-sidebar-group h2 {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  padding: 0.18rem 0.5rem 0.02rem;
}

.admin-sidebar-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  color: #334155;
  display: flex;
  font-size: 0.9rem;
  font-weight: 760;
  justify-content: space-between;
  line-height: 1.25;
  min-height: 2.2rem;
  padding: 0.52rem 0.76rem;
  text-decoration: none;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.is-current {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #075985;
}

.admin-sidebar-link--primary {
  font-size: 0.98rem;
}

.admin-sidebar-resizer {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #334155;
  cursor: ew-resize;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  height: 100vh;
  justify-content: center;
  left: calc(var(--admin-sidebar-width) - 0.55rem);
  line-height: 1;
  padding: 0;
  position: fixed;
  top: 0;
  width: 1.1rem;
  z-index: 45;
}

.admin-sidebar-resizer::before {
  background: #7dd3fc;
  border-radius: 999px;
  content: "";
  height: 100%;
  opacity: 0;
  position: absolute;
  right: calc(50% - 1px);
  top: 0;
  transition: opacity 160ms ease;
  width: 2px;
}

.admin-sidebar-resizer span {
  display: none;
}

.admin-sidebar-resizer:hover,
.admin-sidebar-resizer:focus-visible,
.admin-shell.is-resizing .admin-sidebar-resizer {
  color: #334155;
  outline: none;
}

.admin-sidebar-resizer:hover::before,
.admin-sidebar-resizer:focus-visible::before,
.admin-shell.is-resizing .admin-sidebar-resizer::before {
  opacity: 0.65;
}

body.admin-sidebar-is-resizing {
  cursor: ew-resize;
  user-select: none;
}

.admin-content-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-mobile-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  backdrop-filter: blur(16px);
  display: none;
  gap: 1rem;
  justify-content: flex-end;
  min-height: 4.5rem;
  padding: 0.85rem 1.4rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-toolbar__left {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  min-width: 0;
}

.admin-toolbar__brand {
  display: none;
}

.admin-account-menu,
.admin-mobile-menu {
  position: relative;
}

.admin-account-menu summary,
.admin-mobile-menu summary {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.32);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  color: #172033;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  line-height: 1.25;
  list-style: none;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
}

.admin-account-menu summary::-webkit-details-marker,
.admin-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.admin-account-menu summary::marker,
.admin-mobile-menu summary::marker {
  content: "";
}

.admin-account-menu summary span {
  max-width: 20rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-menu summary small {
  color: #64748b;
}

.admin-account-menu__panel,
.admin-mobile-menu__panel {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.95rem;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.30);
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.7rem);
  width: min(22rem, calc(100vw - 2rem));
  z-index: 60;
}

.admin-account-menu__label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.45rem 0.55rem 0.2rem;
}

.admin-account-menu__email {
  color: rgba(255, 255, 255, 0.90);
  display: block;
  font-size: 0.86rem;
  font-weight: 760;
  overflow: hidden;
  padding: 0.25rem 0.55rem 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-menu form {
  margin: 0;
}

.admin-account-menu__link,
.admin-account-menu__logout {
  background: transparent;
  border: 0;
  border-radius: 0.75rem;
  color: #fff;
  cursor: pointer;
  display: block;
  font: inherit;
  font-weight: 780;
  line-height: 1.25;
  min-height: 2.65rem;
  padding: 0.75rem 0.85rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.admin-account-menu__link:hover,
.admin-account-menu__logout:hover {
  background: rgba(255, 255, 255, 0.10);
}

.admin-mobile-menu {
  display: none;
}

.admin-mobile-menu summary {
  border-radius: 0.8rem;
  font-size: 1.1rem;
  justify-content: center;
  padding: 0;
  width: 2.75rem;
}

.admin-mobile-menu__panel {
  left: 0;
  max-height: min(34rem, calc(100vh - 6rem));
  overflow-y: auto;
  right: auto;
}

.admin-mobile-menu__group {
  display: grid;
  gap: 0.2rem;
}

.admin-mobile-menu__group strong {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.55rem 0.7rem 0.2rem;
}

.admin-mobile-menu__link {
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  display: block;
  font-weight: 760;
  line-height: 1.25;
  padding: 0.72rem 0.85rem;
  text-decoration: none;
}

.admin-mobile-menu__link:hover,
.admin-mobile-menu__link.is-current {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.admin-sidebar-account {
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.admin-account-menu--sidebar {
  display: block;
}

.admin-account-menu--sidebar summary {
  border-radius: 0.9rem;
  box-shadow: none;
  gap: 0.65rem;
  justify-content: flex-start;
  padding: 0.62rem;
  width: 100%;
}

.admin-account-menu--sidebar .admin-account-menu__summary-text {
  display: grid;
  flex: 1;
  gap: 0.08rem;
  min-width: 0;
}

.admin-account-menu--sidebar .admin-account-menu__summary-text strong {
  color: #172033;
  font-size: 0.88rem;
  line-height: 1.2;
}

.admin-account-menu--sidebar .admin-account-menu__summary-text small {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.2;
}

.admin-account-menu__avatar {
  align-items: center;
  background: linear-gradient(145deg, #f0f9ff 0%, #dbeafe 58%, #ccfbf1 100%);
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 5px 12px rgba(14, 116, 144, 0.08);
  color: #075985;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 850;
  height: 2.1rem;
  justify-content: center;
  width: 2.1rem;
}

.admin-account-menu__avatar-icon {
  height: 1.68rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  width: 1.68rem;
}

.admin-account-menu--sidebar .admin-account-menu__panel {
  bottom: calc(100% + 0.7rem);
  left: 0;
  padding: 0.55rem;
  right: 0;
  top: auto;
  width: 100%;
}

.admin-account-menu--sidebar .admin-account-menu__email {
  font-size: 0.78rem;
  letter-spacing: 0;
  padding-left: 0.42rem;
  padding-right: 0.42rem;
}

.admin-main {
  margin: 0 auto;
  max-width: 1500px;
  padding: 1.15rem 1.45rem 1.6rem;
  width: 100%;
}

.admin-page-header {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.admin-page-header p {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
}

.admin-page-header h1 {
  color: #111827;
  font-size: 2.25rem;
  font-weight: 850;
  line-height: 1.18;
  margin: 0;
}

.admin-page-header__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.admin-section {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.25rem;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.07);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.admin-filter-section,
.admin-list-section {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(100, 116, 139, 0.36);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.10);
}

.admin-filter-section .admin-section__header,
.admin-list-section .admin-section__header {
  border-bottom-color: rgba(100, 116, 139, 0.30);
}

.admin-section__header {
  align-items: center;
  background: linear-gradient(90deg, #eff6ff 0%, #ecfeff 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.15rem;
}

.admin-section__header h2 {
  font-size: 1.05rem;
  font-weight: 780;
  line-height: 1.35;
  margin: 0;
}

.admin-section__body {
  padding: 1.1rem;
}

.admin-grid {
  display: grid;
  gap: 1rem;
}

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

.admin-grid.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-grid.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  color: inherit;
  display: block;
  min-height: 7.2rem;
  padding: 1.1rem;
  text-decoration: none;
}

.admin-stat span {
  color: #64748b;
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.admin-stat strong {
  color: #111827;
  display: block;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
}

.admin-stat small {
  color: #64748b;
  display: block;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.admin-stat.is-blue strong,
.admin-link {
  color: #2563eb;
}

.admin-stat.is-green strong {
  color: #0f766e;
}

.admin-stat.is-orange strong {
  color: #b45309;
}

.admin-button,
.admin-danger-button,
.admin-secondary-button,
.admin-primary-button {
  align-items: center;
  border-radius: 0.8rem;
  display: inline-flex;
  font-size: 0.93rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.25;
  min-height: 2.8rem;
  padding: 0.72rem 1.1rem;
  text-decoration: none;
}

.admin-button,
.admin-primary-button {
  background: #2563eb;
  border: 1px solid #2563eb;
  color: #fff;
}

.admin-secondary-button {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #1e40af;
}

.admin-danger-button {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.admin-danger-button.is-strong {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.admin-users-table {
  min-width: 1080px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  color: #243044;
  font-size: 0.92rem;
  font-weight: 650;
}

.admin-table tr:hover td {
  background: rgba(239, 246, 255, 0.55);
}

.admin-pagination {
  align-items: center;
  border-top: 1px solid rgba(100, 116, 139, 0.20);
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
}

.admin-pagination__link,
.admin-pagination__current {
  align-items: center;
  border-radius: 0.75rem;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  line-height: 1.25;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

.admin-pagination__link {
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.40);
  color: #1e40af;
}

.admin-pagination__link.is-disabled {
  color: #94a3b8;
  cursor: default;
}

.admin-pagination__current {
  color: #475569;
}

.admin-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
  padding: 0.44rem 0.7rem;
  white-space: nowrap;
}

.admin-badge.is-success {
  background: #ccfbf1;
  color: #0f766e;
}

.admin-badge.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.admin-badge.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.admin-badge.is-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-badge.is-muted {
  background: #e2e8f0;
  color: #475569;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label,
.admin-auth-form label {
  color: #1f2937;
  display: grid;
  font-size: 0.86rem;
  font-weight: 760;
  gap: 0.45rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-auth-form input {
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.52);
  border-radius: 0.85rem;
  color: #111827;
  font: inherit;
  font-weight: 600;
  min-height: 2.85rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-auth-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  outline: none;
}

.admin-filter-section .admin-form input,
.admin-filter-section .admin-form select,
.admin-list-section .admin-table-wrap {
  border-color: rgba(71, 85, 105, 0.52);
}

.admin-filter-section .admin-form input,
.admin-filter-section .admin-form select {
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03), 0 8px 20px rgba(15, 23, 42, 0.04);
}

.admin-list-section .admin-table-wrap {
  border-top: 1px solid rgba(100, 116, 139, 0.24);
}

.admin-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.admin-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.admin-form-errors {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 1rem;
  color: #9f1239;
  padding: 1rem;
}

.admin-form-errors ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.admin-flashes {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.admin-flash {
  border-radius: 1rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
}

.admin-flash.is-notice {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #047857;
}

.admin-flash.is-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.admin-empty-state {
  color: #64748b;
  padding: 1.5rem;
  text-align: center;
}

.admin-empty-state strong {
  color: #1f2937;
  display: block;
}

.admin-detail-list {
  display: grid;
  gap: 0;
}

.admin-detail-row {
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  display: grid;
  gap: 1rem;
  grid-template-columns: 14rem 1fr;
  padding: 0.85rem 0;
}

.admin-detail-row dt {
  color: #64748b;
  font-weight: 760;
}

.admin-detail-row dd {
  color: #172033;
  font-weight: 700;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-detail-row dd p {
  margin: 0;
}

.admin-withdrawal-actions {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.admin-danger-item {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 1rem;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.admin-danger-item.is-critical {
  background: #fff1f2;
  border-color: #fecdd3;
}

.admin-danger-item h3 {
  color: #9a3412;
  font-size: 1rem;
  margin: 0;
}

.admin-danger-item.is-critical h3 {
  color: #991b1b;
}

.admin-danger-item p {
  color: #475569;
  font-weight: 650;
  margin: 0;
}

.admin-delete-confirmation-form {
  gap: 0.85rem;
  max-width: 34rem;
}

.admin-workspace {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr) 22rem;
}

.admin-material-block-builder__toolbar {
  align-items: flex-start;
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.admin-material-block-builder__toolbar h3 {
  font-size: 1.1rem;
  font-weight: 820;
  line-height: 1.35;
  margin: 0;
}

.admin-material-block-builder__toolbar p {
  color: #64748b;
  margin: 0.25rem 0 0;
}

.admin-material-block-builder__quick-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.admin-material-block-builder__quick-add-button {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 0.85rem;
  color: #1d4ed8;
  font-weight: 700;
  line-height: 1.25;
  min-height: 2.7rem;
  padding: 0.65rem 0.95rem;
}

.admin-material-block-list {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.admin-material-block-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.admin-material-block-card.is-destroyed {
  display: none;
}

.admin-material-block-card__header {
  align-items: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto 1fr auto auto;
  padding: 0.85rem;
}

.admin-material-block-card__handle {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.8rem;
  color: #1d4ed8;
  cursor: grab;
  display: inline-flex;
  font-weight: 800;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.admin-material-block-card__summary strong {
  display: block;
  font-weight: 800;
  line-height: 1.3;
}

.admin-material-block-card__description,
.admin-material-block-card__subtitle {
  color: #64748b;
  display: block;
  font-size: 0.84rem;
  margin-top: 0.12rem;
}

.admin-material-block-card__toggle,
.admin-material-block-card__remove {
  border-radius: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  min-height: 2.3rem;
  padding: 0.55rem 0.75rem;
}

.admin-material-block-card__toggle {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.admin-material-block-card__remove {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.admin-material-block-card__fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 1rem;
}

.admin-material-block-card.is-collapsed .admin-material-block-card__fields {
  display: none;
}

.material-block-field {
  display: grid;
  gap: 0.45rem;
}

.material-block-field label {
  color: #1f2937;
  font-size: 0.86rem;
  font-weight: 760;
}

.material-block-field input,
.material-block-field select,
.material-block-field textarea {
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 0.8rem;
  color: #111827;
  font: inherit;
  font-weight: 650;
  min-height: 2.75rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.material-block-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.material-block-field--code textarea,
.admin-material-block-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.material-block-field.is-hidden {
  display: none;
}

.material-block-field--text,
.material-block-field--code,
.material-block-field--ai_prompt,
.material-block-field--checklist,
.material-block-field--assignment,
.material-block-field--warning,
.material-block-field--supplement {
  grid-column: 1 / -1;
}

.admin-inline-hint {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
  margin: 0;
}

.admin-material-preview {
  display: grid;
  gap: 1rem;
}

.admin-material-block-preview-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  overflow: hidden;
}

.admin-material-block-preview-card > h3 {
  background: #f8fafc;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.9rem;
  font-weight: 780;
  margin: 0;
  padding: 0.8rem 1rem;
}

.admin-material-block-preview-card > div {
  overflow: hidden;
  padding: 1rem;
}

.admin-material-block-preview-card .webai-material-block,
.admin-material-block-preview-card .webai-material-block figure {
  max-width: 100%;
}

.admin-material-block-preview-card .webai-material-block--image figure {
  overflow: hidden;
}

.admin-material-block-preview-card .webai-material-block--image img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 640px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.admin-image-thumb {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 0.75rem;
  display: inline-flex;
  height: 4rem;
  justify-content: center;
  overflow: hidden;
  width: 5rem;
}

.admin-image-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.admin-image-thumb.is-empty {
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-ai-image-preview {
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 1rem;
  margin: 0;
  overflow: hidden;
}

.admin-ai-image-preview img {
  display: block;
  height: auto;
  max-height: 680px;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.admin-code-block {
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 1rem;
  color: #1f2937;
  line-height: 1.8;
  padding: 1rem;
  white-space: normal;
}

.admin-code-block p {
  margin: 0 0 0.8rem;
}

.admin-message-list {
  display: grid;
  gap: 1rem;
}

.admin-message-card {
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.26);
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.admin-message-card header {
  align-items: center;
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
  border-bottom: 1px solid rgba(100, 116, 139, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
}

.admin-message-card header strong {
  color: #1d4ed8;
  text-transform: capitalize;
}

.admin-message-card header span,
.admin-message-card header small {
  color: #64748b;
  font-weight: 700;
}

.admin-message-card__body {
  color: #1f2937;
  line-height: 1.8;
  padding: 1rem;
}

.admin-message-card__body p {
  margin: 0 0 0.8rem;
}

.admin-preview-error {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.9rem;
  color: #9a3412;
  padding: 1rem;
}

.admin-preview-error p {
  margin: 0.35rem 0 0;
}

.admin-auth__shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.admin-auth__panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.4rem;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.15);
  max-width: 30rem;
  padding: 1.4rem;
  width: 100%;
}

.admin-auth__brand {
  background: linear-gradient(110deg, #2563eb, #0f766e);
  border-radius: 1rem;
  color: #fff;
  margin-bottom: 1.2rem;
  padding: 1rem;
}

.admin-auth__heading p {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.admin-auth__heading h1 {
  font-size: 1.6rem;
  font-weight: 850;
  margin: 0 0 1rem;
}

.admin-auth-form {
  display: grid;
  gap: 0.9rem;
}

.admin-checkbox {
  align-items: center;
  display: flex !important;
  flex-direction: row;
  gap: 0.5rem;
}

.admin-checkbox input {
  min-height: 1rem;
  width: 1rem;
}

.admin-auth__links {
  margin-top: 1rem;
}

.admin-auth__links a {
  color: #2563eb;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .admin-shell {
    --admin-sidebar-width: 14.75rem;
  }

  .admin-sidebar {
    padding: 0.9rem;
  }

  .admin-grid.is-4,
  .admin-grid.is-3,
  .admin-grid.is-2,
  .admin-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-sidebar-resizer {
    display: none;
  }

  .admin-mobile-toolbar {
    display: flex;
    justify-content: space-between;
    min-height: 4.25rem;
    padding: 0.7rem 1rem;
  }

  .admin-toolbar__brand {
    display: inline-flex;
  }

  .admin-mobile-menu {
    display: block;
  }

  .admin-account-menu summary span {
    max-width: 14rem;
  }
}

@media (max-width: 720px) {
  .admin-main {
    padding: 1rem;
  }

  .admin-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page-header h1 {
    font-size: 1.85rem;
  }

  .admin-toolbar__brand small {
    display: none;
  }

  .admin-account-menu summary {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .admin-account-menu summary span {
    max-width: 11rem;
  }

  .admin-form-grid,
  .admin-material-block-card__fields,
  .admin-detail-row {
    grid-template-columns: 1fr;
  }

  .admin-material-block-card__header,
  .admin-material-block-builder__toolbar {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-mobile-toolbar {
    gap: 0.55rem;
  }

  .admin-toolbar__brand > span:not(.admin-brand__mark) {
    display: none;
  }

  .admin-account-menu summary span {
    max-width: 9rem;
  }
}
@import "tailwindcss";
@plugin "@tailwindcss/typography";
/* 必要なら */
// @plugin "@tailwindcss/forms";

/* v4 のパージ対象(抽出対象)を明示しておくと安心 */
@source "./app/views";
@source "./app/components";
@source "./app/admin";
body.member-console {
  background:
    radial-gradient(circle at 12% 2%, rgba(37, 99, 235, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(16, 185, 129, 0.12), transparent 30rem),
    linear-gradient(135deg, #f8fbff 0%, #f4fffb 100%);
  color: #172033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

body.member-console main {
  min-width: 0;
  width: 100%;
}

.member-topbar {
  align-items: center;
  background: linear-gradient(110deg, #2563eb 0%, #0891b2 48%, #10b981 100%);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.15);
  color: #fff;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  min-height: 72px;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 60;
}

.member-brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 0.8rem;
  min-width: 0;
  text-decoration: none;
}

.member-brand__mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 0.65rem;
  display: inline-grid;
  height: 2.65rem;
  justify-content: center;
  overflow: hidden;
  padding: 0.22rem;
  width: 2.65rem;
}

.member-brand__logo {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.member-brand strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 780;
  line-height: 1.1;
}

.member-brand small {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.1;
  margin-top: 0.15rem;
}

.member-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.member-nav__link,
.member-mobile-menu__link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.member-nav__link {
  border-radius: 999px;
  font-size: 0.96rem;
  padding: 0.7rem 1rem;
}

.member-nav__link:hover,
.member-nav__link.is-current {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.member-account-menu {
  align-items: center;
  display: block;
  min-width: 0;
  position: relative;
}

.member-account-menu form,
.member-mobile-menu__account form {
  margin: 0;
}

.member-account-menu summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  gap: 0.45rem;
  line-height: 1.25;
  list-style: none;
  max-width: 20rem;
  min-height: 2.65rem;
  padding: 0.65rem 0.9rem;
}

.member-account-menu summary::-webkit-details-marker {
  display: none;
}

.member-account-menu summary::marker {
  content: "";
}

.member-account-menu[open] summary,
.member-account-menu summary:hover {
  background: rgba(255, 255, 255, 0.23);
}

.member-account-menu span,
.member-mobile-menu__account span {
  font-size: 0.86rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-account-menu span {
  max-width: 17rem;
}

.member-account-menu small {
  color: rgba(255, 255, 255, 0.78);
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
}

.member-account-menu__panel {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  width: min(18rem, calc(100vw - 2rem));
}

.member-account-menu__link,
.member-account-menu__logout {
  border-radius: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  font-size: 0.9rem;
  font-weight: 720;
  justify-content: flex-start;
  line-height: 1.25;
  min-height: 2.55rem;
  padding: 0.72rem 0.85rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.member-account-menu__logout {
  background: transparent;
  border: 0;
}

.member-account-menu__link:hover,
.member-account-menu__logout:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.member-logout {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.65rem 0.95rem;
}

.member-mobile-menu {
  display: none;
  position: relative;
}

.member-mobile-menu summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 800;
  height: 2.65rem;
  justify-content: center;
  list-style: none;
  width: 2.65rem;
}

.member-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.member-mobile-menu summary::marker {
  content: "";
}

.member-mobile-menu[open] summary {
  background: rgba(255, 255, 255, 0.25);
}

.member-mobile-menu__panel {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  width: min(20rem, calc(100vw - 2rem));
}

.member-mobile-menu__link {
  border-radius: 0.8rem;
  display: block;
  padding: 0.75rem 0.85rem;
}

.member-mobile-menu__link:hover,
.member-mobile-menu__link.is-current {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.member-mobile-menu__account {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.65rem;
  margin-top: 0.4rem;
  padding: 0.75rem 0.15rem 0.1rem;
}

.member-mobile-menu__account span {
  color: rgba(255, 255, 255, 0.78);
  max-width: 100%;
  padding: 0 0.2rem;
}

.member-mobile-menu__account .member-logout {
  width: 100%;
}

.member-learning-shell,
.member-ai-shell,
.member-ai-images-shell,
.member-dashboard-shell {
  color: #172033;
}

.member-learning-shell {
  max-width: none !important;
  width: 100%;
}

.member-learning-container {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  padding: 0.25rem 1.5rem 2rem !important;
  width: 100%;
}

.member-dashboard-shell,
.member-ai-shell,
.member-ai-images-shell {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  padding: 1.25rem 1.5rem 2rem !important;
  width: 100%;
}

.member-dashboard-shell {
  display: grid;
  gap: 1.2rem;
}

.member-learning-layout {
  --member-learning-sidebar-width: 20rem;
  --member-learning-gap: 2.5rem;
}

.member-learning-main {
  min-width: 0;
}

.member-learning-main > .member-progress-card:first-child {
  margin-top: 0;
}

.member-learning-main > .member-progress-card + .member-empty-state {
  margin-top: 1.5rem;
}

.member-material-layout {
  --member-material-sidebar-gap: 2.5rem;
  --member-material-sidebar-width: 20rem;
  position: relative;
}

.member-material-main {
  min-width: 0;
}

.member-material-nav-row {
  display: none;
}

.member-material-sidebar-frame {
  min-width: 0;
  width: var(--member-material-sidebar-width);
}

.member-material-sidebar-frame .member-course-sidebar {
  max-width: 100%;
  width: 100% !important;
}

.member-material-sidebar-close,
.member-material-sidebar-restore {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(100, 116, 139, 0.32);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 760;
  justify-content: center;
  line-height: 1.25;
  min-height: 2.25rem;
  padding: 0.48rem 0.82rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.member-material-sidebar-close:hover,
.member-material-sidebar-restore:hover {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.32);
  color: #075985;
}

.member-material-sidebar-restore {
  display: none;
  margin: 0;
}

.member-material-sidebar-close::before,
.member-material-sidebar-restore::before {
  color: #2563eb;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1;
  margin-right: 0.35rem;
}

.member-material-sidebar-close::before {
  content: "‹";
}

.member-material-sidebar-restore::before {
  content: "›";
}

.member-material-sidebar-resizer {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #334155;
  cursor: ew-resize;
  display: none;
  font-size: 0.72rem;
  font-weight: 850;
  justify-content: center;
  left: var(--member-material-sidebar-width);
  line-height: 1;
  padding: 0;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 1.2rem;
  z-index: 30;
}

.member-material-sidebar-resizer::before {
  background: #7dd3fc;
  border-radius: 999px;
  bottom: 0;
  content: "";
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 160ms ease;
  width: 2px;
}

.member-material-sidebar-resizer span {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  height: 1.55rem;
  justify-content: center;
  opacity: 0;
  position: sticky;
  top: 50%;
  transform: scale(0.92);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
  width: 1.55rem;
}

.member-material-sidebar-resizer:hover,
.member-material-sidebar-resizer:focus-visible,
.member-material-layout.is-resizing .member-material-sidebar-resizer {
  color: #075985;
  outline: none;
}

.member-material-sidebar-resizer:hover::before,
.member-material-sidebar-resizer:focus-visible::before,
.member-material-layout.is-resizing .member-material-sidebar-resizer::before {
  opacity: 0.65;
}

.member-material-sidebar-resizer:hover span,
.member-material-sidebar-resizer:focus-visible span,
.member-material-layout.is-resizing .member-material-sidebar-resizer span {
  background: #e0f2fe;
  border-color: #7dd3fc;
  box-shadow: 0 14px 30px rgba(14, 116, 144, 0.18);
  opacity: 1;
  transform: scale(1);
}

body.member-material-sidebar-is-resizing {
  cursor: ew-resize;
  user-select: none;
}

@media (min-width: 768px) {
  .member-learning-layout {
    align-items: start;
    column-gap: 1.5rem;
    display: grid;
    grid-template-columns: var(--member-learning-sidebar-width) minmax(0, 1fr);
  }

  .member-learning-sidebar {
    min-width: 0;
    width: var(--member-learning-sidebar-width);
  }

  .member-learning-layout .member-course-sidebar {
    width: 100% !important;
  }

  .member-learning-main {
    padding-top: 0 !important;
  }

  .member-material-layout {
    column-gap: 1.5rem;
    display: grid !important;
    grid-template-columns: var(--member-material-sidebar-width) minmax(0, 1fr);
    row-gap: 0.75rem;
  }

  .member-material-nav-row {
    align-items: center;
    display: flex;
    grid-column: 1 / -1;
    min-height: 2.4rem;
  }

  .member-material-sidebar-resizer {
    bottom: 0;
    display: inline-flex;
  }

  .member-material-layout.is-sidebar-collapsed {
    column-gap: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .member-material-layout.is-sidebar-collapsed .member-material-sidebar-frame,
  .member-material-layout.is-sidebar-collapsed .member-material-sidebar-resizer {
    display: none !important;
  }

  .member-material-layout.is-sidebar-collapsed .member-material-sidebar-close {
    display: none;
  }

  .member-material-layout.is-sidebar-collapsed .member-material-sidebar-restore {
    display: inline-flex;
  }

  .member-material-main {
    padding-top: 0 !important;
  }
}

@media (min-width: 1024px) {
  .member-learning-layout {
    column-gap: var(--member-learning-gap);
  }

  .member-material-layout {
    column-gap: var(--member-material-sidebar-gap);
  }
}

.member-page-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(236, 254, 255, 0.76));
  border: 1px solid rgba(100, 116, 139, 0.34);
  border-radius: 1.35rem;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
  margin: 1rem 0 1.1rem;
  padding: 1.25rem 1.35rem !important;
}

.member-page-hero nav,
.member-page-hero a,
.member-page-hero li {
  font-weight: 650;
}

.member-page-hero h1 {
  color: #111827;
  font-size: 2rem;
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: 0;
}

.member-page-eyebrow {
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.member-panel,
.member-course-sidebar__panel,
.member-ai-sidebar,
.member-ai-thread,
.member-ai-empty,
.member-upload-panel,
.member-mobile-nav details {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(100, 116, 139, 0.34) !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.09);
}

.member-panel,
.member-course-sidebar__panel,
.member-ai-sidebar,
.member-ai-thread,
.member-ai-empty {
  border-radius: 1.25rem !important;
  overflow: hidden;
}

.member-progress-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 253, 250, 0.78)) !important;
}

.member-progress-card h2,
.member-panel h2,
.member-ai-thread h1,
.member-ai-sidebar__header,
.member-empty-state p:first-of-type {
  font-weight: 780 !important;
  letter-spacing: 0;
  line-height: 1.35;
}

.member-progress-card [aria-hidden="true"] > div,
.member-course-sidebar [aria-hidden="true"] > div {
  background: linear-gradient(90deg, #2563eb, #0891b2, #10b981) !important;
}

.member-course-sidebar__panel {
  backdrop-filter: blur(16px) saturate(130%);
}

.member-course-sidebar nav {
  padding: 0.8rem !important;
}

.member-course-card {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(100, 116, 139, 0.34) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.member-course-card summary a {
  min-height: 4.25rem;
}

.member-course-emoji {
  font-size: 1.25rem !important;
  line-height: 1;
}

.member-course-card a {
  text-decoration: none;
}

.member-course-card p,
.member-course-card span {
  letter-spacing: 0;
}

.member-course-card:hover {
  transform: translateY(-1px);
}

.member-lesson-link,
.member-material-link {
  border-color: rgba(100, 116, 139, 0.38) !important;
  min-width: 0;
}

.member-lesson-link {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)) !important;
  min-height: 3rem;
}

.member-lesson-link.is-active,
.member-material-link.is-active {
  border-color: rgba(37, 99, 235, 0.38) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.member-lesson-toggle {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 0.78rem;
  line-height: 1;
}

.member-lesson-index,
.member-material-index {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 750;
  justify-content: center;
  line-height: 1;
}

.member-lesson-index {
  background: linear-gradient(135deg, var(--course-from, #2563eb), var(--course-to, #0891b2));
  color: #fff;
  font-size: 0.74rem;
  height: 1.65rem;
  min-width: 1.65rem;
}

.member-lesson-count {
  background: rgba(241, 245, 249, 0.96);
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 999px;
  color: #64748b;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.48rem;
}

.member-material-link {
  background: rgba(255, 255, 255, 0.88) !important;
}

.member-material-index {
  background: rgba(239, 246, 255, 0.98);
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: #2563eb;
  font-size: 0.67rem;
  height: 1.35rem;
  min-width: 2rem;
  padding: 0 0.32rem;
}

.member-mobile-nav details {
  backdrop-filter: blur(16px) saturate(130%);
}

.member-empty-state {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.78));
  border-color: rgba(37, 99, 235, 0.32) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 20px 48px rgba(15, 23, 42, 0.07);
}

.member-empty-state__icon {
  background: linear-gradient(135deg, #dbeafe, #ccfbf1) !important;
}

.member-ai-workspace {
  --member-ai-history-width: 18rem;
  --member-ai-history-rail-width: 3.5rem;
  --member-ai-workspace-gap: 1.5rem;
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  padding-top: 0;
  position: relative;
  width: 100%;
}

.member-ai-sidebar-frame,
.member-ai-main {
  min-width: 0;
}

.member-ai-sidebar-frame {
  width: var(--member-ai-history-width);
}

.member-ai-sidebar {
  position: sticky;
  top: 1rem;
}

.member-ai-sidebar__actions {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.member-ai-sidebar__actions form {
  margin: 0;
}

.member-ai-sidebar__collapse {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-weight: 780;
  justify-content: center;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.member-ai-sidebar__collapse {
  font-size: 1.15rem;
  height: 2rem;
  padding: 0;
  width: 2rem;
}

.member-ai-sidebar__collapse:hover,
.member-ai-sidebar__collapse:focus-visible {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.34);
  color: #075985;
  outline: none;
}

.member-ai-history-rail {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.88));
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 1rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  display: none !important;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: flex-start;
  padding: 0.55rem;
  position: sticky;
  top: 1rem;
  width: var(--member-ai-history-rail-width);
}

.member-ai-history-rail__form {
  margin: 0;
}

.member-ai-history-rail__button {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 0.85rem;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  width: 2.35rem;
}

.member-ai-history-rail__button--primary {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-color: rgba(37, 99, 235, 0.48);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.member-ai-history-rail__button:hover,
.member-ai-history-rail__button:focus-visible {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.34);
  color: #075985;
  outline: none;
  transform: translateY(-1px);
}

.member-ai-history-rail__button--primary:hover,
.member-ai-history-rail__button--primary:focus-visible {
  background: linear-gradient(135deg, #1d4ed8, #0e7490);
  color: #fff;
}

.member-ai-history-rail__button[data-tooltip]::after {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 0.55rem;
  color: #fff;
  content: attr(data-tooltip);
  font-size: 0.74rem;
  font-weight: 700;
  left: calc(100% + 0.55rem);
  line-height: 1;
  opacity: 0;
  padding: 0.5rem 0.62rem;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-0.25rem, -50%);
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: nowrap;
  z-index: 70;
}

.member-ai-history-rail__button[data-tooltip]:hover::after,
.member-ai-history-rail__button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.member-ai-history-rail__glyph {
  font-size: 1.05rem;
  font-weight: 850;
}

.member-ai-sidebar__header,
.member-ai-thread__header {
  background: linear-gradient(90deg, #eff6ff 0%, #ecfeff 100%);
  border-color: rgba(100, 116, 139, 0.30) !important;
}

.member-ai-shell .member-ai-sidebar,
.member-ai-shell .member-ai-thread,
.member-ai-shell .member-ai-empty,
.member-ai-shell .member-upload-panel {
  border-color: rgba(148, 163, 184, 0.24) !important;
}

.member-ai-shell .member-ai-sidebar__header,
.member-ai-shell .member-ai-thread__header {
  border-color: rgba(148, 163, 184, 0.22) !important;
}

.member-ai-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.member-ai-history-list > li + li {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.member-ai-history-item {
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.member-ai-history-item:hover {
  background: #f8fafc;
}

.member-ai-history-item.is-active {
  background: linear-gradient(90deg, #eff6ff, #f0fdfa) !important;
}

.member-ai-history-item a {
  text-decoration: none;
}

.member-ai-thread {
  min-height: 34rem;
}

.member-chat-log {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.78), rgba(255, 255, 255, 0.92));
  scrollbar-color: rgba(37, 99, 235, 0.35) transparent;
}

.member-message {
  padding: 0.15rem 0;
}

.member-message-bubble {
  border: 1px solid rgba(100, 116, 139, 0.30);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  line-height: 1.75;
}

.member-message--user .member-message-bubble {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
  border-color: rgba(37, 99, 235, 0.3);
  color: #fff !important;
}

.member-message--assistant .member-message-bubble {
  background: rgba(255, 255, 255, 0.94) !important;
  color: #172033 !important;
}

.member-message-bubble .ai-copy {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(100, 116, 139, 0.36);
  border-radius: 999px;
  display: inline-flex;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

.member-chat-composer {
  background: rgba(255, 255, 255, 0.92) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.member-chat-input,
.member-chat-form input,
.member-chat-form select,
.member-chat-form details,
.member-ai-sidebar input {
  border-color: rgba(100, 116, 139, 0.48) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.member-chat-input {
  font-size: 1rem;
  line-height: 1.7;
  min-height: 7rem;
}

.member-chat-input:focus,
.member-chat-form input:focus,
.member-chat-form select:focus,
.member-ai-sidebar input:focus {
  border-color: rgba(37, 99, 235, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.member-action-primary,
.member-action-secondary,
.member-mini-button,
.member-icon-button {
  align-items: center;
  display: inline-flex;
  font-weight: 720 !important;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.25;
  text-decoration: none !important;
}

.member-action-primary {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
  border: 1px solid rgba(37, 99, 235, 0.32) !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
  color: #fff !important;
  min-height: 2.75rem;
  padding-left: 1.05rem !important;
  padding-right: 1.05rem !important;
}

.member-action-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.member-action-secondary,
.member-mini-button {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(100, 116, 139, 0.48) !important;
  color: #1e40af !important;
}

.member-action-secondary {
  min-height: 2.65rem;
}

.member-mini-button {
  min-height: 2rem;
}

.member-icon-button {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.member-details {
  background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
  border-radius: 1rem !important;
}

.member-upload-panel {
  border-radius: 1.1rem !important;
}

.member-ai-image-card {
  border-color: rgba(100, 116, 139, 0.34) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.member-dashboard-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 250, 0.74)) !important;
  border: 1px solid rgba(100, 116, 139, 0.34) !important;
  border-radius: 1.45rem;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.09) !important;
  padding: 1.35rem;
}

.member-dashboard-panel > .min-w-0:first-child {
  align-items: center;
  display: grid;
  gap: 1rem;
}

.member-dashboard-panel > .min-w-0:first-child > p {
  margin-top: -0.35rem !important;
}

.member-dashboard-panel > .min-w-0:first-child > div {
  justify-self: start;
}

.member-dashboard-section {
  border-top: 1px solid rgba(100, 116, 139, 0.28);
  margin-top: 1.35rem;
  padding-top: 1.35rem;
}

.member-dashboard-account-card {
  align-items: center;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(236, 253, 245, 0.68));
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 1.15rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1rem;
}

.member-dashboard-account-card__content {
  min-width: 0;
}

.member-dashboard-account-card h2 {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 780;
  letter-spacing: 0;
  margin: 0;
}

.member-dashboard-account-card p {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.7;
  margin: 0.25rem 0 0;
}

.member-dashboard-account-card__email {
  overflow-wrap: anywhere;
}

.member-dashboard-account-card__email strong {
  color: #111827;
  font-weight: 760;
}

.member-dashboard-account-card__button {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-radius: 0.95rem;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
  color: #fff;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 780;
  justify-content: center;
  letter-spacing: 0;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  white-space: nowrap;
}

.member-dashboard-account-card__button:hover {
  color: #fff;
  filter: brightness(1.03);
  text-decoration: none;
}

@media (min-width: 768px) {
  .member-dashboard-panel {
    padding: 1.55rem;
  }

  .member-dashboard-panel > .min-w-0:first-child {
    column-gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.45rem;
  }

  .member-dashboard-panel > .min-w-0:first-child > h1,
  .member-dashboard-panel > .min-w-0:first-child > p {
    grid-column: 1;
  }

  .member-dashboard-panel > .min-w-0:first-child > div {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }
}

.member-dashboard-actions {
  max-width: 100%;
  width: 100%;
}

.member-dashboard-actions a {
  width: 100%;
}

@media (min-width: 1024px) {
  .member-dashboard-actions {
    width: min(18rem, 100%);
  }
}

.member-danger-link {
  font-weight: 650;
  text-decoration: none !important;
}

.member-account-shell {
  color: #172033;
  display: grid;
  gap: 1.2rem;
  margin: 0 auto;
  max-width: 1500px;
  padding: 1.25rem 1.5rem 2rem;
  width: 100%;
}

.member-account-errors {
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 1rem;
  color: #991b1b;
  padding: 1rem 1.1rem;
}

.member-account-errors ul {
  margin-bottom: 0;
}

.member-account-hero,
.member-account-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(100, 116, 139, 0.34);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
}

.member-account-hero {
  align-items: center;
  background:
    radial-gradient(circle at 86% 8%, rgba(16, 185, 129, 0.14), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.82));
  border-radius: 1.45rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.35rem;
}

.member-account-hero h1 {
  color: #111827;
  font-size: 2.15rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.member-account-hero p {
  color: #475569;
  line-height: 1.75;
  margin: 0.55rem 0 0;
}

.member-account-hero__identity {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  display: grid;
  gap: 0.3rem;
  max-width: min(26rem, 100%);
  min-width: min(22rem, 100%);
  padding: 1rem;
}

.member-account-hero__identity span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 740;
}

.member-account-hero__identity strong {
  color: #111827;
  display: block;
  font-size: 1rem;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-account-layout {
  align-items: start;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1.28fr) minmax(22rem, 0.58fr);
}

.member-account-main,
.member-account-sidebar {
  min-width: 0;
}

.member-account-sidebar {
  display: grid;
  gap: 1.1rem;
  position: sticky;
  top: 5.5rem;
}

.member-account-panel {
  border-radius: 1.25rem;
  overflow: hidden;
}

.member-account-panel__header {
  align-items: flex-start;
  background: linear-gradient(90deg, #eff6ff 0%, #ecfeff 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.member-account-panel__header--compact {
  align-items: center;
}

.member-account-panel__header h2 {
  color: #111827;
  font-size: 1.24rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0;
}

.member-account-panel__header p {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.55;
  margin: 0.25rem 0 0;
}

.member-account-panel__body {
  padding: 1.1rem;
}

.member-account-form {
  display: grid;
  gap: 1.1rem;
}

.member-account-form-section {
  border-bottom: 1px solid rgba(100, 116, 139, 0.22);
  display: grid;
  gap: 1rem;
  padding-bottom: 1.1rem;
}

.member-account-form-section__intro h3 {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 780;
  letter-spacing: 0;
  margin: 0;
}

.member-account-form-section__intro p,
.member-account-withdrawal-copy {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.7;
  margin: 0.25rem 0 0;
}

.member-account-form-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-account-form-grid--password .member-account-field {
  grid-template-rows: auto auto minmax(1.22rem, auto);
}

.member-account-field {
  display: grid;
  gap: 0.42rem;
  align-content: start;
  min-width: 0;
}

.member-account-field span {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 720;
}

.member-account-field input,
.member-account-field textarea {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(100, 116, 139, 0.48);
  border-radius: 0.95rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  color: #111827;
  font: inherit;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.member-account-field textarea {
  line-height: 1.7;
  resize: vertical;
}

.member-account-field input:focus,
.member-account-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.member-account-field--danger textarea:focus {
  border-color: rgba(220, 38, 38, 0.72);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.member-account-field small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 620;
  line-height: 1.55;
}

.member-account-field__spacer {
  visibility: hidden;
}

.member-account-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.member-account-actions__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.member-account-button {
  border-radius: 0.95rem;
  min-height: 2.9rem;
  padding: 0.75rem 1rem !important;
}

.member-account-button--submit {
  min-width: min(12rem, 100%);
}

.member-account-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 780;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
}

.member-account-status.is-good {
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #047857;
}

.member-account-status.is-warn {
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #92400e;
}

.member-account-status.is-danger {
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #b91c1c;
}

.member-account-kv {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-account-kv div {
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9rem;
  padding: 0.8rem;
}

.member-account-kv dt {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.4;
}

.member-account-kv dd {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1.45;
  margin: 0.25rem 0 0;
}

.member-account-progress {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.member-account-progress div:first-child {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: space-between;
}

.member-account-progress strong {
  color: #047857;
}

.member-account-progress__bar {
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  height: 0.55rem;
  overflow: hidden;
}

.member-account-progress__bar span {
  background: linear-gradient(90deg, #2563eb, #0891b2, #10b981);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.member-account-panel--danger .member-account-panel__header {
  background: linear-gradient(90deg, rgba(254, 242, 242, 0.92), rgba(255, 247, 237, 0.86));
}

.member-account-withdrawal-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.member-account-danger-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 38, 38, 0.34);
  border-radius: 0.95rem;
  color: #b91c1c;
  cursor: pointer;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  text-align: center;
}

.member-account-danger-button:hover {
  background: #fff1f2;
}

.member-account-withdrawal-request {
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 1rem;
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem;
}

.member-account-withdrawal-request span {
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 780;
}

.member-account-withdrawal-request p {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.member-account-withdrawal-request small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
}

.member-web-checker-shell {
  color: #172033;
  display: grid;
  gap: 1.3rem;
  margin: 0 auto;
  max-width: 1500px;
  padding: 1.25rem 1.5rem 2rem;
  width: 100%;
}

.member-web-checker-hero,
.member-web-checker-card,
.member-web-checker-results,
.member-web-checker-result,
.member-web-checker-score-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(100, 116, 139, 0.34);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
}

.member-web-checker-hero {
  align-items: stretch;
  background:
    radial-gradient(circle at 86% 8%, rgba(16, 185, 129, 0.14), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.82));
  border-radius: 1.45rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.36fr);
  padding: 1.4rem;
}

.member-web-checker-hero h1 {
  color: #111827;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.member-web-checker-hero p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0.8rem 0 0;
  max-width: 48rem;
}

.member-web-checker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.member-web-checker-tags span,
.member-web-checker-chip-list span {
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  color: #1e40af;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.25;
  padding: 0.38rem 0.65rem;
}

.member-web-checker-hero__note {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(8, 145, 178, 0.92));
  border-radius: 1.15rem;
  color: #fff;
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem;
}

.member-web-checker-hero__note strong {
  font-size: 1.05rem;
  font-weight: 780;
}

.member-web-checker-hero__note span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.7;
}

.member-web-checker-layout {
  align-items: stretch;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.35fr);
}

.member-web-checker-card,
.member-web-checker-results {
  border-radius: 1.25rem;
  padding: 1.2rem;
}

.member-web-checker-card h2,
.member-web-checker-result h2 {
  color: #111827;
  font-size: 1.2rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0;
}

.member-web-checker-card__head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-web-checker-form {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-web-checker-form label {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.member-web-checker-form label span {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 720;
}

.member-web-checker-form input,
.member-web-checker-form select {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(100, 116, 139, 0.48);
  border-radius: 0.95rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  color: #111827;
  font-size: 1rem;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.member-web-checker-form input:focus,
.member-web-checker-form select:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.member-web-checker-form__wide,
.member-web-checker-form__actions {
  grid-column: 1 / -1;
}

.member-web-checker-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.member-web-checker-primary,
.member-web-checker-secondary {
  align-items: center;
  border-radius: 0.95rem;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  line-height: 1.25;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
}

.member-web-checker-primary {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border: 1px solid rgba(37, 99, 235, 0.32);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.16);
  color: #fff;
}

.member-web-checker-primary.is-loading,
.member-web-checker-secondary.is-loading {
  opacity: 0.86;
}

.member-web-checker-primary.is-loading::before,
.member-web-checker-secondary.is-loading::before,
.member-web-checker-result__head span[data-state="loading"]::before {
  animation: member-web-checker-spin 0.8s linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 0.9rem;
  margin-right: 0.42rem;
  width: 0.9rem;
}

.member-web-checker-secondary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(100, 116, 139, 0.42);
  color: #1e40af;
}

.member-web-checker-bullets {
  color: #475569;
  display: grid;
  gap: 0.72rem;
  line-height: 1.7;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.member-web-checker-bullets li {
  padding-left: 1.2rem;
  position: relative;
}

.member-web-checker-bullets li::before {
  background: linear-gradient(135deg, #2563eb, #10b981);
  border-radius: 999px;
  content: "";
  height: 0.48rem;
  left: 0;
  position: absolute;
  top: 0.62rem;
  width: 0.48rem;
}

.member-web-checker-results {
  display: grid;
  gap: 1rem;
  grid-template-columns: 18rem minmax(0, 1fr);
}

.member-web-checker-results[hidden] {
  display: none;
}

.member-web-checker-score-card {
  border-radius: 1.15rem;
  padding: 1.1rem;
}

.member-web-checker-score {
  align-items: center;
  background:
    radial-gradient(circle, #fff 0 58%, transparent 59%),
    conic-gradient(#2563eb 0 68%, #e2e8f0 68% 100%);
  border-radius: 50%;
  color: #111827;
  display: flex;
  font-size: 2.4rem;
  font-weight: 820;
  height: 9rem;
  justify-content: center;
  margin: 1rem auto;
  width: 9rem;
}

.member-web-checker-score-card p:last-child {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

.member-web-checker-result-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-web-checker-result {
  border-radius: 1.15rem;
  overflow: hidden;
}

.member-web-checker-result--priority {
  grid-column: 1 / -1;
}

.member-web-checker-result__head {
  align-items: center;
  background: linear-gradient(90deg, #eff6ff 0%, #ecfeff 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.member-web-checker-result__head span {
  background: #e2e8f0;
  border-radius: 999px;
  color: #334155;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 760;
  padding: 0.34rem 0.58rem;
}

.member-web-checker-result__head span[data-state="good"] {
  background: #ccfbf1;
  color: #0f766e;
}

.member-web-checker-result__head span[data-state="warn"] {
  background: #fef3c7;
  color: #92400e;
}

.member-web-checker-result__head span[data-state="bad"] {
  background: #fee2e2;
  color: #991b1b;
}

.member-web-checker-result__head span[data-state="loading"] {
  align-items: center;
  background: #e0f2fe;
  color: #075985;
  display: inline-flex;
}

@keyframes member-web-checker-spin {
  to {
    transform: rotate(360deg);
  }
}

.member-web-checker-result__body {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 1rem;
}

.member-web-checker-kv {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.member-web-checker-kv div {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.8rem;
  padding: 0.7rem;
}

.member-web-checker-kv dt {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.member-web-checker-kv dd {
  color: #172033;
  font-weight: 650;
  margin: 0.18rem 0 0;
  overflow-wrap: anywhere;
}

.member-web-checker-kv small {
  color: #64748b;
  font-weight: 650;
}

.member-web-checker-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.member-web-checker-suggestions,
.member-web-checker-priority {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  padding-left: 1.25rem;
}

.member-web-checker-suggestions strong {
  color: #0f766e;
  display: block;
}

.member-web-checker-suggestions small {
  color: #64748b;
  display: block;
  line-height: 1.6;
}

.member-web-checker-metrics {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-web-checker-metrics div {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  padding: 0.85rem;
}

.member-web-checker-metrics strong {
  color: #111827;
  display: block;
  font-size: 1.65rem;
  font-weight: 820;
  line-height: 1;
}

.member-web-checker-metrics span {
  color: #64748b;
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.member-web-checker-place {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem;
}

.member-web-checker-place + .member-web-checker-place {
  margin-top: 0.55rem;
}

.member-web-checker-place.is-selected {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.10);
}

.member-web-checker-place strong {
  color: #111827;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: space-between;
}

.member-web-checker-place strong em {
  background: #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 820;
  padding: 0.2rem 0.48rem;
}

.member-web-checker-place span,
.member-web-checker-place small {
  color: #64748b;
}

.member-web-checker-place a {
  color: #2563eb;
  font-weight: 720;
  margin-top: 0.25rem;
  text-decoration: none;
}

.member-web-checker-details {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(240, 253, 250, 0.86));
  border: 1px solid rgba(100, 116, 139, 0.30);
  border-radius: 1rem;
  padding: 0.85rem;
}

.member-web-checker-details summary {
  color: #1e40af;
  cursor: pointer;
  font-weight: 760;
  line-height: 1.35;
}

.member-web-checker-form--nested {
  margin-top: 0.85rem;
}

.member-web-checker-map-search {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(240, 253, 250, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
}

.member-web-checker-map-search small {
  color: #64748b;
  font-weight: 650;
  line-height: 1.6;
}

.member-web-checker-place-candidates {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
}

.member-web-checker-place-candidates > strong {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 820;
}

.member-web-checker-place-candidates > p {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 0;
}

.member-web-checker-place-candidates__list {
  display: grid;
  gap: 0.5rem;
}

.member-web-checker-place-candidate {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.85rem;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.75rem;
  text-align: left;
}

.member-web-checker-place-candidate:hover,
.member-web-checker-place-candidate.is-selected {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.10);
}

.member-web-checker-place-candidate b,
.member-web-checker-place-candidate small {
  display: block;
}

.member-web-checker-place-candidate b {
  color: #111827;
  font-weight: 820;
}

.member-web-checker-place-candidate small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 0.18rem;
}

.member-web-checker-place-candidate em {
  background: #eff6ff;
  border-radius: 999px;
  color: #1d4ed8;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 820;
  padding: 0.32rem 0.55rem;
}

.member-web-checker-connect {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.9rem;
}

.member-web-checker-connect strong {
  color: #111827;
  font-weight: 780;
}

.member-web-checker-connect p {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 0;
}

.member-web-checker-connect form {
  margin: 0;
}

.member-web-checker-connect__badge {
  background: #e2e8f0;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 760;
  justify-content: center;
  padding: 0.34rem 0.62rem;
  width: fit-content;
}

.member-web-checker-connect__badge.is-connected {
  background: #ccfbf1;
  color: #0f766e;
}

.member-web-checker-connect__badge.is-pending {
  background: #fef3c7;
  color: #92400e;
}

.member-web-checker-connect__button {
  text-decoration: none;
  width: fit-content;
}

.member-web-checker-score-card__actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.member-web-checker-kv--compact {
  margin-top: 0.8rem;
}

.member-web-checker-metrics--mini {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.member-web-checker-metrics--mini strong {
  font-size: 1rem;
}

.member-web-checker-meo-score {
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #ccfbf1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 1rem;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding: 0.9rem;
}

.member-web-checker-meo-score strong {
  color: #0f766e;
  font-size: 2rem;
  font-weight: 820;
  line-height: 1;
}

.member-web-checker-meo-score span {
  color: #334155;
  font-weight: 760;
}

.member-web-checker-match-summary {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.8rem;
}

.member-web-checker-match-summary--ok {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.24);
}

.member-web-checker-match-summary--warn {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.30);
}

.member-web-checker-match-summary strong {
  color: #111827;
  font-weight: 820;
}

.member-web-checker-match-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.member-web-checker-match-summary li {
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.55;
}

.member-web-checker-keyword-sections {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.member-web-checker-search-performance {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.85rem;
}

.member-web-checker-search-performance div {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  padding: 0.8rem;
}

.member-web-checker-search-performance strong,
.member-web-checker-search-performance span {
  display: block;
}

.member-web-checker-search-performance strong {
  color: #111827;
  font-size: 0.98rem;
  font-weight: 820;
}

.member-web-checker-search-performance span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 760;
  margin-top: 0.22rem;
}

.member-web-checker-search-performance ul {
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.30);
  border-radius: 0.9rem;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.75rem 0.75rem 0.75rem 1.6rem;
}

.member-web-checker-search-performance li {
  color: #78350f;
  font-size: 0.84rem;
  line-height: 1.55;
}

.member-web-checker-keyword-sections section {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  padding: 0.85rem;
}

.member-web-checker-keyword-sections h3 {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 820;
  margin: 0;
}

.member-web-checker-keyword-sections p {
  color: #64748b;
  margin: 0.45rem 0 0;
}

.member-web-checker-table-wrap {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  margin-top: 0.85rem;
  overflow-x: auto;
}

.member-web-checker-table {
  border-collapse: collapse;
  min-width: 42rem;
  width: 100%;
}

.member-web-checker-table th,
.member-web-checker-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.member-web-checker-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 780;
}

.member-web-checker-table td {
  color: #172033;
  font-size: 0.86rem;
  font-weight: 650;
}

.member-web-checker-query-label {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 820;
  line-height: 1.2;
  padding: 0.26rem 0.55rem;
  white-space: nowrap;
}

.member-web-checker-query-label.is-good {
  background: #dcfce7;
  color: #047857;
}

.member-web-checker-query-label.is-low {
  background: #fef3c7;
  color: #92400e;
}

.member-web-checker-query-label.is-warn {
  background: #fee2e2;
  color: #b91c1c;
}

.member-web-checker-query-label.is-muted {
  background: #e2e8f0;
  color: #475569;
}

.member-web-checker-raw-data {
  background: rgba(248, 250, 252, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.member-web-checker-raw-data summary {
  color: #1d4ed8;
  cursor: pointer;
  font-weight: 820;
}

.member-web-checker-raw-data p {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0.45rem 0 0;
}

.member-web-checker-report {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(100, 116, 139, 0.34);
  border-radius: 1.25rem;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
  padding: 1.2rem;
}

.member-web-checker-report[hidden] {
  display: none;
}

.member-web-checker-report__toolbar {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.member-web-checker-report__toolbar h2 {
  color: #111827;
  font-size: 1.35rem;
  font-weight: 820;
  margin: 0;
}

.member-web-checker-report__toolbar p {
  color: #64748b;
  line-height: 1.7;
  margin: 0.3rem 0 0;
}

.member-web-checker-report__paper {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  display: grid;
  gap: 1.1rem;
  padding: 1.15rem;
}

.member-web-checker-report__cover {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28), transparent 22rem),
    linear-gradient(135deg, #1d4ed8 0%, #0891b2 48%, #10b981 100%);
  border-radius: 1.1rem;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
  color: #fff;
  min-height: 18rem;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.member-web-checker-report__cover::after {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  content: "";
  height: 18rem;
  position: absolute;
  right: -6rem;
  top: -8rem;
  width: 18rem;
}

.member-web-checker-report__brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.member-web-checker-report__brand span {
  color: #fff;
  font-size: 1rem;
  font-weight: 820;
}

.member-web-checker-report__brand small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-web-checker-report__kicker {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  margin: 2.5rem 0 0.4rem;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.member-web-checker-report__cover h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4vw, 4.3rem);
  font-weight: 820;
  line-height: 1.08;
  margin: 0;
  max-width: 42rem;
  position: relative;
  z-index: 1;
}

.member-web-checker-report__client {
  display: grid;
  gap: 0.35rem;
  margin-top: 2.1rem;
  position: relative;
  z-index: 1;
}

.member-web-checker-report__client strong {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 820;
}

.member-web-checker-report__client span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 680;
}

.member-web-checker-report__section {
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 1rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
  padding: 1.15rem;
}

.member-web-checker-report__section-head {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.member-web-checker-report__section-head p {
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.member-web-checker-report__section-head h2 {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 820;
  margin: 0;
}

.member-web-checker-report__lead {
  color: #334155;
  font-weight: 650;
  line-height: 1.75;
  margin: 0 0 1rem;
}

.member-web-checker-report__paper p,
.member-web-checker-report__paper li,
.member-web-checker-report__paper dd {
  color: #334155;
  line-height: 1.75;
}

.member-web-checker-report__score-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.member-web-checker-report__score-card {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.95rem;
  color: #111827;
  display: grid;
  gap: 0.2rem;
  min-height: 7.2rem;
  padding: 1rem;
}

.member-web-checker-report__score-card span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.member-web-checker-report__score-card strong {
  color: #111827;
  font-size: 2.4rem;
  font-weight: 820;
  line-height: 1;
}

.member-web-checker-report__score-card small {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 650;
}

.member-web-checker-report__score-card--score {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.member-web-checker-report__score-card--score span,
.member-web-checker-report__score-card--score strong,
.member-web-checker-report__score-card--score small {
  color: #fff;
}

.member-web-checker-report__score-card--seo strong {
  color: #059669;
}

.member-web-checker-report__score-card--pagespeed strong {
  color: #c2410c;
}

.member-web-checker-report__score-card--meo strong {
  color: #0f766e;
}

.member-web-checker-report__score-card--search strong {
  color: #475569;
}

.member-web-checker-report__priority-grid {
  counter-reset: priority;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.member-web-checker-report__priority-card {
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 0.95rem;
  display: grid;
  gap: 0.65rem;
  min-height: 8.5rem;
  padding: 1rem;
}

.member-web-checker-report__priority-card span {
  color: #2563eb;
  font-size: 1.45rem;
  font-weight: 820;
  line-height: 1;
}

.member-web-checker-report__priority-card p {
  color: #172033;
  font-weight: 760;
  margin: 0;
}

.member-web-checker-report__comments {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-web-checker-report__comment {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.95rem;
  padding: 1rem;
}

.member-web-checker-report__comment h3 {
  color: #0f766e;
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.45;
  margin: 0 0 0.35rem;
}

.member-web-checker-report__comment p {
  margin: 0;
}

.member-web-checker-report__section--plan {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.1)),
    #fff;
}

.member-web-checker-report__plan-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.45rem;
}

.member-web-checker-report__plan-list li {
  color: #172033;
  font-weight: 760;
}

.member-web-checker-report__closing {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 0.85rem;
  color: #172033;
  font-weight: 760;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
}

.member-web-checker-report__data-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.member-web-checker-report__data-grid div {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.85rem;
  padding: 0.8rem;
}

.member-web-checker-report__data-grid dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.member-web-checker-report__data-grid dd {
  color: #172033;
  font-weight: 700;
  margin: 0;
}

.member-questions-shell {
  color: #172033;
  display: grid;
  gap: 1.2rem;
  margin: 0 auto;
  max-width: 1500px;
  padding: 1.25rem 1.5rem 2rem;
  width: 100%;
}

.member-questions-hero,
.member-question-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(100, 116, 139, 0.34);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
}

.member-questions-hero {
  align-items: center;
  background:
    radial-gradient(circle at 86% 8%, rgba(16, 185, 129, 0.14), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.82));
  border-radius: 1.45rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.35rem;
}

.member-questions-hero h1 {
  color: #111827;
  font-size: 2.15rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.member-questions-hero p {
  color: #475569;
  line-height: 1.75;
  margin: 0.55rem 0 0;
}

.member-questions-hero__stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(7rem, 1fr));
  min-width: min(22rem, 100%);
}

.member-questions-hero__stats div {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  padding: 0.95rem;
}

.member-questions-hero__stats span {
  color: #64748b;
  display: block;
  font-size: 0.78rem;
  font-weight: 740;
}

.member-questions-hero__stats strong {
  color: #111827;
  display: block;
  font-size: 1.85rem;
  font-weight: 820;
  line-height: 1;
  margin-top: 0.35rem;
}

.member-questions-layout {
  align-items: start;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.36fr);
}

.member-questions-main,
.member-questions-sidebar,
.member-question-detail {
  min-width: 0;
}

.member-questions-sidebar {
  display: grid;
  gap: 1.1rem;
  position: sticky;
  top: 5.5rem;
}

.member-question-panel {
  border-radius: 1.25rem;
  overflow: hidden;
}

.member-question-panel__header {
  align-items: flex-start;
  background: linear-gradient(90deg, #eff6ff 0%, #ecfeff 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.member-question-panel__header h1,
.member-question-panel__header h2 {
  color: #111827;
  font-size: 1.18rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0;
}

.member-question-panel__header h1 {
  font-size: 1.65rem;
}

.member-question-panel__header p {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.55;
  margin: 0.25rem 0 0;
}

.member-question-panel__body {
  padding: 1.1rem;
}

.member-question-search,
.member-question-form {
  display: grid;
  gap: 0.9rem;
}

.member-question-search {
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.35fr) auto;
}

.member-question-search label,
.member-question-form label {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.member-question-search label span,
.member-question-form label span,
.member-question-form legend {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 720;
}

.member-question-search input,
.member-question-search select,
.member-question-form input,
.member-question-form select,
.member-question-form textarea {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(100, 116, 139, 0.48);
  border-radius: 0.95rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  color: #111827;
  font: inherit;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.member-question-form textarea {
  line-height: 1.7;
  min-height: 9rem;
  resize: vertical;
}

.member-question-search input:focus,
.member-question-search select:focus,
.member-question-form input:focus,
.member-question-form select:focus,
.member-question-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.member-question-search__actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.member-question-search__actions .member-action-primary {
  min-height: 3rem;
  padding-left: 1.35rem !important;
  padding-right: 1.35rem !important;
  white-space: nowrap;
}

.member-question-list,
.member-question-history {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.member-question-card,
.member-question-history__item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 1rem;
  color: inherit;
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  text-decoration: none;
}

.member-question-card:hover,
.member-question-history__item:hover {
  background: #f8fafc;
}

.member-question-card header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.member-question-card header small,
.member-question-history__item small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
}

.member-question-card h3,
.member-question-history__item strong {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 780;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.member-question-card p,
.member-question-card__answer span {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.member-question-card__answer {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.85rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
}

.member-question-card__answer strong {
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 780;
}

.member-question-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.25;
  padding: 0.36rem 0.62rem;
  white-space: nowrap;
}

.member-question-badge.is-success {
  background: #ccfbf1;
  color: #0f766e;
}

.member-question-badge.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.member-question-badge.is-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.member-question-badge.is-muted {
  background: #e2e8f0;
  color: #475569;
}

.member-question-form fieldset {
  border: 0;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.member-question-radio {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 0.85rem;
  display: flex !important;
  gap: 0.55rem !important;
  padding: 0.7rem 0.8rem;
}

.member-question-radio input {
  box-shadow: none;
  min-height: auto;
  width: auto;
}

.member-question-errors {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 1rem;
  color: #9f1239;
  margin-bottom: 1rem;
  padding: 0.9rem;
}

.member-question-errors ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.member-question-history__item span {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.member-question-empty {
  color: #64748b;
  padding: 1.5rem;
  text-align: center;
}

.member-question-empty strong {
  color: #1f2937;
  display: block;
}

.member-question-empty.is-compact {
  padding: 1rem;
}

.member-question-detail {
  margin: 0 auto;
  max-width: 980px;
}

.member-question-detail__nav {
  margin-bottom: 0.85rem;
}

.member-question-detail__badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.member-question-detail__body {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.member-question-meta {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.member-question-meta div {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.85rem;
  padding: 0.8rem;
}

.member-question-meta dt {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 760;
  margin-bottom: 0.22rem;
}

.member-question-meta dd {
  color: #172033;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.member-question-content {
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.26);
  border-radius: 1rem;
  color: #334155;
  line-height: 1.85;
  padding: 1rem;
}

.member-question-content.is-answer {
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
}

.member-question-content h2 {
  color: #111827;
  font-size: 1rem;
  font-weight: 780;
  margin: 0 0 0.65rem;
}

.member-question-content p {
  margin: 0 0 0.8rem;
}

.member-dashboard-shell,
.member-ai-shell,
.member-ai-images-shell,
.member-web-checker-shell,
.member-questions-shell {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

@media (min-width: 768px) {
  .member-ai-workspace {
    align-items: start;
    column-gap: var(--member-ai-workspace-gap);
    display: grid !important;
    grid-template-columns: var(--member-ai-history-width) minmax(0, 1fr);
    row-gap: 0;
  }

  .member-ai-workspace.is-history-collapsed {
    column-gap: 1rem;
    grid-template-columns: var(--member-ai-history-rail-width) minmax(0, 1fr);
  }

  .member-ai-workspace.is-history-collapsed .member-ai-sidebar-frame {
    display: none !important;
  }

  .member-ai-workspace.is-history-collapsed .member-ai-history-rail {
    display: flex !important;
  }

  .member-ai-main {
    padding-top: 0 !important;
  }
}

@media print {
  @page {
    margin: 11mm;
    size: A4 landscape;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.member-console {
    background: #fff !important;
  }

  #flash,
  .member-topbar,
  .member-web-checker-hero,
  .member-web-checker-layout,
  .member-web-checker-results,
  .member-web-checker-report__toolbar {
    display: none !important;
  }

  .member-web-checker-shell {
    max-width: none;
    padding: 0;
  }

  .member-web-checker-shell > * {
    display: none !important;
  }

  .member-web-checker-shell > .member-web-checker-report {
    display: block !important;
  }

  .member-web-checker-report {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .member-web-checker-report[hidden] {
    display: block;
  }

  .member-web-checker-report__paper {
    border: 0;
    gap: 0.9rem;
    padding: 0;
  }

  .member-web-checker-report__cover,
  .member-web-checker-report__section,
  .member-web-checker-report__score-card,
  .member-web-checker-report__priority-card,
  .member-web-checker-report__comment {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media screen and (max-width: 1100px) {
  .member-topbar {
    grid-template-columns: auto 1fr auto;
    padding: 0 1rem;
  }

  .member-account-menu span {
    max-width: 12rem;
  }
}

@media screen and (max-width: 920px) {
  .member-topbar {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding: 0.8rem 1rem;
  }

  .member-nav,
  .member-account-menu {
    display: none;
  }

  .member-mobile-menu {
    display: block;
  }
}

@media screen and (max-width: 720px) {
  .member-page-hero {
    border-radius: 1rem;
    margin-top: 0;
    padding: 1rem !important;
  }

  .member-page-hero h1 {
    font-size: 1.55rem;
  }

  .member-ai-sidebar {
    position: static;
  }

  .member-message-bubble {
    max-width: 92% !important;
  }
}

@media screen and (max-width: 920px) {
  .member-dashboard-shell,
  .member-account-shell,
  .member-ai-shell,
  .member-ai-images-shell,
  .member-learning-container,
  .member-web-checker-shell {
    padding: 1rem !important;
  }

  .member-questions-shell {
    padding: 1rem !important;
  }

  .member-questions-hero,
  .member-account-hero,
  .member-account-layout,
  .member-web-checker-hero,
  .member-web-checker-layout,
  .member-web-checker-results,
  .member-web-checker-result-grid,
  .member-questions-layout,
  .member-question-search,
  .member-question-meta {
    grid-template-columns: 1fr;
  }

  .member-questions-hero {
    align-items: stretch;
    display: grid;
  }

  .member-account-hero {
    align-items: stretch;
    display: grid;
  }

  .member-account-sidebar,
  .member-questions-sidebar {
    position: static;
  }

  .member-web-checker-result--priority {
    grid-column: auto;
  }

  .member-web-checker-report__score-grid,
  .member-web-checker-report__priority-grid,
  .member-web-checker-report__comments,
  .member-web-checker-report__data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .member-questions-hero,
  .member-account-hero,
  .member-dashboard-account-card,
  .member-account-panel__body,
  .member-question-panel__body,
  .member-web-checker-hero,
  .member-web-checker-card,
  .member-web-checker-results {
    border-radius: 1rem;
    padding: 1rem;
  }

  .member-questions-hero h1 {
    font-size: 1.65rem;
  }

  .member-account-hero h1 {
    font-size: 1.65rem;
  }

  .member-account-form-grid,
  .member-account-kv,
  .member-dashboard-account-card,
  .member-questions-hero__stats {
    grid-template-columns: 1fr;
  }

  .member-dashboard-account-card__button {
    width: 100%;
  }

  .member-account-panel__header,
  .member-account-actions {
    display: grid;
  }

  .member-account-actions__secondary,
  .member-account-button,
  .member-account-danger-button {
    width: 100%;
  }

  .member-question-panel__header {
    display: grid;
  }

  .member-question-detail__badges,
  .member-question-search__actions {
    justify-content: flex-start;
  }

  .member-question-search__actions > * {
    width: 100%;
  }

  .member-web-checker-form,
  .member-web-checker-metrics {
    grid-template-columns: 1fr;
  }

  .member-web-checker-form__actions {
    flex-direction: column;
  }

  .member-web-checker-primary,
  .member-web-checker-secondary {
    width: 100%;
  }

  .member-web-checker-report__cover {
    min-height: 15rem;
    padding: 1.25rem;
  }

  .member-web-checker-report__brand {
    justify-content: flex-start;
  }

  .member-web-checker-report__score-grid,
  .member-web-checker-report__priority-grid,
  .member-web-checker-report__comments,
  .member-web-checker-report__data-grid {
    grid-template-columns: 1fr;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
