@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces.ttf");
}
@font-face {
  font-family: Montserrat;
  src: url("/fonts/montserrat.ttf");
}
@font-face {
  font-family: Montserrat;
  src: url("/fonts/montserrat-semibold.ttf");
  font-weight: 600;
}
@font-face {
  font-family: Mono;
  src: url("/fonts/mono.ttf");
}
:root {
  --paper: #efeae0;
  --ink: #251d20;
  --wine: #6b1a35;
  --rose: #bc2a4e;
  --muted: #756b6d;
  --line: #dcd5ce;
  --blue: #27557e;
  --green: #477650;
  --lilac: #d3b7cf;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.55 Montserrat,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button {
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--ink);
  border-radius: 9px;
  padding: 9px 15px;
}
button:hover:not(:disabled) {
  border-color: var(--wine);
  background: #f7f1eb;
}
a {
  color: var(--wine);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 10px;
}
h2 {
  font-size: 27px;
  line-height: 1.2;
}
h3 {
  font-size: 15px;
  line-height: 1.5;
}
.mono,
.eyebrow {
  font:
    12px/1.5 Mono,
    monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--muted);
  margin-bottom: 10px;
}
.primary {
  background: var(--wine);
  color: white;
  border-color: var(--wine);
}
.primary:hover:not(:disabled) {
  background: #511429;
  color: white;
}
.ghost {
  background: transparent;
}
.danger {
  color: #aa2843;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 16px;
}
.hidden {
  display: none !important;
}
.boot {
  padding: 100px;
  font-family: Fraunces;
  font-size: 36px;
}
.boot span {
  display: block;
  font: 14px Montserrat;
  margin-top: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 16px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 32px;
  font: 22px Fraunces;
}
.brandmark {
  background: var(--wine);
  border: 1px solid #a44b68;
  width: 35px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 30px;
}
.brand small {
  display: block;
  font: 10px Mono;
  letter-spacing: 0.14em;
  margin-top: 3px;
  color: #c9b4c4;
}
.nav-label {
  color: #b1a0aa;
  font: 10px Mono;
  letter-spacing: 0.16em;
  padding: 15px 12px 9px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  color: #d4c9cb;
  border: 0;
  text-align: left;
  padding: 11px 13px;
  margin: 3px 0;
}
.nav button.active {
  background: #493139;
  color: #fff;
}
.nav button:hover {
  background: #392c31;
}
.nav svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
}
.nav-count {
  margin-left: auto;
  background: var(--wine);
  border-radius: 5px;
  padding: 0 6px;
  font: 12px Mono;
}
.side-footer {
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid #4a3c43;
}
.avatar {
  width: 31px;
  height: 31px;
  background: #ead8e1;
  color: var(--wine);
  border: 2px solid #fff;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  flex: none;
}
.avatar.blue {
  color: #234b6a;
  background: #d5e2ec;
}
.avatar.green {
  color: #416046;
  background: #dce9db;
}
.side-footer .avatar {
  border: 0;
}
.side-footer button {
  background: none;
  color: #e0d1d7;
  border-color: #65535b;
  padding: 5px 8px;
}
.side-footer small {
  display: block;
  color: #bbaab3;
  font-size: 11px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4efe7;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb b {
  font-weight: 400;
  color: var(--ink);
}
.preview-tag {
  font: 10px Mono;
  letter-spacing: 0.07em;
  background: #e5dce7;
  border: 1px solid #cabacf;
  color: #644e6e;
  padding: 5px 9px;
  border-radius: 5px;
}
.content {
  padding: 32px 36px 50px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.heading-actions {
  display: flex;
  gap: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.stat {
  border-bottom: 2px solid var(--line);
  padding: 0 0 17px;
}
.stat strong {
  font: 34px Fraunces;
  margin-right: 10px;
}
.stat label {
  font-size: 12px;
  color: var(--muted);
}
.stat .foot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.stat.wine {
  border-color: var(--wine);
}
.stat.blue {
  border-color: var(--blue);
}
.stat.amber {
  border-color: #b58035;
}
.stat.green {
  border-color: var(--green);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 23px;
}
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search {
  width: 230px !important;
  background: #f8f4ee !important;
}
.segmented {
  display: flex;
  background: #e7dfd6;
  padding: 3px;
  border-radius: 8px;
}
.segmented button {
  border: 0;
  background: none;
  padding: 6px 13px;
  font-size: 12px;
}
.segmented .selected {
  background: #fffdfa;
  box-shadow: 0 1px 3px #0001;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 17px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 20px;
}
.column-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 600;
}
.column-heading span {
  color: var(--muted);
  font: 12px Mono;
}
.column-heading i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--muted);
}
.card {
  background: #fffcf7;
  border: 1px solid #ded6cd;
  border-radius: 11px;
  padding: 17px;
  margin-bottom: 12px;
  text-align: left;
  width: 100%;
  box-shadow: 0 2px 3px #251d2003;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  display: block;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px #251d200a;
}
.card .client {
  font: 10px Mono;
  color: var(--wine);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 13px;
}
.card h3 {
  margin-bottom: 14px;
  font-weight: 600;
}
.tag {
  display: inline-block;
  border: 1px solid #dfd5dc;
  color: #705261;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  background: #f4ebef;
}
.tag.blue {
  background: #e8eef3;
  border-color: #d3dde6;
  color: #345a78;
}
.tag.green {
  background: #eaf0e5;
  border-color: #d4dece;
  color: #506746;
}
.tag.amber {
  background: #f5ecdb;
  color: #886324;
  border-color: #e6d5b6;
}
.card-bottom {
  border-top: 1px solid #ebe4dc;
  padding-top: 13px;
  margin-top: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.avatars {
  display: flex;
  padding-left: 5px;
}
.avatars .avatar {
  margin-left: -5px;
  width: 27px;
  height: 27px;
  font-size: 9px;
}
.overdue {
  color: #ab3b52;
}
.add-task {
  background: none;
  border: 1px dashed #cfc3b8;
  width: 100%;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
}
.empty {
  padding: 40px 25px;
  border: 1px dashed #cfc3b8;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.panel {
  background: #fffcf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.panel h3 {
  margin: 12px 0;
}
.panel p {
  color: var(--muted);
  font-size: 13px;
}
.count {
  font: 32px Fraunces;
}
.client-panel {
  border-top: 3px solid var(--wine);
}
.list {
  display: grid;
  gap: 10px;
}
.list-item {
  padding: 17px 20px;
  background: #fffcf7;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.list-item h3 {
  margin: 0 0 4px;
}
.list-item p {
  margin: 0;
}
.kb-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 27px;
}
.kb-folders button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  margin: 2px 0;
}
.kb-folders .active {
  background: #e5dadb;
  color: var(--wine);
}
.article {
  max-width: 850px;
  margin: auto;
}
.article-body {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.9;
}
.article-link {
  display: block;
  margin: 15px 0;
  word-break: break-all;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(115px, 1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  overflow-x: auto;
}
.day {
  min-height: 120px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px;
  background: #faf6ef;
}
.day .number {
  font: 12px Mono;
  margin-bottom: 8px;
}
.day.today .number {
  color: var(--wine);
  font-weight: bold;
}
.day button {
  font-size: 10px;
  width: 100%;
  padding: 5px;
  text-align: left;
  margin-bottom: 3px;
}
.weekday {
  font: 11px Mono;
  padding: 10px;
  background: #e9e1d7;
  border-right: 1px solid var(--line);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font: 11px Mono;
  color: var(--muted);
  padding: 12px;
  text-transform: uppercase;
}
td {
  padding: 16px 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
td .row {
  gap: 9px;
}
progress {
  accent-color: var(--wine);
  width: 110px;
  height: 6px;
}
dialog {
  border: 0;
  border-radius: 16px;
  background: #f7f1e8;
  color: var(--ink);
  box-shadow: 0 24px 80px #0005;
  padding: 0;
  width: 680px;
  max-width: 95vw;
  max-height: 92vh;
}
dialog::backdrop {
  background: #251d2077;
  backdrop-filter: blur(2px);
}
dialog.wide {
  width: 1130px;
}
.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f1e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  margin: 0;
}
.modal-header button {
  border: 0;
  background: none;
  font-size: 24px;
  padding: 0 8px;
}
.modal-body {
  padding: 26px 28px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
label.field {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 17px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 1px solid #d6cbc2;
  border-radius: 7px;
  background: #fffdfa;
  color: var(--ink);
  margin-top: 6px;
  font-size: 13px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  accent-color: var(--wine);
  width: 16px;
  height: 16px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 5px 0;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.brief-box {
  background: #eee5dc;
  padding: 20px;
  border-radius: 10px;
  margin-top: 18px;
}
.section-title {
  font: 11px Mono;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 12px;
}
.error {
  background: #f9e4e7;
  color: #9e2440;
  padding: 12px;
  border-radius: 7px;
  margin-bottom: 15px;
  font-size: 13px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}
.detail-grid h1 {
  font-size: 30px;
}
.brief-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.brief-row label {
  font: 10px Mono;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
.brief-row p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.comment p {
  font-size: 13px;
  white-space: pre-wrap;
  margin: 7px 0;
}
.comment header {
  font-size: 11px;
  color: var(--muted);
}
.preview-media {
  max-width: 100%;
  max-height: 400px;
  display: block;
  background: #211c1e;
  border-radius: 8px;
  margin: 12px auto;
  object-fit: contain;
}
.preview-image {
  cursor: zoom-in;
}
.version {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffcf7;
  margin-bottom: 14px;
}
.version h3 {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.notification.unread {
  border-left: 3px solid var(--wine);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 10px;
  padding: 12px 20px;
  z-index: 20;
  display: none;
  font-size: 13px;
  box-shadow: 0 5px 20px #0003;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-art {
  background: var(--wine);
  color: var(--paper);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art h1 {
  font-size: 70px;
  max-width: 550px;
  line-height: 0.98;
}
.login-art .eyebrow {
  color: #d9bfd0;
}
.login-box {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box > div {
  max-width: 400px;
  width: 100%;
}
.login-box h1 {
  font-size: 42px;
}
.login-demo {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.login-demo button {
  width: 100%;
  text-align: left;
  margin-top: 9px;
}
.login-demo button small {
  display: block;
  color: var(--muted);
}
.ms-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}
.ms-icon {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 2px;
}
.ms-icon i {
  width: 8px;
  height: 8px;
  background: #fff;
}
.help {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .sidebar {
    padding-left: 9px;
    padding-right: 9px;
  }
  .shell {
    grid-template-columns: 200px 1fr;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat label {
    display: block;
  }
}
@media (max-width: 700px) {
  .shell {
    grid-template-columns: 160px 1fr;
  }
  .brand {
    font-size: 17px;
  }
  .content {
    padding: 20px;
  }
  .page-heading,
  .toolbar {
    align-items: start;
    flex-direction: column;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid,
  .grid.two,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .kb-layout {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .filters {
    flex-wrap: wrap;
  }
  .topbar {
    padding: 10px;
    height: auto;
  }
  .breadcrumb {
    display: none;
  }
}
.sidebar .nav {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
.sidebar .brand,
.side-footer {
  flex-shrink: 0;
}
.sidebar .brand {
  padding-bottom: 18px;
}
.side-footer {
  margin-top: 15px;
}
.nav-label {
  padding-top: 11px;
}
.nav button {
  padding-top: 9px;
  padding-bottom: 9px;
}
.client-pages {
  margin: 2px 0 12px 20px;
  padding-left: 9px;
  border-left: 1px solid #57414c;
  display: grid;
  gap: 3px;
}
.client-page {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #c9bac0;
  text-decoration: none;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 12px;
}
.client-page svg {
  width: 15px;
  height: 17px;
  flex: none;
}
.client-page span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-page small {
  margin-left: auto;
  font: 10px Mono;
  color: #bca5b2;
}
.client-page:hover,
.client-page.active {
  background: #493139;
  color: #fff;
}
.client-page.active {
  box-shadow: inset 2px 0 #c787a1;
}
.drive-card {
  position: relative;
  padding-top: 28px;
}
.drive-folder {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 51px;
  background: #efe3ce;
  border-radius: 10px;
  color: #926a2d;
  margin-bottom: 25px;
}
.drive-folder svg {
  width: 34px;
  height: 30px;
}
.drive-open {
  display: block;
  font-size: 13px;
  margin: 15px 0 20px;
}
.drive-card .ghost {
  display: block;
  margin-top: 15px;
}
.article-types {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.article-types button {
  font-size: 12px;
  background: transparent;
  border-color: transparent;
  border-radius: 20px;
}
.article-types .selected {
  background: var(--ink);
  color: var(--paper);
}
.article-card {
  text-align: left;
}
.article-card > .row > svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
}
.article-card h2 {
  font-size: 25px;
  margin: 20px 0 12px;
}
.role-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.role-tags > span:not(.muted) {
  font-size: 11px;
  background: #ebe3e7;
  color: #624252;
  border: 1px solid #ddcdd6;
  border-radius: 5px;
  padding: 3px 7px;
}
.role-tags button {
  border: 0;
  padding: 0 3px;
  background: none;
  font-size: 15px;
  color: inherit;
}
.reader-audience {
  margin-bottom: 32px;
}
.article-blocks {
  display: grid;
  gap: 22px;
}
.article-prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.85;
}
.instruction-step {
  display: flex;
  gap: 16px;
  background: #fefbf6;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 10px;
}
.instruction-step h3 {
  margin: 0 0 6px;
}
.step-number {
  font: 13px Mono;
  flex: none;
  width: 34px;
  height: 34px;
  background: #eee1e7;
  color: var(--wine);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.resource-block {
  display: flex;
  align-items: center;
  gap: 17px;
  background: #fffcf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
}
.resource-block:hover {
  border-color: var(--wine);
}
.resource-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e1eaf0;
  color: var(--blue);
  flex: none;
}
.resource-icon svg {
  width: 26px;
  height: 26px;
}
.resource-icon.folder-icon {
  border-radius: 9px;
  background: #efe3ce;
  color: #926a2d;
}
.resource-block small {
  font: 10px Mono;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.resource-block strong {
  display: block;
  font-size: 14px;
}
.resource-url {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin-top: 5px;
}
.resource-arrow {
  margin-left: auto;
}
.copy-block {
  border: 1px solid #cbbac4;
  border-radius: 11px;
  overflow: hidden;
  background: #fffafc;
}
.copy-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 17px;
  background: #e9dfe5;
  border-bottom: 1px solid #d8c8d1;
}
.copy-block header > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.copy-block header svg {
  height: 17px;
  width: 17px;
}
.copy-block header button {
  font-size: 12px;
  padding: 5px 12px;
  border-color: #cdb5c2;
  background: #fff9fc;
}
.copy-block pre {
  font:
    13px/1.8 Mono,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 21px;
  color: #44303d;
  max-height: 420px;
  overflow: auto;
}
.article-editor {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: 30px;
}
.article-meta {
  border-right: 1px solid var(--line);
  padding-right: 25px;
}
.article-composer {
  min-width: 0;
}
.role-options {
  display: grid;
  max-height: 200px;
  overflow: auto;
  margin: 10px 0;
}
.role-options .check {
  font-size: 12px;
}
.article-meta .row {
  align-items: center;
  gap: 7px;
}
.article-meta .row button {
  padding: 8px 9px;
  margin-top: 6px;
}
.editor-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffcf7;
  margin-bottom: 17px;
  overflow: hidden;
}
.editor-block > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eee7df;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
}
.editor-block > header .row {
  gap: 5px;
}
.editor-block > header button {
  padding: 2px 7px;
  background: transparent;
  border: 0;
  font-size: 16px;
}
.editor-block-body {
  padding: 18px;
}
.editor-block-body .field:last-child {
  margin-bottom: 0;
}
.editor-block-body textarea {
  min-height: 100px;
}
.editor-block-body textarea.exact-text {
  font:
    12px/1.75 Mono,
    monospace;
  background: #faf2f7;
  min-height: 160px;
  white-space: pre-wrap;
}
.link-kind {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.link-kind label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
}
.link-kind label:has(input:checked) {
  border-color: var(--wine);
  background: #f3e7ed;
}
.link-kind svg {
  width: 19px;
  height: 19px;
}
.link-kind input[type="radio"],
.article-meta input[type="radio"] {
  width: auto;
  display: inline;
  margin: 0;
  accent-color: var(--wine);
}
.block-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px dashed #c7b8bd;
  border-radius: 9px;
  padding: 14px;
}
.block-palette button {
  font-size: 12px;
  background: transparent;
  padding: 7px 10px;
}
.article-editor .section-title {
  letter-spacing: 0.08em;
}
@media (max-width: 850px) {
  .article-editor {
    grid-template-columns: 1fr;
  }
  .article-meta {
    border: 0;
    padding-right: 0;
  }
  .link-kind {
    flex-wrap: wrap;
  }
}

.task-workspace {
  display: grid;
  gap: 20px;
}
.task-workspace.with-workload {
  grid-template-columns: minmax(0, 1fr) 245px;
  align-items: start;
}
.task-results {
  min-width: 0;
  overflow-x: auto;
}
.task-results .board {
  min-width: 700px;
}
.workload-panel {
  padding: 20px;
}
.workload-panel h2 {
  font-size: 22px;
  margin: 0;
}
.workload-person {
  padding: 15px 0;
  border-bottom: 1px solid var(--line, #ddd);
}
.workload-person .row strong {
  flex: 1;
}
.workload-person progress {
  width: 100%;
  margin-top: 10px;
}
.workload-toggle {
  white-space: nowrap;
  margin: 0;
}

.task-results .board {
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  min-width: 1050px;
}
.completed-tasks {
  margin-top: 24px;
}
.completed-tasks summary {
  cursor: pointer;
  padding: 16px 0;
}

.workload-toggle input {
  appearance: none;
  width: 34px;
  height: 20px;
  border-radius: 20px;
  background: #c7c0c2;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.workload-toggle input::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: white;
  transition: transform 0.15s;
}
.workload-toggle input:checked {
  background: #6b1a35;
}
.workload-toggle input:checked::after {
  transform: translateX(14px);
}

.profile-name {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.profile-name:hover {
  text-decoration: underline;
}

.image-review {
  position: relative;
  display: table;
  max-width: 100%;
  margin: 12px auto;
}
.image-review .preview-media {
  margin: 0;
  cursor: crosshair;
  max-width: 100%;
  height: auto;
}
.review-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  background: #6b1a35;
  color: white;
  border: 2px solid white;
  box-shadow: 0 1px 5px #0007;
  z-index: 1;
}
.draft-pin {
  display: grid;
  place-items: center;
  pointer-events: none;
  background: #245bbb;
}
.review-pin.selected {
  outline: 3px solid #e6aa32;
}
.comment.selected {
  outline: 2px solid #6b1a35;
  background: #fff6ed;
}
.comment-anchor {
  font-size: 12px;
  margin-top: 5px;
}
.video-review-timeline {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 20px 18px;
}
.video-review-timeline.ready {
  position: relative;
  height: 30px;
  display: block;
  border-top: 4px solid #d5bfc7;
}
.video-review-timeline.ready button {
  position: absolute;
  top: -9px;
  transform: translateX(-50%);
  font-size: 11px;
  padding: 3px 5px;
}

[hidden] {
  display: none !important;
}

.nav-group-heading {
  display: flex;
  align-items: center;
}
.nav-group-heading > button:first-child {
  flex: 1;
  min-width: 0;
}
.nav-group-heading > button:last-child {
  width: 30px;
  flex: none;
  justify-content: center;
  padding: 10px 3px;
}
.routine-account {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.routine-question {
  padding: 15px;
  background: var(--paper, #faf7f3);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
}

.board.routine-board {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}
