.sidebar [data-icon="transfer"]::before {
  left: 2px; top: 2px; width: 10px; height: 12px; border: 1.5px solid; border-radius: 2px;
}
.sidebar [data-icon="transfer"]::after {
  left: 8px; top: 7px; width: 10px; height: 12px; border: 1.5px solid; border-radius: 2px;
  background: linear-gradient(currentColor,currentColor) center 3px / 4px 1px no-repeat,
    linear-gradient(currentColor,currentColor) center 6px / 4px 1px no-repeat;
}
.td-screen { max-width: 1140px; min-width: 0; color: var(--ui-ink,#20342d); }
.td-screen *, .td-screen *::after, .td-screen *::before { box-sizing: border-box; }
.td-screen :is(h1,h2,h3,p,ul) { margin: 0; }
.td-screen h1 { font-size: clamp(27px,2.5vw,38px); font-weight: 730; line-height: 1.26; letter-spacing: -.035em; }
.td-screen h2 { font-size: clamp(19px,1.6vw,24px); line-height: 1.45; font-weight: 680; }
.td-screen h3 { line-height: 1.52; font-size: 17px; font-weight: 660; }
.td-screen .td-page-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  height: auto; min-height: 0; padding: 0; margin: 0 0 20px; background: transparent; border: 0;
}
.td-page-head p,.td-screen .td-library-hint,.td-screen .td-paper-meta,.td-footer p,.td-empty-library,.td-screen .td-empty-state p {
  color: var(--ui-muted,#53695e); font-size: 14px; line-height: 1.6;
}
.td-screen .td-page-head p,.td-screen .td-library-hint { margin: 5px 0 0; }
.td-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 16px; align-items: start; }
.td-builder,.td-library { min-width: 0; }
.td-card {
  min-width: 0; padding: clamp(16px,2vw,26px); border: 1px solid var(--ui-line,#dce2d9);
  border-radius: 14px; background: var(--ui-paper,#fffefa); box-shadow: var(--ui-shadow,none); overflow-wrap: anywhere;
}
.td-screen .td-field { display: block; font-weight: 600; font-size: 14px; margin: 20px 0 5px; }
.td-screen select {
  min-width: 0; width: 100%; max-width: 100%; padding: 8px 26px 8px 11px; min-height: 42px;
  font: inherit; font-size: 15px; color: var(--ui-ink,#20342d);
  border: 1px solid #b4c6b7; border-radius: 8px; background-color: var(--ui-paper,#fffefa);
}
.td-focus {
  margin: 15px 0 19px; padding: 13px 16px; border: 1px solid #ccdcca;
  border-radius: 10px; background: linear-gradient(105deg,#eaf1e5,#f1f5ed);
}
.td-focus-meta { color: #45684e; font-size: 13px; font-weight: 580; }
.td-screen .td-focus h3 { margin: 2px 0 0; color: #254b39; }
.td-screen .td-focus p,.td-screen .td-unavailable p { margin-top: 4px; font-size: 14px; color: #445f4c; }
.td-screen summary { cursor: pointer; color: #365742; font-weight: 550; font-size: 14px; }
.td-screen .td-sources summary { padding: 6px 0 0; }
.td-screen .td-sources ul { padding-left: 18px; margin-top: 6px; color: #445849; font-size: 13px; }
.td-quantity { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; }
.td-quantity label { font-size: 14px; margin: 0; font-weight: 600; }
.td-screen .td-quantity select { width: auto; min-width: 86px; }
.td-footer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ui-line,#dce2d9); }
.td-screen .td-footer p { margin-top: 7px; font-size: 13px; }
.td-screen .td-button {
  display: inline-flex; justify-content: center; align-items: center; width: auto; max-width: 100%; margin: 0;
  min-height: 40px; padding: 7px 13px; border: 1px solid #bdcebf; border-radius: 8px; font: inherit; font-size: 14px;
  font-weight: 590; line-height: 1.45; background: var(--ui-paper,#fffefa); color: #315440; cursor: pointer;
}
.td-screen .td-button:hover { background: #ebf2e6; border-color: #88a88e; }
.td-screen .td-primary { color: white; background: var(--ui-action,#1f624f); border-color: var(--ui-action,#1f624f); }
.td-screen .td-primary:hover { color: white; background: #184d3a; border-color: #184d3a; }
.td-screen .td-practice { color: #2c5840; background: #ecf3e8; }
.td-screen :is(button,summary,select):focus-visible { outline: 3px solid #8f671b; outline-offset: 3px; }
.td-screen .td-unavailable { margin: 9px 0 0; padding: 9px 6px; }
.td-screen .td-unavailable ul { padding: 0; margin: 6px 0; list-style: none; }
.td-unavailable li { display: grid; padding: 6px 0; font-size: 14px; overflow-wrap: anywhere; }
.td-unavailable li span { color: var(--ui-muted,#53695e); font-size: 13px; }
.td-screen .td-empty-state p { margin: 7px 0 16px; }
.td-library-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.td-library-head span { flex: none; color: var(--ui-muted,#53695e); font-size: 13px; }
.td-screen .td-papers { padding: 0; margin: 12px 0; list-style: none; }
.td-paper { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; padding: 12px 0; border-top: 1px solid var(--ui-line,#dce2d9); }
.td-paper > div { flex: 1 1 190px; min-width: 0; }
.td-paper h3 { font-size: 16px; }
.td-screen .td-paper-meta { margin-top: 2px; font-size: 13px; }
.td-screen .td-paper .td-success { color: #355b3e; font-size: 13px; font-weight: 640; margin-bottom: 2px; }
.td-screen .td-just-saved { padding: 12px; border: 1px solid #b9cfb8; border-radius: 9px; background: #f0f5eb; }
.td-screen .td-empty-library { padding: 14px 0; margin: 11px 0; border-block: 1px solid var(--ui-line,#dce2d9); }
.li-drill-links { display: flex; flex-wrap: wrap; gap: 6px; }
.work .paper-source-filter {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: 100%;
  margin: 0 0 12px; color: #36533f; font-size: 14px; font-weight: 600;
}
.work .paper-source-filter select {
  width: auto; max-width: 100%; min-height: 40px; margin: 0; padding: 6px 28px 6px 10px; font: inherit;
  font-weight: 470; color: #2b4b37; border: 1px solid #bdcdbf; border-radius: 7px; background-color: #fffefa;
}
.work .paper-source-filter select:focus-visible { outline: 3px solid #8f671b; outline-offset: 3px; }
@media (max-width:1000px) { .td-layout { grid-template-columns: 1fr; } }
@media (max-width:560px) {
  .td-layout { gap: 12px; }
  .td-screen .td-page-head { margin-bottom: 14px; }
  .td-screen .td-field { margin-top: 13px; }
  .td-focus { margin: 11px 0 12px; padding: 11px 12px; }
  .td-footer { margin-top: 12px; padding-top: 13px; }
}
