@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #FFF3B0;
  color: #540B0E;
  min-height: 100vh;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 60rem;
  margin: 0 auto;
  background: #FFF3B0;
}

header {
  width: 100%;
  padding: 1.1rem 2vw;
  background: #335C67;
  border-bottom: 3px solid #E09F3E;
  display: flex;
  align-items: center;
  gap: 1rem;
}

header .logo {
  height: 2.5rem;
}

header h1 {
  font-size: 2rem;
  color: #FFF3B0;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(51, 92, 103, 0.07);
  position: relative;
  top: -1px;
}

main {
  flex: 1;
  width: 100%;
  padding: 2.5rem 2vw 2rem 2vw;
  background: #FFF3B0;
}

h1,
h2,
h3 {
  font-family: inherit;
  font-weight: bold;
  color: #540B0E;
  line-height: 1.13;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 1.2rem;
  border-left: 8px solid #E09F3E;
  padding-left: 0.7em;
}

main h1 {
  color: #540B0E;
  border-left: 8px solid #E09F3E;
  margin-top: 0;
}

h2 {
  font-size: 1.3rem;
  color: #335C67;
  margin-top: 1.7rem;
  margin-bottom: 1rem;
  border-left: 4px solid #E09F3E;
  padding-left: 0.6em;
}

h3 {
  font-size: 1.08rem;
  color: #9E2A2B;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid #E09F3E;
  padding-left: 0.5em;
}

p {
  color: #540B0E;
  font-size: 1rem;
  margin-bottom: 1.1em;
}

a {
  color: #E09F3E;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  transition: color 0.18s, text-decoration-thickness 0.18s;
}

a:hover,
a:focus {
  color: #9E2A2B;
  text-decoration-thickness: 2.2px;
}

.dim {
  color: #8d9193;
  font-size: 0.95rem;
  font-style: italic;
}

footer {
  width: 100%;
  padding: 1.1rem 2vw 1.2rem 2vw;
  background: #335C67;
  border-top: 3px solid #E09F3E;
  color: #FFF3B0;
  text-align: center;
  font-size: 0.98rem;
  margin-top: 0;
}

footer .author {
  color: #E09F3E;
  font-weight: 500;
  margin: 0 0.18em;
  letter-spacing: 0.03em;
  transition: color 0.18s;
}

footer .author:hover {
  color: #9E2A2B;
}

@media (max-width: 800px) {
  .container {
    max-width: 100vw;
  }

  main {
    padding: 1.2rem 1vw 1rem 1vw;
  }
}

/*
 * FORM STYLES
 */
.d0l-form {
  max-width: 60rem;
  min-height: 15rem;
  margin: 2rem auto;
  padding: 2rem 1.5rem 1.2rem 1.5rem;
  background: #fffbe5;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(51, 92, 103, 0.07);
  border: 1px solid #E09F3E;
}

.d0l-form form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
}

.d0l-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 13rem;
  min-height: 12rem;
}

.d0l-form .d0l-preview {
  grid-column: 1/3;
  min-height: 2.2em;
  background: #fff3f3;
  border: 1px dashed #E09F3E;
  border-radius: 0.5rem;
  padding: 0.7em 1em;
  color: #540B0E;
  font-size: 1rem;
  word-break: break-word;
}

.d0l-form .form-actions {
  display: flex;
  justify-content: flex-end;
}

.d0l-form label {
  font-size: 1rem;
  font-weight: 600;
  color: #335C67;
  margin-bottom: 0.1em;
  letter-spacing: 0.02em;
}

.d0l-form input[type=text] {
  font-size: 1rem;
  padding: 0.55em 0.9em;
  border: 2px solid #335C67;
  border-radius: 0.45em;
  background: #fff3f3;
  color: #540B0E;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.d0l-form input[type=text]:focus {
  box-shadow: 0 0 0 2px rgba(224, 159, 62, 0.13);
}

.d0l-form input[type=text].valid {
  border-color: #E09F3E;
}

.d0l-form input[type=text].invalid {
  border-color: #9E2A2B;
}

.d0l-form small.help {
  color: #8d9193;
  font-size: 0.92rem;
  margin-bottom: 0.1em;
  font-style: italic;
  line-height: 1.3;
}

.d0l-form .validation-message,
.d0l-form .valid,
.d0l-form .invalid {
  font-size: 0.97rem;
  min-height: 1.1em;
  margin-top: 0.05em;
  padding-left: 0.2em;
  transition: color 0.2s;
}

.d0l-form .valid {
  color: #335C67;
}

.d0l-form .invalid {
  color: #9E2A2B;
  font-weight: 500;
}

.d0l-form div.invalid::before,
.d0l-form p.invalid::before {
  content: "❌";
  color: #9E2A2B;
  font-size: 1.15em;
  margin-right: 0.4em;
  vertical-align: middle;
}

.d0l-form button[type=submit] {
  align-self: flex-start;
  padding: 0.7em 1.7em;
  background: #E09F3E;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 1px 6px rgba(224, 159, 62, 0.08);
  transition: background 0.18s, color 0.15s, box-shadow 0.2s;
}

.d0l-form button[type=submit]:hover,
.d0l-form button[type=submit]:focus {
  background: #335C67;
  color: #FFF3B0;
  box-shadow: 0 2px 12px rgba(51, 92, 103, 0.11);
}

.d0l-form button[type=submit]:disabled,
.d0l-form button[type=submit].disabled {
  background: rgb(230.82, 180.12, 104.46);
  color: rgba(255, 255, 255, 0.4666666667);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.65;
  border: none;
  pointer-events: none;
}

@media (max-width: 48rem) {
  .d0l-form form {
    display: flex;
    flex-direction: column;
  }

  .d0l-form .form-group {
    width: 100%;
    min-width: unset;
    min-height: unset;
  }

  .d0l-form .form-actions {
    justify-content: stretch;
    width: 100%;
    margin-top: 1rem;
  }

  .d0l-form .btn-primary,
  .d0l-form button[type=submit] {
    align-self: stretch;
    width: 100%;
    margin-top: 1.5rem;
  }
}

/*
 * --- D0L PREVIEW STYLES ---
 */
.d0l-detail {
  /* Status blocks */
}

.d0l-detail h2 {
  /* Use inherited heading styles, just add margin if needed */
  margin-bottom: 2.1rem;
  background: none;
}

.d0l-detail .d0l-preview {
  background: #fff3f3;
  border: 1px dashed #E09F3E;
  border-radius: 0.5rem;
  padding: 1.15rem 1.5rem 1.1rem 1.5rem;
  margin-bottom: 1.8rem;
  color: #540B0E;
}

.d0l-detail .d0l-preview p {
  margin-bottom: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.d0l-detail .d0l-preview p.start {
  align-items: start;
}

.d0l-detail .d0l-preview .label {
  font-weight: 600;
  color: #335C67;
  font-size: 1.04em;
  margin-right: 0.7em;
  min-width: 6em;
  display: inline-block;
  letter-spacing: 0.01em;
  text-align: right;
}

.d0l-detail .d0l-preview .d0l-preview-latex {
  font-size: 1.09em;
  color: #540B0E;
}

.d0l-detail .d0l-preview .d0l-created-info {
  float: right;
  letter-spacing: 0.01em;
  font-size: 0.7rem;
}

.d0l-detail .d0l-status-block p {
  font-size: 1.05rem;
  color: #540B0E;
}

.d0l-detail .d0l-status-block strong {
  color: #E09F3E;
  font-weight: bold;
}

.d0l-detail .d0l-status-block.d0l-in-queue {
  background: #FFF3B0;
  border-color: #E09F3E;
}

.d0l-detail .d0l-status-block.d0l-finished {
  background: #FFF3B0;
  border-color: #335C67;
}

.d0l-detail .d0l-status-block.d0l-finished h2,
.d0l-detail .d0l-status-block.d0l-finished strong {
  color: #335C67;
  border-left: 3px solid #335C67;
}

.d0l-preview-latex {
  font-size: 1.1em;
  color: #540B0E;
  margin-top: 0.5em;
  margin-bottom: 0.8em;
}

.d0l-status-block .label {
  font-weight: bold;
  color: #2d995b;
}

/* Responsive tweaks for mobile/tablet */
@media (max-width: 600px) {
  .d0l-detail {
    padding: 1.1rem 0.5rem 1.2rem 0.5rem;
  }

  .d0l-detail .d0l-preview {
    padding: 0.9rem 0.6rem;
  }

  .d0l-detail .d0l-preview .label {
    min-width: unset;
    font-size: 1em;
    text-align: left;
  }

  .d0l-detail h2 {
    font-size: 1.07rem;
    padding-left: 0.4em;
    margin-bottom: 1.1rem;
  }

  .d0l-detail .d0l-status-block {
    padding: 0.8em 0.5em 0.6em 0.7em;
  }
}

/* --- D0L FORM STYLES END --- */
/* --- D0L SYSTEMS LIST STYLES --- */
.d0l-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 1rem;
}

.d0l-tile {
  flex: 0 1 calc(33.333% - 0.667rem);
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.d0l-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7em 1.7em;
  background: #E09F3E;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(224, 159, 62, 0.08);
  transition: background 0.18s, color 0.15s, box-shadow 0.2s;
  text-decoration: none;
  text-align: center;
  width: fit-content;
}

.d0l-button:hover {
  background: #c87d12;
}

.work-in-progress {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff8e1;
  border-left: 6px solid #9E2A2B;
  font-size: 0.95rem;
  color: #5a4524;
  border-radius: 0.3rem;
  line-height: 1.4;
  font-size: larger;
}

@media (max-width: 900px) {
  .d0l-tile {
    flex: 1 1 calc(50% - 1rem);
    /* 2 per row on medium screens */
  }
}

@media (max-width: 48rem) {
  .d0l-tile {
    flex: 1 1 100%;
    /* 1 per row on small screens */
  }
}

/* --- D0L SYSTEMS LIST STYLES END --- */

/*# sourceMappingURL=styles.css.map */