@charset "UTF-8";
/*
$primary-100: $gray-100;
$primary-200: $gray-200;
$primary-300: $gray-300;
$primary-400: $gray-400;
$primary-500: $gray-500;
$primary-600: $gray-600;
$primary-700: $gray-700;
$primary-800: $gray-800;
$primary-900: $gray-900;

$alert-100: $gray-100;
$alert-200: $gray-200;
$alert-300: $gray-300;
$alert-400: $gray-400;
$alert-500: $gray-500;
$alert-600: $gray-600;
$alert-700: $gray-700;
$alert-800: $gray-800;
$alert-900: $gray-900;

$accent-100: $gray-100;
$accent-200: $gray-200;
$accent-300: $gray-300;
$accent-400: $gray-400;
$accent-500: $gray-500;
$accent-600: $gray-600;
$accent-700: $gray-700;
$accent-800: $gray-800;
$accent-900: $gray-900;

$success-100: $gray-100;
$success-200: $gray-200;
$success-300: $gray-300;
$success-400: $gray-400;
$success-500: $gray-500;
$success-600: $gray-600;
$success-700: $gray-700;
$success-800: $gray-800;
$success-900: $gray-900;
*/
/**
 * On the scaling of the headers. I’m a nerd, so here we go.
 *
 * I tried to determine a good scale a priori. It was clear to me that the
 * observed difference between a 48px and 64px font is much smaller than the
 * perceived difference between a 8px and 16px font size.
 *
 * Thus, the perception is *not* linear in the font size.
 *
 * I set the edge points to 200% and 100% (the h6 would get a bold font face)
 * to compensate.
 *
 * The first attempt to get a visually appealing header size scale was thus to
 * generate a logarithmic scale:
 *
 *     numpy.logspace(np.log10(200), 2, 6, base=10)
 *
 * This leads to the following sizes:
 *
 *     $_h-sizes: [200%, 174.11011266%, 151.57165665%, 131.95079108%, 114.8698355%, 100%];
 *
 * This scale has too large differences between the larger font sizes, and too
 * small differences between the smaller font sizes. Thus, I tried to invert
 * this:
 *
 *     200 - numpy.logspace(2, np.log10(200), 6, base=10) + 100
 *
 * This leads to the following sizes:
 *
 *     $_h-sizes: [200.0%, 185.13016450029647%, 168.0492089227105%, 148.42834334896025%, 125.88988734077518%, 100%];
 *
 * While this was better, it still didn’t look quite right yet. The next
 * attempt was to go about a square function instead of log. The idea behind
 * this is that the font size is essentially one edge of a rectangle, where the
 * second edge depends on the first. A square function should thus generate a
 * nicely appealing sequence:
 *
 * Again, we want the large differences to be on the large scales, too:
 *
 *     xs = numpy.linspace(5, 0, 6); 4*xs*xs + 100
 *
 * This leads to the following sizes:
 *
 *     $_h-sizes: [200.0%, 164.0%, 136.0%, 116.0%, 104.0%, 100.0%];
 *
 * While the first three headings looked nice with that, the others did not.
 * Further research has shown me that others use an exponential scale (instead
 * of a log scale), but with a rather small base (<1.6).
 *
 * Instead of taking one of the well-known factors (like golden ratio or major
 * second), I opted for choosing a factor which gives me a clean 200%-100%
 * range:
 *
 *     numpy.power(math.pow(2, 1/5), numpy.linspace(5, 0, 6)) * 100
 *
 * The result (rounded to 8 digits) is:
 *
 *     $_h-sizes: [200.0%, 174.11011266%, 151.57165665%, 131.95079108%, 114.8698355%, 100.0%];
 *
 * And... This is the first logspace range. Derp. So why did I discard it in
 * the first place? Now that I look at it, it looks amazing. Brains are weird.
 */
/**
 * And for mobile devices, we want an even less aggressive scale. Let’s try
 * 150%-100%.
 */
html {
  font-size: 100%; }

body {
  font-family: "Noto Sans", sans-serif;
  color: #1f1b17; }

p, blockquote, ul, ol, table, dl {
  line-height: 1.5;
  margin: 1.5em 0;
  font-family: "Noto Sans", sans-serif;
  color: inherit; }

pre {
  line-height: 1.5;
  margin: 1.5em 0; }

blockquote {
  margin-left: 2rem;
  margin-right: 2rem; }

dt {
  font-weight: bold; }

h1, h2, h3, h4, h5, h6 {
  /* normalise */
  font-weight: 400;
  text-decoration: none;
  font-style: normal;
  font-family: "Noto Sans", sans-serif;
  color: black; }

input, button, label, select, textarea, pre, code {
  font-size: 100%;
  color: inherit;
  line-height: 1.5; }

textarea {
  font-family: "Noto Sans", sans-serif; }

option {
  padding: 0;
  margin: 0; }

h1 {
  font-size: 200%;
  line-height: 0.75;
  margin: 0.75em 0; }

h2 {
  font-size: 174.11011266%;
  line-height: 0.8615237662;
  margin: 0.8615237662em 0; }

h3 {
  font-size: 151.57165665%;
  line-height: 0.9896309331;
  margin: 0.9896309331em 0; }

h4 {
  font-size: 131.95079108%;
  line-height: 1.1367874249;
  margin: 1.1367874249em 0; }

h5 {
  font-size: 114.8698355%;
  line-height: 1.3058258449;
  margin: 1.3058258449em 0; }

h6 {
  font-size: 100%;
  line-height: 1.5;
  margin: 1.5em 0; }

h6 {
  font-weight: bold; }

@media screen and (max-width: 40rem) {
  h1 {
    font-size: 150%;
    line-height: 1;
    margin: 1em 0; }
  h2 {
    font-size: 138.31618672%;
    line-height: 1.0844717712;
    margin: 1.0844717712em 0; }
  h3 {
    font-size: 127.54245006%;
    line-height: 1.1760790225;
    margin: 1.1760790225em 0; }
  h4 {
    font-size: 117.60790225%;
    line-height: 1.2754245007;
    margin: 1.2754245007em 0; }
  h5 {
    font-size: 108.44717712%;
    line-height: 1.3831618672;
    margin: 1.3831618672em 0; }
  h6 {
    font-size: 100%;
    line-height: 1.5;
    margin: 1.5em 0; } }

/* headings */
h1 {
  color: #0a1929; }

h2 {
  color: #0a1929; }

h3 {
  color: #0a1929; }

h4 {
  color: #0a1929; }

h5 {
  color: #0a1929; }

h6 {
  color: #0a1929; }

/* block quotes */
blockquote {
  margin-left: 0.9375rem;
  padding-left: 0.9375rem;
  border-left: 0.125rem solid #4a90d9; }

/* coarse layout */
body {
  margin: 0;
  padding: 0;
  background-color: #f6f5f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh; }

main {
  padding: 1.5rem; }

#mwrap {
  flex: 1;
  display: flex;
  flex-direction: row-reverse; }
  #mwrap > .filler, #mwrap > .flashbox {
    flex: 1 1 1rem; }
  #mwrap > main {
    flex: 0 1 60rem; }

@media screen and (max-width: 80rem) {
  #mwrap {
    display: block; }
    #mwrap > main {
      margin-left: auto;
      margin-right: auto; } }

.flashbox > div.box > :first-child {
  margin-top: 0; }

/* top bar */
div#topbar {
  background-color: white;
  color: #132f4c;
  margin: 0;
  padding: 0.75rem;
  display: flex;
  align-items: center; }
  div#topbar > header {
    flex: 0 1 auto;
    color: black;
    font-size: 200%;
    line-height: 1.5; }
    body.debug div#topbar > header {
      color: red; }
    @media screen and (max-width: 40rem) {
      div#topbar > header {
        font-size: 150%; } }
    div#topbar > header > a {
      color: inherit;
      text-decoration: none; }
      div#topbar > header > a span {
        background-image: url("../img/ontomeet-logo.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: 0.5rem 0em;
        padding-left: 2em; }
    div#topbar > header > a:visited, div#topbar > header > a:hover, div#topbar > header > a:focus, div#topbar > header > a:active {
      color: inherit;
      text-decoration: none; }
  div#topbar > div.filler {
    flex: 1 1 0px; }
  div#topbar > nav.usermenu {
    flex: 0 1 auto; }

/* standard elevations */
.el-1, .box, div#topbar, .box.el-1, div.form.el-1 {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); }

.el-2, div.form, .box.el-2, div.form.el-2 {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12); }

.el-3, nav.welcome > ul > li, .box.el-3, div.form.el-3 {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1); }

.el-4, .box.el-4, div.form.el-4 {
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05); }

.el-5, .box.el-5, div.form.el-5 {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }

/* footer */
body > footer {
  display: block;
  background-color: #1f1b17;
  color: #e3e1df;
  padding: 0 1.5rem;
  font-size: 92.21079115%; }
  body > footer ul {
    display: block;
    padding: 0;
    margin: 0;
    list-style-type: none;
    text-align: center;
    line-height: 1.6267076567643135; }
  body > footer li {
    display: block;
    margin: 0.75rem 0; }
  body > footer a, body > footer a:visited, body > footer a:hover, body > footer a:active, body > footer a:focus {
    color: #f6f5f4;
    font-weight: bold;
    text-decoration-line: underline;
    text-decoration-color: #8f8983;
    text-decoration-width: 0.125rem;
    text-decoration-thickness: 0.125rem;
    text-underline-offset: 0; }
  body > footer a:hover {
    text-decoration-color: #cac3bd; }

/* form support */
div.form h1.form-title {
  font-size: 131.95079108%;
  /* font-weight: bold; */
  line-height: 1.1367874249;
  margin: 1.1367874249em 0; }

div.form h2.form-title {
  font-size: 131.95079108%;
  /* font-weight: bold; */
  line-height: 1.1367874249;
  margin: 1.1367874249em 0; }

div.form h3.form-title {
  font-size: 131.95079108%;
  /* font-weight: bold; */
  line-height: 1.1367874249;
  margin: 1.1367874249em 0; }

div.form h4.form-title {
  font-size: 131.95079108%;
  /* font-weight: bold; */
  line-height: 1.1367874249;
  margin: 1.1367874249em 0; }

div.form h5.form-title {
  font-size: 131.95079108%;
  /* font-weight: bold; */
  line-height: 1.1367874249;
  margin: 1.1367874249em 0; }

div.form h6.form-title {
  font-size: 131.95079108%;
  /* font-weight: bold; */
  line-height: 1.1367874249;
  margin: 1.1367874249em 0; }

label.required:after {
  content: '*';
  color: #a33d21;
  padding: 0.125rem; }

p.form-desc.weak, p.field-desc.weak {
  color: #4e4a46; }

div.f-errbox {
  background-color: #fbc2b3;
  border: 0.125rem solid #681f0b;
  color: #340e03;
  border-radius: 0.125rem;
  padding: 0 1rem;
  margin: 1em 0; }
  div.f-errbox p {
    line-height: 1;
    margin: 1em 0; }
  div.f-errbox ul {
    margin: 1em 0;
    padding: 0;
    padding-left: 1rem; }

div.form {
  margin: 1.5rem;
  padding: 1.5rem;
  background-color: white; }

div.form.layout-expanded label, div.form.layout-expanded legend {
  display: block;
  font-weight: bold;
  color: #3d3833; }

div.form.layout-expanded fieldset {
  display: block;
  border: 0;
  padding: 0;
  margin: 0; }

div.form.layout-expanded fieldset.descriptive-radio-selection p {
  margin-top: 0;
  margin-bottom: 0.5rem; }

div.form.layout-expanded input[type="radio"] + label, div.form.layout-expanded input[type="checkbox"] + label {
  font-weight: inherit;
  color: inherit; }

div.form.layout-expanded div.f-ebox {
  margin: 1.5em 0;
  line-height: 1.5; }

div.form.layout-expanded div.f-bbox {
  text-align: right;
  padding: 0.5rem 0; }

div.form.layout-expanded input[type=text] {
  width: 100%;
  border: none;
  border-bottom: 0.125rem solid #4a90d9;
  margin-bottom: -0.125rem; }

div.form.layout-expanded input[type=text].has-error {
  border-right: 0.125rem solid #c95e40; }

div.form.layout-expanded input[type=text]:hover {
  border-bottom-color: #90caf9; }

div.form.layout-expanded input[type=text]:focus {
  border-bottom-color: #bbdefb; }

div.form.layout-expanded input[type=password] {
  width: 100%;
  border: none;
  border-bottom: 0.125rem solid #4a90d9;
  margin-bottom: -0.125rem; }

div.form.layout-expanded input[type=password].has-error {
  border-right: 0.125rem solid #c95e40; }

div.form.layout-expanded input[type=password]:hover {
  border-bottom-color: #90caf9; }

div.form.layout-expanded input[type=password]:focus {
  border-bottom-color: #bbdefb; }

div.form.layout-expanded input[type=email] {
  width: 100%;
  border: none;
  border-bottom: 0.125rem solid #4a90d9;
  margin-bottom: -0.125rem; }

div.form.layout-expanded input[type=email].has-error {
  border-right: 0.125rem solid #c95e40; }

div.form.layout-expanded input[type=email]:hover {
  border-bottom-color: #90caf9; }

div.form.layout-expanded input[type=email]:focus {
  border-bottom-color: #bbdefb; }

div.form.layout-expanded input[type=tel] {
  width: 100%;
  border: none;
  border-bottom: 0.125rem solid #4a90d9;
  margin-bottom: -0.125rem; }

div.form.layout-expanded input[type=tel].has-error {
  border-right: 0.125rem solid #c95e40; }

div.form.layout-expanded input[type=tel]:hover {
  border-bottom-color: #90caf9; }

div.form.layout-expanded input[type=tel]:focus {
  border-bottom-color: #bbdefb; }

div.form.layout-expanded input[type="checkbox"], div.form.layout-expanded input[type="radio"] {
  position: absolute;
  z-index: -1; }

div.form.layout-expanded input[type="checkbox"] + label:before {
  background-color: transparent;
  color: transparent;
  content: "✔";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 0.125rem;
  border: 0.125rem solid #4a90d9;
  text-align: center;
  font-size: 1rem;
  margin-right: 0.5rem;
  line-height: 1; }

div.form.layout-expanded input[type="radio"] + label:before {
  background-color: transparent;
  color: transparent;
  content: "✔";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 0.75rem;
  border: 0.125rem solid #4a90d9;
  text-align: center;
  font-size: 1rem;
  margin-right: 0.5rem;
  line-height: 1; }

div.form.layout-expanded input[type="checkbox"] + label:hover:before,
div.form.layout-expanded input[type="radio"] + label:hover:before {
  border-color: #90caf9; }

div.form.layout-expanded input[type="checkbox"]:focus + label:before,
div.form.layout-expanded input[type="radio"]:focus + label:before {
  border-color: #bbdefb; }

div.form.layout-expanded input[type="checkbox"]:checked + label:before {
  background-color: #4a90d9;
  color: white; }

div.form.layout-expanded input[type="radio"]:checked + label:before {
  background-color: #4a90d9;
  box-shadow: inset 0 0 0 0.25rem white; }

div.form.layout-expanded input[type="checkbox"] + label, div.form.layout-expanded input[type="radio"] + label {
  display: block; }

div.form.layout-expanded .radio-button-ext > label > p {
  margin-left: 1.75rem;
  margin-top: 0; }

div.form.layout-expanded .radio-button-ext > label .icon {
  margin-left: 0.25em; }

div.form.layout-expanded .radio-button-ext {
  margin-left: 0.5rem; }

div.form.layout-expanded div.select-wrap {
  display: block;
  border-bottom: 0.125rem solid #4a90d9;
  margin-bottom: -0.125rem;
  position: relative; }
  div.form.layout-expanded div.select-wrap > select {
    width: 100%;
    background-color: transparent;
    border: none;
    outline: none;
    padding: 0 0.25rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 1.75rem;
    margin-top: -1px;
    margin-bottom: -1px; }
  div.form.layout-expanded div.select-wrap:after {
    content: "\25bc";
    position: absolute;
    right: 0;
    width: 1.5rem;
    text-align: center;
    top: 0;
    bottom: 0;
    pointer-events: none;
    color: #4a90d9;
    font-size: 80%;
    padding-top: 0.25em;
    padding-bottom: 0.25em; }
  div.form.layout-expanded div.select-wrap:hover {
    border-bottom-color: #90caf9; }
    div.form.layout-expanded div.select-wrap:hover:after {
      color: #90caf9; }
  div.form.layout-expanded div.select-wrap:focus-within {
    border-bottom-color: #bbdefb; }
    div.form.layout-expanded div.select-wrap:focus-within:after {
      color: #bbdefb; }

div.form.layout-expanded div.avatar-wrap > .avatar {
  margin: 0;
  margin-right: 1rem; }

div.form.layout-expanded textarea {
  width: 100%;
  border: none;
  border-bottom: 0.125rem solid #4a90d9;
  line-height: 1.5; }

div.form.layout-expanded textarea:hover {
  border-bottom-color: #90caf9; }

div.form.layout-expanded textarea:focus {
  border-bottom-color: #bbdefb; }

fieldset > ul {
  /* radio group */
  list-style-type: none;
  margin: 0;
  padding: 0.75rem 0;
  padding-left: 1.5rem; }
  fieldset > ul > li {
    margin: 0;
    padding: 0; }

/* icon support */
svg.icon {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor; }

/* form buttons */
input[type="submit"], button, .button {
  margin: 0 0.5rem;
  padding: 0.25rem 0.75rem;
  line-height: 1.5;
  display: inline-block; }
  td input[type="submit"], td button, td .button {
    margin: 0 0.125rem;
    padding: 0.125rem 0.5rem; }
  input[type="submit"] > svg.icon:first-child, button > svg.icon:first-child, .button > svg.icon:first-child {
    margin-right: 0.5rem; }
    td input[type="submit"] > svg.icon:first-child, td button > svg.icon:first-child, td .button > svg.icon:first-child {
      margin-right: 0.25rem; }
  input[type="submit"] > svg.icon:last-child, button > svg.icon:last-child, .button > svg.icon:last-child {
    margin-right: 0;
    margin-top: -0.125rem; }
    td input[type="submit"] > svg.icon:last-child, td button > svg.icon:last-child, td .button > svg.icon:last-child {
      margin-right: 0; }

a.button {
  text-decoration: none;
  cursor: default; }

input[type="submit"].primary, button.primary, .button.primary {
  background: linear-gradient(0deg, #4a90d9, #6cb4f0);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  color: white;
  border: none;
  /* TODO: fix vertical rhyhtm ... */
  border-radius: 0.125rem; }
  input[type="submit"].primary:hover, input[type="submit"].primary:focus, button.primary:hover, button.primary:focus, .button.primary:hover, .button.primary:focus {
    background: linear-gradient(0deg, #6cb4f0, #90caf9);
    color: white; }
  input[type="submit"].primary:active, button.primary:active, .button.primary:active {
    background: #4a90d9;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.2);
    color: white; }
  input[type="submit"].primary.accent, button.primary.accent, .button.primary.accent {
    background: linear-gradient(0deg, #c79b0e, #f4ce3f);
    color: #fff8e8; }
    input[type="submit"].primary.accent:hover, input[type="submit"].primary.accent:focus, button.primary.accent:hover, button.primary.accent:focus, .button.primary.accent:hover, .button.primary.accent:focus {
      background: linear-gradient(0deg, #f4ce3f, #fee577); }
    input[type="submit"].primary.accent:active, button.primary.accent:active, .button.primary.accent:active {
      background: #c79b0e; }
  input[type="submit"].primary.danger, button.primary.danger, .button.primary.danger {
    background: linear-gradient(0deg, #c95e40, #ed947c);
    color: #fef1ed; }
    input[type="submit"].primary.danger:hover, input[type="submit"].primary.danger:focus, button.primary.danger:hover, button.primary.danger:focus, .button.primary.danger:hover, .button.primary.danger:focus {
      background: linear-gradient(0deg, #ed947c, #f2ac99); }
    input[type="submit"].primary.danger:active, button.primary.danger:active, .button.primary.danger:active {
      background: #c95e40; }

input[type="submit"].secondary, button.secondary, .button.secondary {
  background: linear-gradient(0deg, #b1aca6, #cac3bd);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  color: #3d3833;
  border: none;
  /* TODO: fix vertical rhyhtm ... */
  border-radius: 0.125rem; }
  input[type="submit"].secondary:hover, input[type="submit"].secondary:focus, button.secondary:hover, button.secondary:focus, .button.secondary:hover, .button.secondary:focus {
    background: linear-gradient(0deg, #cac3bd, #e3e1df);
    color: black; }
  input[type="submit"].secondary:active, button.secondary:active, .button.secondary:active {
    background: #b1aca6;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.2);
    color: black; }
  input[type="submit"].secondary.accent, button.secondary.accent, .button.secondary.accent {
    background: linear-gradient(0deg, #f4ce3f, #fee577);
    color: #563600; }
    input[type="submit"].secondary.accent:hover, input[type="submit"].secondary.accent:focus, button.secondary.accent:hover, button.secondary.accent:focus, .button.secondary.accent:hover, .button.secondary.accent:focus {
      background: linear-gradient(0deg, #fee577, #fef1c1); }
    input[type="submit"].secondary.accent:active, button.secondary.accent:active, .button.secondary.accent:active {
      background: #f4ce3f; }
  input[type="submit"].secondary.danger, button.secondary.danger, .button.secondary.danger {
    background: linear-gradient(0deg, #ed947c, #f2ac99);
    color: #681f0b; }
    input[type="submit"].secondary.danger:hover, input[type="submit"].secondary.danger:focus, button.secondary.danger:hover, button.secondary.danger:focus, .button.secondary.danger:hover, .button.secondary.danger:focus {
      background: linear-gradient(0deg, #f2ac99, #fbc2b3); }
    input[type="submit"].secondary.danger:active, button.secondary.danger:active, .button.secondary.danger:active {
      background: #ed947c; }

input[type="submit"].tertiary, input[type="submit"] .tertiary, button.tertiary, button .tertiary, .button.tertiary, .button .tertiary {
  background-color: transparent;
  color: #1f1b17;
  border: none;
  text-decoration: underline;
  /* TODO: fix vertical rhyhtm ... */
  border-radius: 0.125rem; }
  input[type="submit"].tertiary:hover, input[type="submit"] .tertiary:hover, button.tertiary:hover, button .tertiary:hover, .button.tertiary:hover, .button .tertiary:hover {
    background-color: #f6f5f4;
    border-color: #e3e1df;
    color: black; }
  input[type="submit"].tertiary.accent, input[type="submit"] .tertiary.accent, button.tertiary.accent, button .tertiary.accent, .button.tertiary.accent, .button .tertiary.accent {
    text-decoration-color: #c79b0e; }
    input[type="submit"].tertiary.accent:hover, input[type="submit"] .tertiary.accent:hover, button.tertiary.accent:hover, button .tertiary.accent:hover, .button.tertiary.accent:hover, .button .tertiary.accent:hover {
      background-color: #fff8e8;
      border-color: #fef1c1;
      color: black; }
  input[type="submit"].tertiary.danger, input[type="submit"] .tertiary.danger, button.tertiary.danger, button .tertiary.danger, .button.tertiary.danger, .button .tertiary.danger {
    text-decoration-color: #c95e40; }
    input[type="submit"].tertiary.danger:hover, input[type="submit"] .tertiary.danger:hover, button.tertiary.danger:hover, button .tertiary.danger:hover, .button.tertiary.danger:hover, .button .tertiary.danger:hover {
      background-color: #fef1ed;
      border-color: #fbc2b3;
      color: black; }

input[type="submit"].fullwidth, button.fullwidth, .button.fullwidth {
  display: block;
  width: 100%;
  margin-left: 0;
  margin-right: 0; }

/* boxes */
.box {
  display: block;
  /* border-width: $w-s4 / 2;
	border-style: solid; */
  padding: 1.5rem;
  margin: 1.5rem;
  border-radius: 0.125rem;
  border-color: #3d3833;
  background-color: white;
  color: #1f1b17; }
  .box.primary {
    border-color: #132f4c;
    background-color: #e8f2ff;
    color: #0a1929; }
  .box.accent {
    border-color: #563600;
    background-color: #fff8e8;
    color: #302100; }
  .box.alert {
    border-color: #681f0b;
    background-color: #fef1ed;
    color: #340e03; }
  .box.warning {
    border-color: #563600;
    background-color: #fff8e8;
    color: #302100; }
  .box.success {
    border-color: #244608;
    background-color: #effbe6;
    color: #172f03; }
  .box.hint {
    border-color: #132f4c;
    background-color: #e8f2ff;
    color: #0a1929; }

.box > header {
  font-weight: bold;
  display: block;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: black; }

.box > p:last-child {
  margin-bottom: 0; }

.box.slim > header {
  display: inline;
  margin: 0; }

.box.slim > header:after {
  content: ':'; }

.box.slim > p {
  display: inline;
  margin: 0; }

/* avatar */
.avatar {
  display: inline-block;
  font-size: 200%;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-size: cover;
  border-radius: 10%;
  margin: 0 0.25em;
  text-align: center; }
  @media screen and (max-width: 40rem) {
    .avatar {
      font-size: 150%; } }
  .avatar > span:before {
    color: #f6f5f4;
    content: attr(data-avatar-char); }

nav.usermenu > .avatar {
  /* we can increase the size to the size of the h1 here */ }

/* login page specials */
body#login .form {
  font-size: 114.8698355%; }

body#login .form-title {
  color: #132f4c;
  font-size: 114.8698355%; }

body#login h1 {
  background-image: url("../img/ontomeet-logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 0.5rem 0em;
  padding-left: 2em;
  padding-left: 2em;
  background-position: 0 0em; }

/* admin area specials */
#topbar > div.admin-note {
  color: #a33d21;
  font-size: 114.8698355%;
  margin-left: 1.5rem; }

table {
  border-collapse: collapse;
  width: 100%; }

td, th {
  padding: 0.75rem; }

th {
  text-align: left; }

div.elevated {
  margin: 1.5rem;
  padding: 1.5rem;
  background-color: white; }

div.elevated > *:first-child {
  margin-top: 0; }

div.elevated > *:last-child {
  margin-bottom: 0; }

.long-url-link {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; }

.link-col {
  width: 8rem; }

#clipboard-result + span {
  display: none; }

ul.inline {
  display: inline;
  margin: 0;
  padding: 0;
  list-style-type: none; }
  ul.inline > li {
    display: inline-block;
    padding: 0;
    margin: 0; }
  ul.inline > li:before {
    content: ', '; }
  ul.inline > li:first-child:before {
    content: ''; }

.nowrap {
  white-space: nowrap; }

/* welcome screen specials */
#home main > h1, #home main > p {
  text-align: center; }

nav.welcome > ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  justify-content: center; }
  nav.welcome > ul > li {
    background-color: white;
    flex: 1 0 12rem;
    margin: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-align: center;
    max-width: 16rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; }
    nav.welcome > ul > li.wide {
      flex: 1 0 auto;
      /* display: block; */ }
    nav.welcome > ul > li .button {
      display: block;
      margin: 1.5rem 0; }
    nav.welcome > ul > li img {
      display: block;
      margin: 1.5rem 1rem;
      --margin: $w-0 * 2;
      width: calc(100% - var(--margin)); }
    nav.welcome > ul > li p {
      margin-left: 1rem;
      margin-right: 1rem; }

div.profile-card {
  display: flex;
  flex-direction: row;
  margin: 1.5rem 0;
  text-align: left; }
  div.profile-card > div.picture {
    flex: 0 0 auto; }
  div.profile-card > div.details {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column; }
    div.profile-card > div.details > .display-name {
      font-size: 108.44717712%;
      line-height: 1.3831618672; }
    div.profile-card > div.details > .address {
      display: flex;
      flex-direction: row; }
      div.profile-card > div.details > .address > input {
        flex: 1 1 auto;
        background-color: transparent;
        border: none;
        padding: 0;
        margin: 0;
        min-width: 0;
        width: 0; }
      div.profile-card > div.details > .address > .button {
        flex: 0 0 auto;
        margin: 0; }

/* linearisation / responsive stuff */
@media screen and (max-width: 60rem) {
  .form.layout-expanded {
    margin-left: 0;
    margin-right: 0; }
  div.elevated, main > div.box {
    margin-left: 0;
    margin-right: 0; } }

@media screen and (max-width: 40rem) {
  .form.layout-expanded .box {
    margin-left: 0;
    margin-right: 0; }
  .box > ul {
    padding-left: 1rem; }
  th.collapsible, td.collapsible {
    display: none; }
  #topbar.admin > header {
    text-decoration: underline;
    text-decoration-color: #c95e40; }
  #topbar.admin > div.admin-note {
    display: none; }
  input[type="submit"].slimmify > svg.icon, button.slimmify > svg.icon, .button.slimmify > svg.icon {
    margin-right: 0; }
  input[type="submit"].slimmify > span, button.slimmify > span, .button.slimmify > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    top: -100px; } }

/* clipboard and share buttons */
.copy-to-clipboard, .share-button {
  cursor: pointer;
  font-style: normal;
  text-decoration: none; }

body.no-copy .copy-to-clipboard, body.no-share .share-button {
  display: none !important; }

/* magic */
pre.guru-meditation {
  width: 100%;
  overflow-x: scroll; }

/* dark mode - switched to data-theme attribute for manual toggle */
[data-theme="dark"] a {
  color: #6cb4f0; }

[data-theme="dark"] a:visited {
  color: #bbdefb; }

[data-theme="dark"] body {
  color: #f6f5f4;
  background-color: #1f1b17; }

[data-theme="dark"] h1 {
  color: #e8f2ff; }

[data-theme="dark"] h2 {
  color: #e8f2ff; }

[data-theme="dark"] h3 {
  color: #e8f2ff; }

[data-theme="dark"] h4 {
  color: #e8f2ff; }

[data-theme="dark"] h5 {
  color: #e8f2ff; }

[data-theme="dark"] h6 {
  color: #e8f2ff; }

[data-theme="dark"] div#topbar {
  background-color: black;
  color: #e8f2ff; }
  [data-theme="dark"] div#topbar > header {
    color: white; }

[data-theme="dark"] body#login .form-title {
  color: #bbdefb; }

[data-theme="dark"] body > footer {
  background-color: #3d3833;
  color: #e3e1df; }

[data-theme="dark"] div.form {
  background-color: black; }

[data-theme="dark"] div.form.layout-expanded label {
  color: #f6f5f4; }

[data-theme="dark"] div.form.layout-expanded textarea {
  background-color: black; }

[data-theme="dark"] div.form.layout-expanded input[type=text] {
  background-color: black; }

[data-theme="dark"] div.form.layout-expanded input[type="radio"]:checked + label:before {
  box-shadow: inset 0 0 0 0.25rem black; }

[data-theme="dark"] div.form.layout-expanded input[type=password] {
  background-color: black; }

[data-theme="dark"] div.form.layout-expanded input[type="radio"]:checked + label:before {
  box-shadow: inset 0 0 0 0.25rem black; }

[data-theme="dark"] div.form.layout-expanded input[type=email] {
  background-color: black; }

[data-theme="dark"] div.form.layout-expanded input[type="radio"]:checked + label:before {
  box-shadow: inset 0 0 0 0.25rem black; }

[data-theme="dark"] div.form.layout-expanded input[type=tel] {
  background-color: black; }

[data-theme="dark"] div.form.layout-expanded input[type="radio"]:checked + label:before {
  box-shadow: inset 0 0 0 0.25rem black; }

[data-theme="dark"] label, [data-theme="dark"] legend {
  color: #e3e1df !important; }

[data-theme="dark"] .box {
  background-color: black;
  border-color: #e3e1df;
  color: #f6f5f4; }
  [data-theme="dark"] .box.primary {
    border-color: #e8f2ff;
    background-color: #132f4c;
    color: #e8f2ff; }
  [data-theme="dark"] .box.accent {
    border-color: #fff8e8;
    background-color: #563600;
    color: #fff8e8; }
  [data-theme="dark"] .box.alert {
    border-color: #fef1ed;
    background-color: #681f0b;
    color: #fef1ed; }
  [data-theme="dark"] .box.warning {
    border-color: #fff8e8;
    background-color: #563600;
    color: #fff8e8; }
  [data-theme="dark"] .box.success {
    border-color: #effbe6;
    background-color: #244608;
    color: #effbe6; }
  [data-theme="dark"] .box.hint {
    border-color: #e8f2ff;
    background-color: #132f4c;
    color: #e8f2ff; }
  [data-theme="dark"] .box > header {
    color: white; }

[data-theme="dark"] nav.welcome > ul > li {
  background-color: black; }

[data-theme="dark"] div.elevated {
  background-color: black; }

[data-theme="dark"] input[type="submit"].primary, [data-theme="dark"] button.primary, [data-theme="dark"] .button.primary {
  background: linear-gradient(0deg, #1a4971, #2e6ab5); }
  [data-theme="dark"] input[type="submit"].primary:hover, [data-theme="dark"] input[type="submit"].primary:focus, [data-theme="dark"] button.primary:hover, [data-theme="dark"] button.primary:focus, [data-theme="dark"] .button.primary:hover, [data-theme="dark"] .button.primary:focus {
    background: linear-gradient(0deg, #2e6ab5, #4a90d9); }
  [data-theme="dark"] input[type="submit"].primary:active, [data-theme="dark"] button.primary:active, [data-theme="dark"] .button.primary:active {
    background: #1a4971; }
  [data-theme="dark"] input[type="submit"].primary.accent, [data-theme="dark"] button.primary.accent, [data-theme="dark"] .button.primary.accent {
    background: linear-gradient(0deg, #795b00, #a07501); }
    [data-theme="dark"] input[type="submit"].primary.accent:hover, [data-theme="dark"] input[type="submit"].primary.accent:focus, [data-theme="dark"] button.primary.accent:hover, [data-theme="dark"] button.primary.accent:focus, [data-theme="dark"] .button.primary.accent:hover, [data-theme="dark"] .button.primary.accent:focus {
      background: linear-gradient(0deg, #a07501, #c79b0e); }
    [data-theme="dark"] input[type="submit"].primary.accent:active, [data-theme="dark"] button.primary.accent:active, [data-theme="dark"] .button.primary.accent:active {
      background: #795b00; }
  [data-theme="dark"] input[type="submit"].primary.danger, [data-theme="dark"] button.primary.danger, [data-theme="dark"] .button.primary.danger {
    background: linear-gradient(0deg, #883017, #a33d21); }
    [data-theme="dark"] input[type="submit"].primary.danger:hover, [data-theme="dark"] input[type="submit"].primary.danger:focus, [data-theme="dark"] button.primary.danger:hover, [data-theme="dark"] button.primary.danger:focus, [data-theme="dark"] .button.primary.danger:hover, [data-theme="dark"] .button.primary.danger:focus {
      background: linear-gradient(0deg, #a33d21, #c95e40); }
    [data-theme="dark"] input[type="submit"].primary.danger:active, [data-theme="dark"] button.primary.danger:active, [data-theme="dark"] .button.primary.danger:active {
      background: #883017; }

[data-theme="dark"] input[type="submit"].secondary, [data-theme="dark"] button.secondary, [data-theme="dark"] .button.secondary {
  background: linear-gradient(0deg, #3d3833, #4e4a46);
  color: #f6f5f4; }
  [data-theme="dark"] input[type="submit"].secondary:hover, [data-theme="dark"] input[type="submit"].secondary:focus, [data-theme="dark"] button.secondary:hover, [data-theme="dark"] button.secondary:focus, [data-theme="dark"] .button.secondary:hover, [data-theme="dark"] .button.secondary:focus {
    background: linear-gradient(0deg, #4e4a46, #706965);
    color: white; }
  [data-theme="dark"] input[type="submit"].secondary:active, [data-theme="dark"] button.secondary:active, [data-theme="dark"] .button.secondary:active {
    background: #706965;
    color: #f6f5f4; }
  [data-theme="dark"] input[type="submit"].secondary.accent, [data-theme="dark"] button.secondary.accent, [data-theme="dark"] .button.secondary.accent {
    background: linear-gradient(0deg, #563600, #795b00);
    color: #fef1c1; }
    [data-theme="dark"] input[type="submit"].secondary.accent:hover, [data-theme="dark"] input[type="submit"].secondary.accent:focus, [data-theme="dark"] button.secondary.accent:hover, [data-theme="dark"] button.secondary.accent:focus, [data-theme="dark"] .button.secondary.accent:hover, [data-theme="dark"] .button.secondary.accent:focus {
      background: linear-gradient(0deg, #795b00, #a07501); }
    [data-theme="dark"] input[type="submit"].secondary.accent:active, [data-theme="dark"] button.secondary.accent:active, [data-theme="dark"] .button.secondary.accent:active {
      background: #563600; }
  [data-theme="dark"] input[type="submit"].secondary.danger, [data-theme="dark"] button.secondary.danger, [data-theme="dark"] .button.secondary.danger {
    background: linear-gradient(0deg, #681f0b, #883017);
    color: #fbc2b3; }
    [data-theme="dark"] input[type="submit"].secondary.danger:hover, [data-theme="dark"] input[type="submit"].secondary.danger:focus, [data-theme="dark"] button.secondary.danger:hover, [data-theme="dark"] button.secondary.danger:focus, [data-theme="dark"] .button.secondary.danger:hover, [data-theme="dark"] .button.secondary.danger:focus {
      background: linear-gradient(0deg, #883017, #a33d21); }
    [data-theme="dark"] input[type="submit"].secondary.danger:active, [data-theme="dark"] button.secondary.danger:active, [data-theme="dark"] .button.secondary.danger:active {
      background: #681f0b; }

[data-theme="dark"] input[type="submit"].tertiary, [data-theme="dark"] input[type="submit"] .tertiary, [data-theme="dark"] button.tertiary, [data-theme="dark"] button .tertiary, [data-theme="dark"] .button.tertiary, [data-theme="dark"] .button .tertiary {
  color: #e3e1df; }
  [data-theme="dark"] input[type="submit"].tertiary:hover, [data-theme="dark"] input[type="submit"] .tertiary:hover, [data-theme="dark"] button.tertiary:hover, [data-theme="dark"] button .tertiary:hover, [data-theme="dark"] .button.tertiary:hover, [data-theme="dark"] .button .tertiary:hover {
    background-color: #3d3833;
    border-color: #1f1b17;
    color: white; }
  [data-theme="dark"] input[type="submit"].tertiary.accent:hover, [data-theme="dark"] input[type="submit"] .tertiary.accent:hover, [data-theme="dark"] button.tertiary.accent:hover, [data-theme="dark"] button .tertiary.accent:hover, [data-theme="dark"] .button.tertiary.accent:hover, [data-theme="dark"] .button .tertiary.accent:hover {
    background-color: #563600;
    border-color: #302100;
    color: white; }
  [data-theme="dark"] input[type="submit"].tertiary.danger:hover, [data-theme="dark"] input[type="submit"] .tertiary.danger:hover, [data-theme="dark"] button.tertiary.danger:hover, [data-theme="dark"] button .tertiary.danger:hover, [data-theme="dark"] .button.tertiary.danger:hover, [data-theme="dark"] .button .tertiary.danger:hover {
    background-color: #681f0b;
    border-color: #340e03;
    color: white; }

[data-theme="dark"] p.form-desc.weak, [data-theme="dark"] p.field-desc.weak {
  color: #cac3bd; }

[data-theme="dark"] .user-badge-icon {
  color: #f6f5f4 !important;
  background-color: #1f1b17 !important;
  border-color: #4e4a46 !important;
  box-shadow: black 0 0 2px !important; }

/* tooltip magic */
.with-tooltip {
  position: relative;
  text-decoration: underline;
  text-decoration-style: dotted; }

.with-tooltip:before {
  content: attr(data-tooltip);
  /* here's the magic */
  position: absolute;
  font-size: 87.05505633%;
  /* vertically center */
  bottom: 100%;
  transform: translateX(-50%);
  left: 50%;
  margin-bottom: 0.5rem;
  /* basic styles */
  width: 12rem;
  padding: 0.75rem;
  background: black;
  color: #f6f5f4;
  text-align: center;
  display: none; }

.with-tooltip:after {
  content: "";
  position: absolute;
  bottom: 100%;
  transform: translateX(-50%);
  left: 50%;
  margin-bottom: -0.75rem;
  /* the arrow */
  border: 10px solid black;
  border-color: black transparent transparent transparent;
  display: none; }

.with-tooltip:hover:before, .with-tooltip:hover:after {
  display: block; }

.username-with-avatar {
  display: flex;
  align-items: center; }
  .username-with-avatar .avatar-container {
    position: relative; }
    .username-with-avatar .avatar-container .avatar {
      margin-left: 0; }
  .username-with-avatar .user-badge-icon {
    position: absolute;
    bottom: -10px;
    right: 0px;
    background: white;
    border-radius: 50%;
    width: 1.2em;
    height: 1.2em;
    border-color: #8f8983;
    border-width: 1px;
    border-style: solid;
    text-align: center;
    margin: 0;
    padding: 0;
    margin: 0;
    padding: 0;
    box-shadow: #8f8983 0px 0px 2px;
    line-height: 1; }
    .username-with-avatar .user-badge-icon .icon {
      /* vertical-align: text-bottom; */
      padding: 0.1em; }
  .username-with-avatar .user-info-container {
    margin-left: 0.5em; }
  .username-with-avatar .user-display-name {
    font-size: 110%; }
  .username-with-avatar .user-jid {
    font-size: 90%; }

/* Modern UI Layer - must be imported last to override base styles */
/* ==========================================================================
   Modern UI Layer for KamuChat Web Management
   Layered on top of existing styles - preserves backward compatibility
   ========================================================================== */
/* --- CSS Custom Properties (design tokens) --- */
:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-focus: 0 0 0 3px rgba(74, 144, 217, 0.25);
  --shadow-focus-danger: 0 0 0 3px rgba(239, 68, 68, 0.25);
  --shadow-focus-success: 0 0 0 3px rgba(34, 197, 94, 0.25);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --color-bg: #F0F4F8;
  --color-bg-card: #ffffff;
  --color-bg-input: #ffffff;
  --color-border: #E2E8F0;
  --color-border-light: #E2E8F0;
  --color-text: #1E293B;
  --color-text-secondary: #64748B;
  --color-text-muted: #94A3B8;
  --color-primary: #4a90d9;
  --color-primary-hover: #2e6ab5;
  --color-primary-light: #e8f2ff;
  --color-body-gradient: linear-gradient(135deg, #E8F2FF 0%, #D4E6FA 50%, #C8DEFA 100%);
  --color-danger: #EF4444;
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-coral: #E8536D;
  /* Sidebar tokens */
  --sidebar-width: 250px;
  --sidebar-bg: #1E293B;
  --sidebar-hover: rgba(255,255,255,0.08);
  --sidebar-active-bg: rgba(255,255,255,0.12); }

/* --- Global resets / enhancements --- */
* {
  box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-body-gradient);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%; }

/* Authenticated page body (all pages after login) */
body:not(#login) #mwrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* transparent so body gradient shows through */
  background: transparent;
  min-height: 0; }

body:not(#login) #mwrap > main {
  width: 100%;
  max-width: 72rem;
  padding: 2rem 3rem;
  flex: 1 1 auto; }
  @media screen and (max-width: 60rem) {
    body:not(#login) #mwrap > main {
      padding: 1.5rem; } }
  @media screen and (max-width: 40rem) {
    body:not(#login) #mwrap > main {
      padding: 1rem 0.5rem; } }
body:not(#login) #mwrap > .filler {
  display: none; }

body:not(#login) #mwrap > .flashbox {
  position: fixed;
  top: 4rem;
  right: 1.5rem;
  z-index: 200;
  flex: none; }

/* Improve paragraph readability */
p {
  line-height: 1.65;
  color: var(--color-text); }

/* Smooth image rendering */
img {
  max-width: 100%;
  height: auto; }

a {
  transition: color var(--transition-fast), background-color var(--transition-fast); }

::selection {
  background-color: #bbdefb;
  color: #0a1929; }

/* --- Modern Topbar --- */
div#topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-xs);
  padding: 0.5rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
  gap: 0.5rem; }
  div#topbar > header {
    font-size: 150%;
    font-weight: 600;
    letter-spacing: -0.01em; }
    div#topbar > header > a {
      display: flex;
      align-items: center;
      gap: 0.5rem; }
      div#topbar > header > a img {
        border-radius: var(--radius-sm); }
      div#topbar > header > a span {
        background: none;
        padding-left: 0; }
  div#topbar > div.admin-note {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(201, 94, 64, 0.1);
    color: #a33d21;
    margin-left: 0.75rem; }

@media screen and (max-width: 40rem) {
  div#topbar {
    padding: 0.25rem 0.75rem; }
    div#topbar > header {
      font-size: 120%; } }

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width 0.25s ease, transform 0.25s ease;
  overflow: hidden; }

a.sidebar-header,
a.sidebar-header:visited,
a.sidebar-header:hover,
a.sidebar-header:active,
a.sidebar-header:focus,
.sidebar-header {
  padding: 1.5rem 1.5rem 1.5rem 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  text-decoration: none !important;
  color: inherit !important; }

.sidebar-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: contain; }

.sidebar-brand {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap; }

.sidebar-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em; }

.sidebar-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 2px; }

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
  list-style: none;
  margin: 0; }

.nav-section-label {
  padding: 16px 20px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.6); }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: #94A3B8;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap; }
  .nav-link:hover {
    background: var(--sidebar-hover);
    color: #E2E8F0;
    text-decoration: none; }
  .nav-link.active {
    background: var(--sidebar-active-bg);
    color: #FFFFFF;
    border-left-color: var(--color-primary); }
  .nav-link svg, .nav-link svg.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7; }
  .nav-link.active svg, .nav-link.active svg.icon, .nav-link:hover svg, .nav-link:hover svg.icon {
    opacity: 1; }
  .nav-link span {
    overflow: hidden; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0; }

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  color: #94A3B8;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap; }
  .theme-toggle-btn:hover {
    color: #E2E8F0; }
  .theme-toggle-btn svg, .theme-toggle-btn svg.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0; }

.exit-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: #94A3B8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
  text-decoration: none;
  white-space: nowrap; }
  .exit-link:hover {
    color: #E8536D;
    text-decoration: none; }
  .exit-link svg, .exit-link svg.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0; }

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99; }
  .sidebar-overlay.active {
    display: block; }

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px; }
  .hamburger svg, .hamburger svg.icon {
    width: 24px;
    height: 24px; }

/* --- App Layout (sidebar + main) --- */
.app-layout {
  display: flex;
  min-height: 100vh;
  flex: 1;
  /* Flash messages inside main-content */ }
  .app-layout > .main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease; }
  .app-layout .flashbox {
    position: fixed;
    top: 4rem;
    right: 1.5rem;
    z-index: 200; }

/* Responsive sidebar: tablet collapse, mobile hide */
@media screen and (max-width: 60rem) {
  .sidebar {
    width: 64px; }
  .sidebar .sidebar-brand,
  .sidebar .sidebar-badge,
  .sidebar .nav-link span,
  .sidebar .nav-section-label,
  .sidebar .theme-toggle-btn span,
  .sidebar .exit-link span {
    display: none; }
  .sidebar .nav-link {
    justify-content: center;
    padding: 12px 0;
    border-left: none; }
  .sidebar .sidebar-header {
    justify-content: center;
    padding: 20px 12px; }
  .sidebar .sidebar-footer {
    padding: 12px; }
  .sidebar .theme-toggle-btn,
  .sidebar .exit-link {
    justify-content: center; }
  .app-layout > .main-wrapper {
    margin-left: 64px; } }

@media screen and (max-width: 40rem) {
  .sidebar {
    width: var(--sidebar-width);
    transform: translateX(-100%); }
  .sidebar.open {
    transform: translateX(0); }
  .sidebar .sidebar-brand,
  .sidebar .sidebar-badge,
  .sidebar .nav-link span,
  .sidebar .nav-section-label,
  .sidebar .theme-toggle-btn span,
  .sidebar .exit-link span {
    display: revert; }
  .sidebar .nav-link {
    justify-content: flex-start;
    padding: 10px 20px;
    border-left: 4px solid transparent; }
  .sidebar .sidebar-header {
    justify-content: flex-start;
    padding: 1.5rem 1.5rem 1.5rem 20px; }
  .sidebar .sidebar-footer {
    padding: 16px 20px; }
  .sidebar .theme-toggle-btn,
  .sidebar .exit-link {
    justify-content: flex-start; }
  .app-layout > .main-wrapper {
    margin-left: 0; }
  .hamburger {
    display: flex; } }

/* --- Modern Layout --- */
#mwrap {
  flex-direction: column !important;
  align-items: center; }
  #mwrap > .filler {
    display: none; }
  #mwrap > main {
    width: 100%;
    max-width: 72rem;
    flex: 1 1 auto; }

main {
  padding: 2rem 3rem; }
  @media screen and (max-width: 60rem) {
    main {
      padding: 1.5rem 1.5rem; } }
  @media screen and (max-width: 40rem) {
    main {
      padding: 1rem 0.75rem; } }
/* Page content wrapper for consistent spacing */
main > h1:first-child {
  margin-top: 0; }

/* Breadcrumb-style admin note */
main > p:first-of-type {
  margin-top: 0; }

/* --- Modern Headings --- */
h1 {
  font-weight: 600;
  letter-spacing: -0.02em; }

h2 {
  font-weight: 600;
  letter-spacing: -0.02em; }

h3 {
  font-weight: 600;
  letter-spacing: -0.02em; }

h4 {
  font-weight: 600;
  letter-spacing: -0.02em; }

h5 {
  font-weight: 600;
  letter-spacing: -0.02em; }

h6 {
  font-weight: 600;
  letter-spacing: -0.02em; }

h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem; }

/* --- Modern Buttons --- */
input[type="submit"], button, .button {
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  line-height: 1.4;
  white-space: nowrap; }
  input[type="submit"]:disabled, button:disabled, .button:disabled {
    opacity: 0.5;
    cursor: not-allowed; }
  input[type="submit"] > svg.icon:first-child, button > svg.icon:first-child, .button > svg.icon:first-child {
    margin-right: 0; }
  input[type="submit"].primary, button.primary, .button.primary {
    background: linear-gradient(135deg, #2e6ab5 0%, #4a90d9 100%);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-weight: 600; }
    input[type="submit"].primary:hover:not(:disabled), input[type="submit"].primary:focus:not(:disabled), button.primary:hover:not(:disabled), button.primary:focus:not(:disabled), .button.primary:hover:not(:disabled), .button.primary:focus:not(:disabled) {
      background: linear-gradient(135deg, #1a4971 0%, #2e6ab5 100%);
      box-shadow: var(--shadow-md);
      transform: translateY(-1px); }
    input[type="submit"].primary:active:not(:disabled), button.primary:active:not(:disabled), .button.primary:active:not(:disabled) {
      transform: translateY(0);
      box-shadow: var(--shadow-xs); }
    input[type="submit"].primary:focus-visible, button.primary:focus-visible, .button.primary:focus-visible {
      outline: none;
      box-shadow: var(--shadow-sm), var(--shadow-focus); }
    input[type="submit"].primary.danger, button.primary.danger, .button.primary.danger {
      background: linear-gradient(135deg, #a33d21 0%, #c95e40 100%);
      color: white; }
      input[type="submit"].primary.danger:hover:not(:disabled), button.primary.danger:hover:not(:disabled), .button.primary.danger:hover:not(:disabled) {
        background: linear-gradient(135deg, #883017 0%, #a33d21 100%); }
      input[type="submit"].primary.danger:focus-visible, button.primary.danger:focus-visible, .button.primary.danger:focus-visible {
        box-shadow: var(--shadow-sm), var(--shadow-focus-danger); }
    input[type="submit"].primary.accent, button.primary.accent, .button.primary.accent {
      background: linear-gradient(135deg, #a07501 0%, #c79b0e 100%); }
      input[type="submit"].primary.accent:hover:not(:disabled), button.primary.accent:hover:not(:disabled), .button.primary.accent:hover:not(:disabled) {
        background: linear-gradient(135deg, #795b00 0%, #a07501 100%); }
  input[type="submit"].secondary, button.secondary, .button.secondary {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    box-shadow: var(--shadow-xs);
    border-radius: var(--radius-md); }
    input[type="submit"].secondary:hover:not(:disabled), input[type="submit"].secondary:focus:not(:disabled), button.secondary:hover:not(:disabled), button.secondary:focus:not(:disabled), .button.secondary:hover:not(:disabled), .button.secondary:focus:not(:disabled) {
      background: var(--color-bg);
      border-color: #b1aca6;
      box-shadow: var(--shadow-sm);
      transform: translateY(-1px); }
    input[type="submit"].secondary:active:not(:disabled), button.secondary:active:not(:disabled), .button.secondary:active:not(:disabled) {
      transform: translateY(0); }
    input[type="submit"].secondary:focus-visible, button.secondary:focus-visible, .button.secondary:focus-visible {
      outline: none;
      box-shadow: var(--shadow-xs), var(--shadow-focus); }
    input[type="submit"].secondary.danger, button.secondary.danger, .button.secondary.danger {
      color: #a33d21;
      border-color: #f2ac99; }
      input[type="submit"].secondary.danger:hover:not(:disabled), button.secondary.danger:hover:not(:disabled), .button.secondary.danger:hover:not(:disabled) {
        background: #fef1ed;
        border-color: #c95e40; }
  input[type="submit"].tertiary, button.tertiary, .button.tertiary {
    background: transparent;
    border: none;
    text-decoration: none;
    color: var(--color-text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md); }
    input[type="submit"].tertiary:hover:not(:disabled), button.tertiary:hover:not(:disabled), .button.tertiary:hover:not(:disabled) {
      background: rgba(143, 137, 131, 0.1);
      color: var(--color-text); }
    input[type="submit"].tertiary.danger, button.tertiary.danger, .button.tertiary.danger {
      color: #c95e40;
      text-decoration: none; }
      input[type="submit"].tertiary.danger:hover:not(:disabled), button.tertiary.danger:hover:not(:disabled), .button.tertiary.danger:hover:not(:disabled) {
        background: rgba(201, 94, 64, 0.08);
        color: #a33d21; }

a.button {
  cursor: pointer; }

/* --- Modern Forms --- */
div.form {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  padding: 2rem;
  margin: 1.5rem 0; }
  @media screen and (max-width: 40rem) {
    div.form {
      padding: 1.5rem 1rem;
      margin: 0.75rem 0;
      border-radius: var(--radius-md); } }
div.form.layout-expanded {
  /* Modern checkboxes */
  /* Modern radios */ }
  div.form.layout-expanded label, div.form.layout-expanded legend {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem; }
  div.form.layout-expanded input[type="radio"] + label, div.form.layout-expanded input[type="checkbox"] + label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 1rem; }
  div.form.layout-expanded div.f-ebox {
    margin: 1.5rem 0; }
  div.form.layout-expanded input[type=text] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-input);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-bottom: 0; }
    div.form.layout-expanded input[type=text]::placeholder {
      color: var(--color-text-muted); }
    div.form.layout-expanded input[type=text]:hover {
      border-color: #b1aca6;
      border-bottom-color: #6cb4f0; }
    div.form.layout-expanded input[type=text]:focus {
      outline: none;
      border-color: #6cb4f0;
      border-bottom-color: #4a90d9;
      box-shadow: var(--shadow-focus); }
  div.form.layout-expanded input[type=password] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-input);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-bottom: 0; }
    div.form.layout-expanded input[type=password]::placeholder {
      color: var(--color-text-muted); }
    div.form.layout-expanded input[type=password]:hover {
      border-color: #b1aca6;
      border-bottom-color: #6cb4f0; }
    div.form.layout-expanded input[type=password]:focus {
      outline: none;
      border-color: #6cb4f0;
      border-bottom-color: #4a90d9;
      box-shadow: var(--shadow-focus); }
  div.form.layout-expanded input[type=email] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-input);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-bottom: 0; }
    div.form.layout-expanded input[type=email]::placeholder {
      color: var(--color-text-muted); }
    div.form.layout-expanded input[type=email]:hover {
      border-color: #b1aca6;
      border-bottom-color: #6cb4f0; }
    div.form.layout-expanded input[type=email]:focus {
      outline: none;
      border-color: #6cb4f0;
      border-bottom-color: #4a90d9;
      box-shadow: var(--shadow-focus); }
  div.form.layout-expanded input[type=tel] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-input);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-bottom: 0; }
    div.form.layout-expanded input[type=tel]::placeholder {
      color: var(--color-text-muted); }
    div.form.layout-expanded input[type=tel]:hover {
      border-color: #b1aca6;
      border-bottom-color: #6cb4f0; }
    div.form.layout-expanded input[type=tel]:focus {
      outline: none;
      border-color: #6cb4f0;
      border-bottom-color: #4a90d9;
      box-shadow: var(--shadow-focus); }
  div.form.layout-expanded div.select-wrap {
    border: 1px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-bottom: 0;
    background: var(--color-bg-input); }
    div.form.layout-expanded div.select-wrap > select {
      padding: 0.5rem 0.75rem;
      font-size: 0.95rem; }
    div.form.layout-expanded div.select-wrap:hover {
      border-color: #b1aca6;
      border-bottom-color: #6cb4f0; }
    div.form.layout-expanded div.select-wrap:focus-within {
      border-color: #6cb4f0;
      border-bottom-color: #4a90d9;
      box-shadow: var(--shadow-focus); }
  div.form.layout-expanded textarea {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-input);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
    div.form.layout-expanded textarea:hover {
      border-color: #b1aca6;
      border-bottom-color: #6cb4f0; }
    div.form.layout-expanded textarea:focus {
      outline: none;
      border-color: #6cb4f0;
      border-bottom-color: #4a90d9;
      box-shadow: var(--shadow-focus); }
  div.form.layout-expanded input[type="checkbox"] + label:before {
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    width: 1.15rem;
    height: 1.15rem;
    line-height: 1.15rem;
    font-size: 0.75rem;
    transition: all var(--transition-fast); }
  div.form.layout-expanded input[type="checkbox"]:checked + label:before {
    background: linear-gradient(135deg, #2e6ab5, #4a90d9);
    border-color: #2e6ab5; }
  div.form.layout-expanded input[type="radio"] + label:before {
    border: 2px solid var(--color-border);
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    transition: all var(--transition-fast); }
  div.form.layout-expanded input[type="radio"]:checked + label:before {
    border-color: #2e6ab5;
    background: #4a90d9;
    box-shadow: inset 0 0 0 3px white; }
  div.form.layout-expanded .radio-button-ext {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    margin: 0.25rem 0;
    transition: background-color var(--transition-fast); }
    div.form.layout-expanded .radio-button-ext:hover {
      background: rgba(74, 144, 217, 0.04); }
  div.form.layout-expanded div.f-bbox {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--color-border-light);
    margin-top: 1.5rem; }
  div.form.layout-expanded .form-title {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    color: var(--color-text) !important; }

p.form-desc.weak, p.field-desc.weak {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  line-height: 1.4; }

/* --- Modern Error Box --- */
div.f-errbox {
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  border: 1px solid #ed947c;
  background: #fef1ed;
  color: #681f0b;
  box-shadow: var(--shadow-sm); }

/* --- Modern Boxes / Cards --- */
.box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin: 1rem 0;
  transition: box-shadow var(--transition-base), transform var(--transition-base); }
  .box.primary {
    border-color: #90caf9;
    border-radius: var(--radius-md); }
  .box.accent {
    border-color: #fee577;
    border-radius: var(--radius-md); }
  .box.alert {
    border-color: #f2ac99;
    border-radius: var(--radius-md); }
  .box.warning {
    border-color: #fee577;
    border-radius: var(--radius-md); }
  .box.success {
    border-color: #c0ed9c;
    border-radius: var(--radius-md); }
  .box.hint {
    border-color: #90caf9;
    border-radius: var(--radius-md); }
  .box > header {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem; }

/* --- Modern Flash / Toast Messages --- */
.flashbox > div.box {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 200;
  max-width: 28rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  animation: slideInRight var(--transition-slow) ease-out;
  border-left: 4px solid transparent; }
  .flashbox > div.box.success {
    border-left-color: #7fc644; }
  .flashbox > div.box.alert {
    border-left-color: #c95e40; }
  @media screen and (max-width: 40rem) {
    .flashbox > div.box {
      right: 0.75rem;
      left: 0.75rem;
      max-width: none;
      top: 4rem; } }
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%); }
  to {
    opacity: 1;
    transform: translateX(0); } }

/* --- Modern Welcome / Admin Home Cards --- */
#home main > h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem; }

#home main > p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem; }

nav.welcome > ul {
  gap: 1.5rem;
  padding: 0; }
  nav.welcome > ul > li {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.5rem;
    margin: 0;
    min-width: 15rem;
    max-width: 20rem;
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base); }
    nav.welcome > ul > li:hover {
      box-shadow: var(--shadow-lg);
      transform: translateY(-4px);
      border-color: var(--color-primary); }
    nav.welcome > ul > li h2 {
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      margin: 0.5rem 0;
      color: var(--color-text); }
    nav.welcome > ul > li p {
      font-size: 0.875rem;
      color: var(--color-text-secondary);
      line-height: 1.6;
      margin: 0.5rem 0 1.5rem; }
    nav.welcome > ul > li .button {
      display: block;
      margin: 0.5rem 0 0;
      text-align: center;
      border-radius: var(--radius-md); }

/* User home profile section */
nav.welcome > ul > li.wide {
  max-width: 100%;
  flex-basis: 100%; }
  nav.welcome > ul > li.wide > div {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem; }
    nav.welcome > ul > li.wide > div > div {
      flex: 1 1 auto; }

/* --- Modern Avatar --- */
.avatar {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-border-light);
  box-shadow: var(--shadow-xs); }

/* --- Modern Profile Card --- */
div.profile-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin: 1.5rem 0; }

/* --- Modern Tables --- */
table {
  border-radius: var(--radius-md);
  overflow: hidden; }

th {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary); }

tr + tr {
  border-top: 1px solid var(--color-border-light); }

td {
  font-size: 0.9rem; }

div.elevated {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  padding: 2rem;
  margin: 1.5rem 0; }
  @media screen and (max-width: 40rem) {
    div.elevated {
      padding: 1.5rem 1rem;
      margin: 0.75rem 0; } }
/* Admin page headings */
main > h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border-light); }

/* Action button bars */
.user-actions-bar {
  margin-bottom: 1.5rem !important; }

/* --- Admin Page Body Styles --- */
/* Admin topbar indicator */
#topbar.admin {
  border-bottom: 2px solid #c95e40; }

/* Content sections in admin pages */
main > .box,
main > .elevated,
main > .form,
main > .datagrid-container {
  margin-top: 1.5rem; }

/* Description paragraphs after headings */
main > h1 + p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-top: -0.75rem;
  margin-bottom: 1.5rem; }

/* Inline style overrides for AD pages and other pages with inline styles */
.ad-status-card,
.ad-config-section,
.sync-status-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin: 1rem 0; }

/* Definition lists in admin pages */
dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0; }
  dl dt {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em; }
  dl dd {
    margin: 0;
    font-size: 0.95rem; }
    dl dd code {
      background: rgba(74, 144, 217, 0.08);
      padding: 0.1em 0.4em;
      border-radius: var(--radius-sm);
      font-size: 0.85em; }

/* Status badges used across admin pages */
.badge, .status-badge, .role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em; }

/* Link styling in admin areas */
main a:not(.button):not(.pagination-btn):not(.pagination-page) {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast); }
  main a:not(.button):not(.pagination-btn):not(.pagination-page):hover {
    color: var(--color-primary-hover);
    text-decoration: underline; }

/* Code blocks */
code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace; }

pre {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6; }

/* --- Modern Footer --- */
body > footer,
.main-wrapper > footer {
  display: block !important;
  background: transparent !important;
  background-color: transparent !important;
  margin-top: auto;
  border-top: 1px solid var(--color-border-light) !important;
  padding: 16px 32px !important;
  font-size: 0.8rem !important;
  color: var(--color-text-muted) !important;
  /* Kill old ul/li styles */ }
  body > footer ul, body > footer li,
  .main-wrapper > footer ul,
  .main-wrapper > footer li {
    all: unset; }
  body > footer .footer-inner,
  .main-wrapper > footer .footer-inner {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; }
    @media screen and (max-width: 40rem) {
      body > footer .footer-inner,
      .main-wrapper > footer .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center; } }
  body > footer .footer-brand,
  .main-wrapper > footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 8px; }
  body > footer .footer-logo,
  .main-wrapper > footer .footer-logo {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    opacity: 0.5; }
  body > footer .footer-name,
  .main-wrapper > footer .footer-name {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: -0.01em; }
  body > footer .footer-links,
  .main-wrapper > footer .footer-links {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted); }
  body > footer .footer-copy,
  .main-wrapper > footer .footer-copy {
    font-size: 0.72rem; }
  body > footer .footer-sep,
  .main-wrapper > footer .footer-sep {
    opacity: 0.3;
    font-size: 0.6rem; }
  body > footer a, body > footer a:visited,
  .main-wrapper > footer a,
  .main-wrapper > footer a:visited {
    color: var(--color-text-muted) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    font-size: 0.72rem;
    transition: color var(--transition-fast); }
    body > footer a:hover, body > footer a:visited:hover,
    .main-wrapper > footer a:hover,
    .main-wrapper > footer a:visited:hover {
      color: var(--color-primary) !important; }
  body > footer .footer-lang,
  .main-wrapper > footer .footer-lang {
    display: flex;
    align-items: center;
    gap: 4px; }
    body > footer .footer-lang svg,
    .main-wrapper > footer .footer-lang svg {
      opacity: 0.35; }
    body > footer .footer-lang a,
    .main-wrapper > footer .footer-lang a {
      padding: 2px 7px !important;
      border-radius: 4px;
      font-weight: 600 !important;
      font-size: 0.68rem;
      letter-spacing: 0.03em;
      color: var(--color-text-muted) !important; }
      body > footer .footer-lang a.active,
      .main-wrapper > footer .footer-lang a.active {
        background: var(--color-primary) !important;
        color: white !important; }
      body > footer .footer-lang a:not(.active):hover,
      .main-wrapper > footer .footer-lang a:not(.active):hover {
        background: rgba(74, 144, 217, 0.08);
        color: var(--color-primary) !important; }

/* --- Modern Login Page --- */
body#login {
  background: linear-gradient(135deg, #0a1929 0%, #0e2238 50%, #1a4971 100%) !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column; }
  body#login #mwrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    padding: 1.5rem; }
    body#login #mwrap > .filler, body#login #mwrap > .flashbox {
      display: none !important; }
    body#login #mwrap > main {
      flex: 0 0 auto !important;
      max-width: 26rem;
      width: 100%; }
  body#login .form {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem; }
    @media screen and (max-width: 40rem) {
      body#login .form {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg); } }
  body#login .form-title {
    text-align: center;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #132f4c !important;
    margin-bottom: 0.5rem; }
  body#login .form-desc {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-secondary); }
  body#login div.f-bbox {
    margin-top: 1.5rem; }
    body#login div.f-bbox .button.primary, body#login div.f-bbox input[type="submit"].primary {
      width: 100%;
      padding: 0.75rem 1.5rem;
      font-size: 1rem; }

/* --- Modern Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px; }

::-webkit-scrollbar-track {
  background: transparent; }

::-webkit-scrollbar-thumb {
  background: #cac3bd;
  border-radius: var(--radius-full); }
  ::-webkit-scrollbar-thumb:hover {
    background: #b1aca6; }

/* --- Modern Tooltips --- */
.with-tooltip:before {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
  width: auto; }

.with-tooltip:after {
  border-width: 6px; }

/* --- Utility Classes --- */
/* --- Dashboard Stat Cards --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px; }
  @media screen and (max-width: 60rem) {
    .stats-row {
      grid-template-columns: repeat(2, 1fr); } }
  @media screen and (max-width: 40rem) {
    .stats-row {
      grid-template-columns: 1fr; } }
.stat-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s ease;
  border: 1px solid var(--color-border-light); }
  .stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; }
  .stat-icon svg, .stat-icon svg.icon {
    width: 24px;
    height: 24px;
    color: #fff; }

.stat-info {
  flex: 1;
  min-width: 0; }

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px; }

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2; }

.stat-detail {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  margin-top: 4px; }
  .stat-detail .trend-up {
    color: var(--color-success);
    font-weight: 600; }
  .stat-detail .trend-down {
    color: var(--color-danger);
    font-weight: 600; }
  .stat-detail .trend-neutral {
    color: var(--color-text-secondary); }

/* --- Dashboard Panels --- */
.dashboard-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px; }
  @media screen and (max-width: 60rem) {
    .dashboard-panels {
      grid-template-columns: 1fr; } }
.panel {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  overflow: hidden; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border); }

.panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px; }
  .panel-title svg, .panel-title svg.icon {
    width: 18px;
    height: 18px;
    color: var(--color-text-secondary); }

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em; }
  .panel-badge.healthy {
    background: rgba(127, 198, 68, 0.12);
    color: #558B2F; }
  .panel-badge.warning {
    background: rgba(255, 152, 0, 0.12);
    color: #E65100; }
  .panel-badge.error {
    background: rgba(201, 94, 64, 0.12);
    color: #C62828; }
  .panel-badge.synced {
    background: rgba(74, 144, 217, 0.12);
    color: #1565C0; }

.panel-body {
  padding: 20px 24px; }

.panel-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border); }
  .panel-metric-row:last-child {
    border-bottom: none; }

.metric-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px; }
  .metric-label svg.icon {
    width: 16px;
    height: 16px;
    opacity: 0.6; }

.metric-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text); }

.metric-value-group {
  display: flex;
  align-items: center;
  gap: 4px; }

.progress-bar-bg {
  width: 120px;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px; }

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease; }

/* --- Quick Navigation Cards --- */
.quick-nav-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; }
  @media screen and (max-width: 60rem) {
    .cards-grid {
      grid-template-columns: repeat(2, 1fr); } }
  @media screen and (max-width: 40rem) {
    .cards-grid {
      grid-template-columns: 1fr; } }
.dash-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  border: 1px solid var(--color-border-light);
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-text); }
  .dash-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none; }

.dash-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; }
  .dash-card-icon svg, .dash-card-icon svg.icon {
    width: 20px;
    height: 20px;
    color: #fff; }

.dash-card-body {
  flex: 1;
  min-width: 0; }

.dash-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px; }

.dash-card-desc {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  line-height: 1.4; }

.dash-card-arrow {
  color: var(--color-text-secondary);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.15s ease; }
  .dash-card-arrow svg, .dash-card-arrow svg.icon {
    width: 16px;
    height: 16px; }

.dash-card:hover .dash-card-arrow {
  opacity: 1;
  transform: translateX(0); }

/* --- AD Status Indicators --- */
.ad-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border); }
  .ad-status-row:last-child {
    border-bottom: none; }

.ad-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0; }
  .ad-status-dot.online {
    background: #8BC34A;
    box-shadow: 0 0 6px rgba(139, 195, 74, 0.4); }
  .ad-status-dot.offline {
    background: var(--color-danger);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
  .ad-status-dot.syncing {
    background: #FF9800;
    animation: pulse-dot 1.5s infinite; }

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1; }
  50% {
    opacity: 0.4; } }

.ad-status-info {
  flex: 1; }

.ad-status-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text); }

.ad-status-detail {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 2px; }

/* --- Topbar (inside sidebar layout) --- */
.topbar {
  height: 56px;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.2s ease, border-color 0.2s ease; }

.topbar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px; }

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none; }
  .btn-logout:hover {
    border-color: var(--color-danger);
    color: var(--color-danger);
    text-decoration: none; }
  .btn-logout svg {
    width: 16px;
    height: 16px; }

/* --- Main Content Area --- */
.main-content {
  padding: 32px;
  max-width: 1200px; }
  @media screen and (max-width: 40rem) {
    .main-content {
      padding: 24px 16px; } }
/* --- Utility Classes --- */
.gap-sm {
  gap: 0.5rem; }

.gap-md {
  gap: 1rem; }

.gap-lg {
  gap: 1.5rem; }

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

.flex-center {
  display: flex;
  align-items: center; }

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

.text-sm {
  font-size: 0.875rem; }

.text-xs {
  font-size: 0.75rem; }

.text-muted {
  color: var(--color-text-muted); }

.font-semibold {
  font-weight: 600; }

.mt-0 {
  margin-top: 0; }

.mb-0 {
  margin-bottom: 0; }

/* ===== DRAWER PANEL ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease; }
  .drawer-overlay.visible {
    opacity: 1;
    pointer-events: auto; }

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 860px;
  max-width: 94vw;
  background: var(--color-bg);
  z-index: 950;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15), -2px 0 8px rgba(0, 0, 0, 0.08); }
  .drawer-panel.expanded {
    width: calc(100vw - var(--sidebar-width) - 16px);
    max-width: calc(100vw - var(--sidebar-width) - 16px); }
  .drawer-panel.open {
    transform: translateX(0); }

.drawer-header {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--color-primary);
  background: var(--color-bg-card);
  flex-shrink: 0;
  min-height: 56px;
  position: sticky;
  top: 0;
  z-index: 10; }

.drawer-title {
  flex: 1;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; }

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0; }

.drawer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0; }
  .drawer-btn:hover {
    background: var(--color-bg-card);
    border-color: var(--color-primary);
    color: var(--color-primary); }
  .drawer-btn.drawer-close {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--color-danger);
    font-size: 1.2rem;
    font-weight: 700; }
    .drawer-btn.drawer-close:hover {
      background: var(--color-danger);
      border-color: var(--color-danger);
      color: #fff; }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem;
  -webkit-overflow-scrolling: touch;
  /* Inherit the main content styles so forms/tables render correctly */
  /* Constrain tables to drawer width */ }
  .drawer-body h1 {
    font-size: 1.3rem;
    margin-top: 0; }
  .drawer-body h2 {
    font-size: 1.1rem; }
  .drawer-body table {
    width: 100%; }
  .drawer-body .elevated {
    border-radius: var(--radius-md); }

.drawer-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem; }

.drawer-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: drawer-spin 0.7s linear infinite; }

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

/* Prevent body scroll when drawer is open */
body.drawer-open {
  overflow: hidden; }

@media screen and (max-width: 600px) {
  .drawer-panel,
  .drawer-panel.expanded {
    width: 100vw;
    max-width: 100vw; } }

/* ===== DARK MODE OVERRIDES (manual toggle via data-theme) ===== */
[data-theme="dark"] {
  --color-bg: #0F1219;
  --color-bg-card: #1A1D2E;
  --color-bg-input: #16162a;
  --color-border: #2D3748;
  --color-border-light: #2D3748;
  --color-text: #E2E8F0;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;
  --color-primary: #6cb4f0;
  --color-primary-hover: #90caf9;
  --color-primary-light: #132f4c;
  --color-body-gradient: linear-gradient(135deg, #0a0e1a 0%, #0F1219 50%, #111827 100%);
  --sidebar-bg: #0F1219;
  --sidebar-hover: rgba(255,255,255,0.06);
  --sidebar-active-bg: rgba(255,255,255,0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.35), 0 4px 8px rgba(0,0,0,0.2);
  /* dark mode heading colors */
  /* dark mode dashboard badges */
  /* dark mode form inputs */
  /* dark login */
  /* dark stat cards / panels */ }
  [data-theme="dark"] div#topbar {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--color-border); }
  [data-theme="dark"] nav.welcome > ul > li {
    background: var(--color-bg-card);
    border-color: var(--color-border); }
    [data-theme="dark"] nav.welcome > ul > li:hover {
      border-color: #6cb4f0; }
  [data-theme="dark"] div.form {
    background: var(--color-bg-card);
    border-color: var(--color-border); }
  [data-theme="dark"] .box {
    background: var(--color-bg-card);
    border-color: var(--color-border); }
  [data-theme="dark"] div.elevated {
    background: var(--color-bg-card);
    border-color: var(--color-border); }
  [data-theme="dark"] div.profile-card {
    background: var(--color-bg-card);
    border-color: var(--color-border); }
  [data-theme="dark"] body > footer,
  [data-theme="dark"] .main-wrapper > footer {
    border-top-color: var(--color-border); }
  [data-theme="dark"] .avatar {
    border-color: var(--color-border); }
  [data-theme="dark"] .flashbox > div.box {
    background: var(--color-bg-card);
    border-color: var(--color-border); }
  [data-theme="dark"] ::selection {
    background-color: #2e6ab5;
    color: white; }
  [data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #4e4a46; }
    [data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
      background: #706965; }
  [data-theme="dark"] h1 {
    color: var(--color-text); }
  [data-theme="dark"] h2 {
    color: var(--color-text); }
  [data-theme="dark"] h3 {
    color: var(--color-text); }
  [data-theme="dark"] h4 {
    color: var(--color-text); }
  [data-theme="dark"] h5 {
    color: var(--color-text); }
  [data-theme="dark"] h6 {
    color: var(--color-text); }
  [data-theme="dark"] .panel-badge.healthy {
    color: #AED581; }
  [data-theme="dark"] .panel-badge.warning {
    color: #FFB74D; }
  [data-theme="dark"] .panel-badge.error {
    color: #EF9A9A; }
  [data-theme="dark"] .panel-badge.synced {
    color: #90CAF9; }
  [data-theme="dark"] div.form.layout-expanded input[type="text"],
  [data-theme="dark"] div.form.layout-expanded input[type="password"],
  [data-theme="dark"] div.form.layout-expanded input[type="email"],
  [data-theme="dark"] div.form.layout-expanded input[type="tel"] {
    background: var(--color-bg-input);
    border-color: var(--color-border);
    color: var(--color-text); }
    [data-theme="dark"] div.form.layout-expanded input[type="text"]:focus,
    [data-theme="dark"] div.form.layout-expanded input[type="password"]:focus,
    [data-theme="dark"] div.form.layout-expanded input[type="email"]:focus,
    [data-theme="dark"] div.form.layout-expanded input[type="tel"]:focus {
      border-color: #4a90d9;
      box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2); }
  [data-theme="dark"] div.form.layout-expanded div.select-wrap {
    background: var(--color-bg-input);
    border-color: var(--color-border); }
    [data-theme="dark"] div.form.layout-expanded div.select-wrap > select {
      color: var(--color-text); }
    [data-theme="dark"] div.form.layout-expanded div.select-wrap:focus-within {
      border-color: #4a90d9;
      box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2); }
  [data-theme="dark"] div.form.layout-expanded textarea {
    background: var(--color-bg-input);
    border-color: var(--color-border);
    color: var(--color-text); }
  [data-theme="dark"] div.form.layout-expanded label, [data-theme="dark"] div.form.layout-expanded legend {
    color: var(--color-text-secondary) !important; }
  [data-theme="dark"] div.form.layout-expanded div.f-bbox {
    border-top-color: var(--color-border); }
  [data-theme="dark"] body#login .form {
    background: rgba(26, 26, 46, 0.95);
    border-color: var(--color-border); }
  [data-theme="dark"] body#login .form-title {
    color: #90caf9 !important; }
  [data-theme="dark"] .stat-card,
  [data-theme="dark"] .panel,
  [data-theme="dark"] .dash-card {
    background: var(--color-bg-card);
    border-color: var(--color-border); }
