* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f5f0;
  color: #302b29;
  font:
    14px/1.6 Arial,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: #a32942;
  text-decoration: none;
}
button,
a,
input,
textarea,
select {
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font:
    36px Georgia,
    serif;
  line-height: 1.2;
}
h2 {
  font:
    25px Georgia,
    serif;
  margin-bottom: 20px;
}
h3 {
  font-size: 15px;
}
p {
  color: #786f67;
}
button,
.button {
  border: 1px solid #a32942;
  background: #a32942;
  color: white;
  padding: 10px 17px;
  display: inline-block;
  border-radius: 3px;
}
button:hover {
  background: #852038;
}
button.secondary,
.button.secondary {
  background: transparent;
  color: #a32942;
  border-color: #d8c8c6;
}
button.danger {
  background: #fff;
  color: #a32942;
  border-color: #a32942;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9d2c8;
  background: #fff;
  padding: 10px 12px;
  border-radius: 3px;
  color: #302b29;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #746b63;
}
form {
  display: grid;
  gap: 18px;
}
.field-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.field-row > label {
  flex: 1;
  min-width: 130px;
}
.login {
  max-width: 430px;
  margin: 8vh auto;
  background: white;
  border: 1px solid #e5ddd3;
  padding: 40px;
}
.login img {
  width: 50px;
}
.login h1 {
  margin: 24px 0 12px;
}
.login p {
  margin-bottom: 25px;
}
.login a {
  font-size: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 35px 22px;
  border-right: 1px solid #e2dacf;
  background: #eee8df;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .logo {
  font:
    38px Georgia,
    serif;
  letter-spacing: -2px;
  color: #a32942;
  margin-bottom: 30px;
}
.sidebar .logo small {
  display: block;
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 3px;
  margin-top: 5px;
}
.sidebar button {
  text-align: left;
  background: transparent;
  border: 0;
  color: #786c63;
  padding: 11px;
}
.sidebar button.active {
  background: #a32942;
  color: white;
}
.sidebar .bottom {
  margin-top: auto;
}
.role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a32942;
}
.workspace {
  padding: 40px 4%;
  max-width: 1550px;
  width: 100%;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2dacf;
  margin-bottom: 32px;
  gap: 20px;
}
.topbar p {
  font-size: 12px;
}
.panel {
  background: #fff;
  border: 1px solid #e3dcd2;
  padding: 26px;
  margin-bottom: 24px;
  border-radius: 4px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.panel .muted {
  margin-top: 12px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.actions.compact {
  margin: 8px 0;
}
.badge {
  display: inline-block;
  font-size: 10px;
  padding: 3px 9px;
  background: #eee5da;
  border-radius: 20px;
  color: #74614e;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge.paid,
.badge.verified {
  background: #dfeddf;
  color: #3b603f;
}
.badge.pending {
  background: #fff0d0;
  color: #87621b;
}
.meta {
  font-size: 11px;
  color: #8b8075;
}
.empty {
  padding: 28px;
  border: 1px dashed #d9cfc1;
  color: #8a7d6f;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  color: #8a7a6c;
  font-weight: 400;
  white-space: nowrap;
}
th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid #eee8df;
  vertical-align: top;
}
td button {
  font-size: 11px;
  padding: 5px 10px;
}
td {
  max-width: 350px;
  overflow-wrap: anywhere;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 400px;
}
.timeline {
  border-left: 1px solid #d7b2b7;
  margin: 20px 0 0 8px;
  padding-left: 25px;
}
.event {
  position: relative;
  padding-bottom: 30px;
}
.event:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a32942;
  position: absolute;
  left: -30px;
  top: 6px;
}
.event p {
  white-space: pre-wrap;
  margin: 8px 0;
  font-size: 13px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.tabs button {
  background: transparent;
  border-color: #d7c9be;
  color: #78685a;
}
.tabs button.active {
  background: #a32942;
  color: white;
}
.editor-section {
  border-top: 1px solid #e3dcd2;
  margin-top: 20px;
  padding-top: 20px;
}
.editor-section summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
.editor-section form,
.editor-fields {
  display: grid;
  gap: 16px;
  padding: 10px 0;
}
.editor-item {
  border: 1px solid #e3dcd2;
  padding: 18px;
  margin-top: 15px;
  background: #fbfaf7;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.error {
  color: #a32942;
  font-size: 12px;
  white-space: pre-wrap;
}
.success {
  color: #3b603f;
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  background: #302b29;
  color: white;
  z-index: 20;
  box-shadow: 0 8px 25px #0002;
}
#notice:not(:empty) {
  padding: 16px 22px;
}
dialog {
  border: 1px solid #dfd1c3;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow: auto;
  padding: 30px;
  background: #faf7f1;
}
dialog::backdrop {
  background: #302b2988;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.dialog-head button {
  padding: 4px 12px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0;
}
.pagination button {
  padding: 6px 15px;
}
.loading {
  padding: 50px;
}
.blog-writing-area {
  min-height: 430px;
  font-size: 15px;
  line-height: 1.8;
}
.pre {
  white-space: pre-wrap;
}
.line-item {
  display: grid;
  grid-template-columns: 2fr 80px 110px auto;
  gap: 8px;
  margin: 8px 0;
}
.notice {
  background: #fff1d7;
  color: #725b34;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 12px;
}
.sticky-actions {
  position: sticky;
  top: 0;
  background: #f7f5f0;
  padding: 12px 0;
  z-index: 3;
  border-bottom: 1px solid #e3dcd2;
}
.json {
  font: 12px/1.6 monospace;
  min-height: 350px;
}
.small {
  font-size: 11px;
}
fieldset {
  border: 1px solid #e3dcd2;
  padding: 20px;
}
legend {
  color: #a32942;
  padding: 0 8px;
}
@media (max-width: 800px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 15px;
    gap: 4px;
  }
  .sidebar .logo {
    font-size: 25px;
    margin: 0 20px 0 0;
  }
  .sidebar .logo small {
    font-size: 7px;
  }
  .sidebar button {
    font-size: 11px;
    padding: 8px;
  }
  .sidebar .bottom {
    margin: 0;
  }
  .workspace {
    padding: 25px 5%;
  }
  .topbar {
    align-items: flex-start;
  }
  .topbar h1 {
    font-size: 29px;
  }
  .login {
    margin: 30px 15px;
    padding: 30px;
  }
  .panel {
    padding: 20px;
  }
  .line-item {
    grid-template-columns: 1fr 60px 90px auto;
  }
  .field-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .topbar p {
    max-width: 180px;
  }
}
