.lf-page {
  --lf-ink: #26344a;
  --lf-muted: #637187;
  --lf-line: #e1e6eb;
  --lf-brand: #3155c8;
  color: var(--lf-ink);
  display: grid;
  align-content: start;
  gap: 13px;
  container-type: inline-size;
  min-width: 0;
}
.lf-page :is(h2,h3,p), .lf-dialog h2 { margin: 0; }
.lf-heading, .lf-section-head, .lf-dialog-head, .lf-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lf-heading { padding: 4px 2px; }
.lf-heading h2, .lf-dialog h2 { font-size: 20px; font-weight: 670; letter-spacing: -.5px; }
.lf-heading p { margin-top: 4px; color: var(--lf-muted); font-size: 12px; }
.lf-tabs {
  padding: 4px;
  display: flex;
  gap: 2px;
  border: 1px solid #e0e5ec;
  border-radius: 14px;
  background: #f0f2f5;
}
.lf-tabs button {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px;
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 10px;
  font-size: 12px;
  color: #526072;
  font-weight: 520;
}
.lf-tabs button:hover { color: var(--lf-ink); background: #e3e8ee; }
.lf-tabs button.lf-current { background: #273747; color: #fff; }
.lf-card, .lf-folds, .lf-focus {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--lf-line);
  border-radius: 14px;
}
.lf-card { padding: 16px 18px; }
.lf-section-head { margin-bottom: 9px; }
.lf-page h3 { font-size: 15px; line-height: 1.5; font-weight: 650; }
.lf-count, .lf-entry time { font-size: 11px; color: var(--lf-muted); white-space: nowrap; }
.lf-rows > :not(:last-child), .lf-records > :not(:last-child) { border-bottom: 1px solid var(--lf-line); }
.lf-reminder, .lf-file, .lf-question, .lf-med {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  font-size: 13px;
  line-height: 1.65;
}
.lf-reminder strong { min-width: 3em; }
.lf-page strong { font-weight: 600; }
.lf-reminder span, .lf-file > div, .lf-question > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lf-check {
  appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1.5px solid #a5b4c5;
  border-radius: 6px;
  background: white;
  margin: 0;
  cursor: pointer;
  position: relative;
}
.lf-check::before { content: ''; position: absolute; inset: -6px; }
.lf-check:hover { border-color: var(--lf-brand); }
.lf-check:checked { background: #3554bb; border-color: #3554bb; }
.lf-check:checked::after {
  content: '';
  display: block;
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.lf-reminder:has(:checked) > span, .lf-question:has(:checked) > span { color: var(--lf-muted); text-decoration: line-through; }
.lf-selected { background: #edf2ff; border-radius: 6px; outline: 3px solid #edf2ff; }
.lf-folds { padding: 0 18px; }
.lf-folds details + details { border-top: 1px solid var(--lf-line); }
.lf-folds summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 560;
}
.lf-folds summary::-webkit-details-marker { display: none; }
.lf-folds summary .ico { color: var(--lf-muted); }
.lf-folds summary .ico:last-child { margin-left: auto; transition: transform .15s ease-out; }
.lf-folds details[open] summary .ico:last-child { transform: rotate(180deg); }
.lf-folds details > div { padding: 0 0 12px 24px; font-size: 13px; }
.lf-folds details p { color: var(--lf-muted); }
.lf-btn, .lf-icon-btn {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 550;
  background: #f0f3f8;
  color: #384d69;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}
.lf-btn:hover, .lf-icon-btn:hover { background: #e1e8f2; }
.lf-link { color: #3454ad; background: transparent; }
.lf-small { border: 1px solid #dde4ed; background: #f7f9fb; }
.lf-primary { background: #3458cf; color: #fff; padding: 8px 13px; }
.lf-primary:hover { background: #2949ae; }
.lf-icon-btn { width: 30px; height: 30px; padding: 0; background: transparent; color: var(--lf-muted); }
.lf-focus {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 18px;
  background: #f8f6f3;
  border-color: #e9e4dd;
}
.lf-focus-mark, .lf-med-icon { flex: none; display: grid; place-items: center; border-radius: 50%; }
.lf-focus-mark { color: #783d34; background: #f4cebb; width: 34px; height: 34px; }
.lf-focus > div { flex: 1; min-width: 0; }
.lf-focus p { margin-top: 4px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.lf-focus-select { flex: none; display: grid; gap: 3px; color: var(--lf-muted); font-size: 11px; }
.lf-focus-select select { padding: 4px; border: 1px solid #d4dce4; border-radius: 5px; background: white; color: var(--lf-ink); font-size: 12px; }
.lf-file small { display: block; color: var(--lf-muted); font-size: 11px; }
.lf-file:last-child, .lf-med:last-child, .lf-reminder:last-child { padding-bottom: 4px; }
.lf-med-icon { width: 30px; height: 30px; color: #326c74; background: #e9f4f4; }
.lf-med > span:last-child { margin-left: auto; font-size: 12px; color: var(--lf-muted); }
.lf-form, .lf-form label { display: grid; gap: 6px; }
.lf-form { gap: 12px; }
.lf-form label { color: #53647a; font-size: 12px; min-width: 0; }
.lf-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(125px,100%), 1fr)); gap: 10px; }
.lf-form :is(input,textarea,select), .lf-add-question input, .lf-dialog textarea {
  width: 100%;
  min-width: 0;
  color: #26344a;
  border: 1px solid #d2dbe5;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}
.lf-page :is(input,textarea,select,button,summary):focus-visible, .lf-dialog :focus-visible { outline: 2px solid #4a70db; outline-offset: 2px; }
.lf-form textarea, .lf-dialog textarea { resize: vertical; }
.lf-actions { display: flex; justify-content: flex-end; }
.lf-add-question { display: flex; gap: 8px; margin-top: 10px; }
.lf-empty { color: var(--lf-muted); font-size: 13px; padding: 9px 0; }
.lf-entry { padding: 12px 3px; overflow-wrap: anywhere; }
.lf-entry > div { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; font-size: 13px; }
.lf-entry p { white-space: pre-wrap; margin-top: 4px; font-size: 13px; line-height: 1.65; }
.lf-status { font-size: 12px; color: #36578a; }
.lf-status:empty { display: none; }
.lf-dialog {
  width: min(550px, calc(100% - 32px));
  padding: 22px;
  border: 1px solid #dbe1e9;
  border-radius: 16px;
  color: #253348;
  box-shadow: 0 16px 64px #19233336;
}
.lf-dialog::backdrop { background: #18253e64; }
.lf-dialog textarea { display: block; margin: 16px 0; height: min(47vh, 370px); line-height: 1.75; }
.lf-dialog-foot small { font-size: 12px; color: #4e627d; }
@container (max-width: 530px) {
  .lf-tabs button { padding: 6px 3px; font-size: 11px; gap: 4px; }
  .lf-card, .lf-focus { padding: 13px 14px; }
}
@container (max-width: 390px) {
  .lf-tabs:has(button:nth-child(5)) button { flex-direction: column; gap: 3px; }
  .lf-reminder, .lf-file, .lf-question { gap: 8px; }
  .lf-heading h2 { font-size: 18px; }
  .lf-focus { flex-wrap: wrap; }
  .lf-focus-select { width: 100%; display: flex; align-items: center; gap: 6px; padding-left: 42px; }
}
