﻿[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.library {
  max-width: 1400px;
  margin: 0 auto;
  padding: 42px clamp(18px, 4.6vw, 72px) 30px;
}
.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.library-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}
.library h1 {
  font-size: clamp(30px, 3vw, 43px);
}
.library-primary {
  background: var(--navy);
  color: white;
  border: 1px solid var(--navy);
  border-radius: 6px;
  padding: 10px 17px;
  font-weight: 650;
  white-space: nowrap;
}
.library-primary:hover {
  background: #314968;
}
.state-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.state-tab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 18px 22px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
}
.state-tab:last-child {
  border-right: 0;
}
.state-tab span {
  font-size: 14px;
}
.state-tab b {
  font:
    600 26px/1.2 "IBM Plex Mono",
    Consolas,
    monospace;
  color: var(--ink);
}
.state-tab:hover {
  background: #f4f6fa;
}
.state-tab[aria-pressed="true"] {
  border-bottom-color: var(--navy);
  background: #e9eef7;
  color: var(--navy);
  font-weight: 650;
}
.state-tab:focus-visible {
  outline-offset: -4px;
}
.list-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.list-tools,
.list-footer,
.entry-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.list-tools {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.list-tools input,
.list-tools select,
.list-footer button,
#empty button {
  border: 1px solid #cbd3df;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  height: 36px;
  font: inherit;
  font-size: 13px;
}
.list-tools select,
.list-footer button,
#empty button {
  padding: 0 10px;
}
.list-tools select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d07c47;
  outline-offset: 2px;
}
.query-wrap {
  display: flex;
  align-items: center;
  position: relative;
  width: min(330px, 100%);
  margin-right: auto;
}
.query-wrap input {
  width: 100%;
  padding: 0 12px 0 34px;
}
.magnifier {
  position: absolute;
  left: 13px;
  border: 1.6px solid #677687;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  pointer-events: none;
}
.magnifier:after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 6px;
  height: 1.5px;
  background: #677687;
  transform: rotate(45deg);
}
.post-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 13px;
}
.post-table th,
.post-table td {
  text-align: left;
  padding: 13px 12px;
  vertical-align: middle;
}
.post-table th:first-child,
.post-table td:first-child {
  padding-left: 21px;
}
.post-table th {
  background: #f7f8fa;
  color: #526176;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.post-table th:nth-child(1) {
  width: 33%;
}
.post-table th:nth-child(2) {
  width: 12%;
}
.post-table th:nth-child(3) {
  width: 15%;
}
.post-table th:nth-child(4) {
  width: 26%;
}
.post-table th:nth-child(5) {
  width: 14%;
}
.post-table td {
  border-bottom: 1px solid #e7ebf0;
}
.post-table tbody tr:hover {
  background: #f8faff;
}
.post-cell a {
  display: inline-block;
  font-weight: 650;
  color: #263b60;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.post-cell a:hover {
  text-decoration: underline;
}
.post-table small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.platform-sign {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 600;
}
.platform-sign.fb {
  background: #eaf0fb;
  color: #325593;
}
.platform-sign.th {
  background: #eef0f3;
  color: #343d4b;
}
.list-stage {
  white-space: nowrap;
}
.list-stage b {
  font:
    500 12px Consolas,
    monospace;
  color: #667894;
  background: #f1f3f7;
  padding: 2px 4px;
}
.state-dot:before {
  display: inline-block;
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8c95a3;
  margin-right: 6px;
  vertical-align: 2px;
}
.state-dot.working:before {
  background: #4b71c1;
}
.state-dot.attention:before {
  background: #bb783d;
}
.state-dot.done:before {
  background: #3f8668;
}
.date-cell {
  color: #445267;
  font-variant-numeric: tabular-nums;
}
.list-footer {
  justify-content: space-between;
  padding: 12px 20px;
  color: var(--muted);
  font-size: 13px;
}
.list-footer > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.list-footer button {
  height: 30px;
}
.list-footer button:disabled {
  opacity: 0.45;
  cursor: default;
}
#list-message {
  margin: 0;
  padding: 8px 20px;
  background: #edf6f0;
  color: #265f44;
  font-size: 13px;
}
#list-message:empty,
#entry-error:empty {
  display: none;
}
#empty {
  text-align: center;
  padding: 32px;
}
#empty h2 {
  font-size: 16px;
}
.library-note {
  color: var(--muted);
  font-size: 12px;
}
.entry-body {
  padding: 20px;
}
.entry-body label {
  font-weight: 650;
}
.entry-body p {
  font-size: 13px;
  color: var(--muted);
}
.entry-body textarea {
  width: 100%;
  resize: vertical;
  padding: 9px;
  border: 1px solid #bac4d1;
  border-radius: 5px;
  font: inherit;
  font-size: 13px;
}
#entry-title {
  margin: 0;
  font-size: 17px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--blue);
  padding: 8px 0;
  font-size: 13px;
}
.entry-actions {
  justify-content: flex-end;
  margin-top: 12px;
}
#entry-error {
  color: #9a421e;
}
@media (max-width: 920px) {
  .library {
    padding: 26px 16px;
  }
  .state-tab {
    padding: 14px;
  }
  .post-table th,
  .post-table td {
    padding: 10px 7px;
  }
}
@media (max-width: 720px) {
  .library {
    padding: 24px 12px;
  }
  .library-head {
    align-items: flex-start;
  }
  .library-head p {
    font-size: 12px;
  }
  .library-primary {
    padding: 8px 10px;
    font-size: 13px;
  }
  .state-tabs {
    margin-bottom: 16px;
  }
  .state-tab {
    flex-direction: column;
    align-items: center;
    padding: 9px 3px;
    gap: 2px;
  }
  .state-tab span {
    font-size: 12px;
  }
  .state-tab b {
    font-size: 20px;
  }
  .list-tools,
  .list-footer {
    padding: 12px;
    gap: 7px;
  }
  .query-wrap {
    width: 100%;
  }
  .post-table,
  .post-table tbody {
    display: block;
  }
  .post-table thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .post-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 8px;
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
  }
  .post-table td,
  .post-table td:first-child {
    display: block;
    padding: 0;
    border: 0;
  }
  .post-cell {
    grid-column: 1;
    grid-row: 1;
  }
  .platform-cell {
    grid-column: 2;
    grid-row: 1;
    text-align: right !important;
  }
  .stage-cell {
    grid-column: 1;
    grid-row: 2;
  }
  .date-cell {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
  }
  .date-cell small {
    display: none;
  }
  .result-cell {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .result-cell small {
    display: inline;
    margin-left: 8px;
  }
  .list-footer {
    font-size: 12px;
  }
  .list-footer > div {
    gap: 6px;
  }
}
