:root {
  font-family:Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;
  color:#243a30;
  background:#f5f7f4;
  font-size:14px;
  line-height:1.65;
  --paper:#fff;
  --surface:#f5f7f4;
  --ink:#243a30;
  --muted:#6b7b71;
  --line:#e2e9e1;
  --accent:#2d654f;
  --accent-ink:#fff;
  --soft:#edf3ec;
  --error:#964531;
  --error-bg:#fff6f0;
  --radius:10px
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select {
  font:inherit;
  color:inherit
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  cursor:default;
  opacity:.55
}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #8abca0;
  outline-offset:3px
}
input,select {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:7px;
  min-height:42px;
  padding:9px 12px;
  max-width:100%;
  width:100%
}
input:focus,select:focus {
  border-color:var(--accent)
}
input::placeholder {
  color:#8b998f
}
a {
  color:var(--accent);
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
p,h1,h2,h3 {
  margin:0
}
h1 {
  font-size:25px;
  line-height:1.5;
  font-weight:600;
  letter-spacing:-.4px;
  overflow-wrap:anywhere
}
h2 {
  font-size:15px;
  font-weight:600
}
svg {
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round
}
.button,button.primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:40px;
  padding:8px 13px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper);
  color:var(--ink);
  white-space:nowrap;
  font-size:13px;
  text-decoration:none
}
.button:hover {
  background:var(--surface);
  text-decoration:none
}
button.primary {
  background:var(--accent);
  color:var(--accent-ink);
  border-color:var(--accent)
}
button.primary:hover:not(:disabled) {
  filter:brightness(1.08)
}
button.quiet,a.quiet {
  background:none;
  border:0;
  color:var(--accent);
  padding:7px 2px;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:6px
}
.quiet:hover {
  text-decoration:underline
}
.small {
  font-size:12px!important
}
.muted {
  color:var(--muted);
  font-size:13px
}
.eyebrow {
  font-size:12px;
  color:var(--accent);
  letter-spacing:.3px
}
.badge {
  display:inline-flex;
  align-items:center;
  padding:2px 9px;
  font-size:11px;
  line-height:1.8;
  border:1px solid var(--line);
  border-radius:30px;
  background:var(--soft);
  color:var(--accent)
}
.topbar {
  height:68px;
  display:flex;
  align-items:center;
  gap:30px;
  padding:0 30px;
  background:var(--paper);
  border-bottom:1px solid var(--line)
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:16px;
  font-weight:650;
  letter-spacing:.4px;
  white-space:nowrap
}
.brand:hover {
  text-decoration:none
}
.brand svg {
  width:24px;
  height:24px
}
.top-caption {
  font-size:12px;
  color:var(--muted)
}
.top-actions {
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:auto
}
.app-layout {
  display:grid;
  grid-template-columns:255px minmax(0,1fr);
  max-width:1600px;
  margin:auto;
  min-height:calc(100vh - 68px)
}
.library {
  padding:28px 20px;
  border-right:1px solid var(--line)
}
.library details>summary {
  display:none
}
.library-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:16px
}
.search {
  min-height:36px;
  padding:8px 10px;
  font-size:12px;
  background:var(--paper)
}
.library-list {
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:17px -7px 0;
  max-height:calc(100vh - 300px);
  overflow:auto
}
.library-item {
  width:100%;
  border:1px solid transparent;
  background:none;
  text-align:left;
  border-radius:7px;
  padding:11px 10px;
  display:block;
  overflow-wrap:anywhere
}
.library-item:hover {
  background:var(--soft)
}
.library-item[aria-current="page"] {
  background:var(--paper);
  border-color:var(--line);
  box-shadow:0 2px 5px #203a2910
}
.library-item strong {
  font-size:13px;
  line-height:1.6;
  font-weight:500;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.library-item small {
  font-size:11px;
  color:var(--muted);
  display:block;
  margin-top:6px
}
.library-empty {
  font-size:12px;
  color:var(--muted);
  padding:8px 7px;
  line-height:1.9
}
.library-foot {
  font-size:11px;
  color:var(--muted);
  margin-top:26px;
  line-height:1.9
}
.count {
  font-size:12px;
  color:var(--muted)
}
main {
  min-width:0;
  padding:28px 34px 40px;
  max-width:1220px;
  width:100%
}
.new-task {
  margin-bottom:24px
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px
}
.section-heading h2 {
  font-size:14px
}
.section-heading>span {
  font-size:11px;
  color:var(--muted)
}
.url-form {
  display:grid;
  grid-template-columns:minmax(0,1fr) 142px auto;
  gap:9px
}
.url-form input,.url-form select {
  font-size:13px
}
.url-field {
  min-width:0
}
.url-form button {
  min-height:42px
}
.configuration {
  font-size:12px;
  color:var(--muted);
  margin-top:10px
}
.notice {
  margin:0 0 20px;
  padding:12px 16px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:7px;
  font-size:13px;
  overflow-wrap:anywhere
}
.notice.error {
  background:var(--error-bg);
  border-color:#e7c9bb;
  color:var(--error)
}
.jobs-section {
  margin-bottom:20px
}
.job {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:8px;
  margin-top:9px;
  padding:14px 16px
}
.job-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.job-heading strong {
  font-size:13px;
  font-weight:500
}
.job-heading button {
  flex-shrink:0
}
.job-message {
  font-size:12px;
  color:var(--muted);
  margin-top:5px;
  overflow-wrap:anywhere
}
.job.error {
  border-color:#e7c9bb
}
.job.error .job-message {
  color:var(--error)
}
.job progress {
  appearance:none;
  border:0;
  width:100%;
  height:3px;
  display:block;
  border-radius:3px;
  background:var(--soft);
  margin-top:12px;
  accent-color:var(--accent)
}
.job progress::-webkit-progress-bar {
  background:var(--soft);
  border-radius:3px
}
.job progress::-webkit-progress-value {
  background:var(--accent);
  border-radius:3px
}
.job progress::-moz-progress-bar {
  background:var(--accent)
}
.spinner {
  display:inline-block;
  width:12px;
  height:12px;
  border:1.5px solid var(--line);
  border-top-color:var(--accent);
  border-radius:50%;
  margin-right:7px;
  vertical-align:-1px;
  animation:spin 1s linear infinite
}
.result {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden
}
.note-heading {
  padding:25px 27px 23px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  flex-wrap:wrap
}
.note-title-wrap {
  min-width:0;
  flex:1 1 400px
}
.note-heading h1 {
  margin:6px 0 8px
}
.note-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding-top:4px
}
.tabs {
  display:flex;
  gap:26px;
  margin:0 27px;
  border-bottom:1px solid var(--line)
}
.tabs button {
  background:none;
  border:0;
  border-bottom:2px solid transparent;
  padding:11px 0;
  font-size:14px;
  white-space:nowrap
}
.tabs button[aria-selected="true"] {
  color:var(--accent);
  border-bottom-color:var(--accent);
  font-weight:600
}
.read-layout {
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  min-height:430px
}
.outline {
  padding:25px 15px 23px 20px;
  border-right:1px solid var(--line);
  min-width:0
}
.outline h2 {
  font-size:12px;
  color:var(--muted);
  font-weight:400;
  margin-bottom:16px
}
.outline-entry {
  margin:5px 0 12px
}
.outline-entry button {
  display:block;
  width:100%;
  text-align:left;
  background:none;
  border:0;
  border-radius:5px;
  padding:7px;
  font-size:12px;
  line-height:1.7;
  overflow-wrap:anywhere
}
.outline-entry button:hover,.outline-entry button[aria-pressed="true"] {
  background:var(--soft);
  color:var(--accent)
}
.outline-entry a {
  font-size:11px;
  margin-left:7px;
  font-variant-numeric:tabular-nums
}
.outline-empty {
  font-size:12px;
  color:var(--muted);
  padding:7px
}
.outline-foot {
  font-size:11px;
  color:var(--muted);
  padding-top:17px;
  border-top:1px solid var(--line);
  margin:22px 7px 0;
  line-height:1.9
}
.reading {
  min-width:0;
  padding:29px 33px 36px;
  max-height:calc(100vh - 255px);
  min-height:380px;
  overflow:auto;
  overflow-wrap:anywhere;
  scrollbar-width:thin;
  font-size:15px;
  line-height:1.9;
  scroll-margin-top:25px
}
.reading>.reading-label {
  font-size:12px;
  color:var(--muted);
  margin-bottom:14px
}
.reading h1 {
  font-size:24px;
  margin:16px 0
}
.reading h2 {
  font-size:20px;
  line-height:1.6;
  margin:26px 0 12px
}
.reading h3 {
  font-size:17px;
  line-height:1.6;
  margin:23px 0 10px
}
.reading h4,.reading h5,.reading h6 {
  font-size:15px;
  margin:19px 0 8px
}
.reading p {
  margin:11px 0
}
.reading ul,.reading ol {
  padding-left:24px
}
.reading li {
  margin:7px 0
}
.reading strong {
  font-weight:600
}
.reading pre {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:7px;
  padding:15px;
  overflow:auto;
  font:13px/1.8 Consolas,monospace;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.reading code {
  font-family:Consolas,monospace;
  font-size:.9em
}
.reading :not(pre)>code {
  background:var(--surface);
  padding:2px 4px;
  border-radius:3px
}
.reading blockquote {
  margin:20px 0;
  padding-left:17px;
  border-left:3px solid var(--line);
  color:var(--muted)
}
.reading hr {
  border:0;
  border-top:1px solid var(--line);
  margin:26px 0
}
.table-scroll {
  max-width:100%;
  overflow:auto
}
.reading table {
  border-collapse:collapse;
  width:100%;
  font-size:13px
}
.reading td,.reading th {
  padding:9px 10px;
  border:1px solid var(--line);
  text-align:left;
  min-width:85px
}
.reading th {
  background:var(--surface)
}
.takeaways {
  list-style:none;
  padding:0!important;
  margin:23px 0
}
.takeaways li {
  display:flex;
  gap:16px;
  margin:18px 0
}
.takeaway-index {
  font-size:11px;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
  letter-spacing:1px;
  padding-top:4px;
  flex-shrink:0
}
.takeaways p {
  font-size:14px;
  margin:0
}
.reading-next {
  border-top:1px solid var(--line);
  padding-top:17px;
  margin-top:25px;
  display:flex;
  gap:15px;
  align-items:center;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--muted)
}
.transcript-segment {
  padding:12px 0 17px;
  border-bottom:1px solid var(--line);
  scroll-margin-top:20px
}
.transcript-segment:last-child {
  border-bottom:0
}
.transcript-segment a {
  font-size:12px;
  font-variant-numeric:tabular-nums
}
.transcript-segment p {
  margin:5px 0 0
}
.transcript-text {
  white-space:pre-wrap
}
.timestamp {
  display:inline-flex;
  gap:7px;
  align-items:center;
  color:var(--accent);
  font-size:12px
}
.candidate-panel {
  margin:0 23px 20px;
  padding:15px 17px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--soft);
  display:flex;
  gap:18px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap
}
.candidate-panel h2 {
  font-size:13px
}
.candidate-panel p {
  font-size:12px;
  color:var(--muted);
  margin-top:3px
}
.sync-panel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 25px;
  background:var(--surface);
  border-top:1px solid var(--line);
  flex-wrap:wrap
}
.sync-copy {
  min-width:0;
  flex:1 1 320px
}
.sync-heading {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:12px
}
.sync-heading strong {
  font-weight:500
}
.status-dot {
  width:6px;
  height:6px;
  flex-shrink:0;
  border-radius:50%;
  background:#8d9c90
}
.status-dot.synced {
  background:#548b63
}
.status-dot.warning {
  background:#b98345
}
.sync-copy>p {
  font-size:11px;
  color:var(--muted);
  margin-top:5px;
  overflow-wrap:anywhere
}
.sync-copy .sync-checked {
  font-size:11px
}
.sync-actions {
  display:flex;
  align-items:center;
  gap:15px;
  flex-wrap:wrap
}
.sync-actions .button,.sync-actions .primary {
  font-size:12px
}
.note-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 24px;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted);
  flex-wrap:wrap
}
.empty-state {
  min-height:430px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:30px 20px
}
.empty-icon {
  width:72px;
  height:72px;
  color:#83a88e;
  margin-bottom:24px
}
.empty-icon circle {
  fill:var(--surface)
}
.empty-state h1 {
  font-size:27px;
  margin:10px 0 15px
}
.empty-state>p {
  font-size:13px;
  color:var(--muted);
  line-height:2
}
.empty-steps {
  display:flex;
  gap:25px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:35px;
  font-size:11px;
  color:var(--muted)
}
.empty-steps b {
  font-weight:500;
  color:var(--accent);
  margin-right:5px;
  font-size:10px
}
.login-wrap {
  padding:55px 20px
}
.login-card {
  max-width:420px;
  margin:35px auto;
  padding:32px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px
}
.login-card h1 {
  font-size:22px;
  margin:8px 0 12px
}
.login-card label {
  display:block;
  font-size:12px;
  margin:26px 0 7px
}
.login-card button {
  margin-top:18px;
  width:100%
}
.error-text {
  font-size:12px;
  color:var(--error);
  margin-top:10px;
  overflow-wrap:anywhere
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  top:8px;
  left:12px;
  z-index:20;
  background:var(--paper);
  padding:8px 15px;
  border:1px solid var(--accent);
  border-radius:6px;
  transform:translateY(-160%)
}
.skip-link:focus {
  transform:none
}
[hidden] {
  display:none!important
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
@media(min-width:1500px) {
  main {
    padding-left:45px;
    padding-right:45px
  }
  .note-title-wrap {
    flex-basis:460px
  }
  .reading {
    padding-left:43px;
    padding-right:43px
  }
}
@media(max-width:1080px) {
  .app-layout {
    grid-template-columns:220px minmax(0,1fr)
  }
  main {
    padding:23px
  }
  .note-heading {
    padding:22px
  }
  .note-title-wrap {
    flex-basis:100%
  }
  .note-actions {
    padding-top:0
  }
  .read-layout {
    grid-template-columns:160px minmax(0,1fr)
  }
  .reading {
    padding:24px
  }
  .tabs {
    margin:0 22px
  }
  .section-heading>span {
    display:none
  }
  .url-form {
    grid-template-columns:minmax(0,1fr) 126px
  }
  .url-field {
    grid-column:1/-1
  }
  .url-form button {
    width:100%
  }
  .url-form>div:nth-child(2) {
    min-width:0
  }
}
@media(max-width:760px) {
  .topbar {
    height:60px;
    padding:0 20px;
    gap:15px
  }
  .top-caption {
    display:none
  }
  .app-layout {
    display:block;
    min-height:calc(100vh - 60px)
  }
  .library {
    padding:13px 20px;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .library details>summary {
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    font-size:13px;
    font-weight:500;
    list-style:none;
    padding:5px 0
  }
  .library details>summary:after {
    content:"⌄";
    margin-left:auto;
    color:var(--muted)
  }
  .library details[open]>summary:after {
    content:"⌃"
  }
  .library-head {
    display:none
  }
  .library details[open] .search {
    margin-top:12px
  }
  .library-list {
    max-height:180px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-top:10px
  }
  .library-item {
    min-width:0
  }
  .library-foot {
    display:none
  }
  main {
    padding:22px 20px 30px
  }
  .url-form {
    grid-template-columns:minmax(0,1fr) 135px
  }
  .read-layout {
    grid-template-columns:155px minmax(0,1fr)
  }
  .reading {
    max-height:none;
    min-height:340px
  }
  .note-heading h1 {
    font-size:22px
  }
  .empty-state {
    min-height:390px;
    padding-left:5px;
    padding-right:5px
  }
  .sync-panel {
    padding:17px 20px;
    gap:13px
  }
  .sync-copy {
    flex-basis:100%
  }
  .sync-actions {
    gap:12px
  }
  .note-bottom {
    padding:12px 20px
  }
  .login-card {
    margin-top:10px
  }
}
@media(max-width:520px) {
  .topbar {
    padding:0 16px
  }
  .brand {
    font-size:15px
  }
  .top-actions {
    gap:12px
  }
  main {
    padding:19px 14px 25px
  }
  .library {
    padding:11px 17px
  }
  .library-list {
    grid-template-columns:1fr
  }
  .library-item strong {
    -webkit-line-clamp:1
  }
  .library-item small {
    margin-top:2px
  }
  .url-form {
    grid-template-columns:minmax(0,1fr) 124px;
    gap:8px
  }
  .url-form input {
    font-size:14px
  }
  .url-form select {
    padding-left:9px;
    padding-right:5px;
    font-size:12px
  }
  .new-task {
    margin-bottom:19px
  }
  .note-heading {
    padding:20px 18px
  }
  .note-heading h1 {
    font-size:21px
  }
  .note-actions {
    gap:7px;
    width:100%
  }
  .note-actions>.button {
    flex:1;
    font-size:12px
  }
  .tabs {
    margin:0 18px;
    gap:23px
  }
  .tabs button {
    font-size:13px
  }
  .read-layout {
    display:block
  }
  .outline {
    padding:15px 18px;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .outline h2 {
    margin-bottom:8px
  }
  #outline-list {
    max-height:145px;
    overflow:auto;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px
  }
  .outline-entry {
    margin:0
  }
  .outline-entry button {
    padding:5px 6px;
    font-size:12px
  }
  .outline-entry a {
    font-size:10px
  }
  .outline-foot {
    display:none
  }
  .outline-empty {
    padding:0
  }
  .reading {
    padding:23px 20px 28px;
    font-size:15px;
    min-height:300px
  }
  .reading h2 {
    font-size:19px
  }
  .sync-panel {
    padding:17px 18px
  }
  .sync-actions {
    width:100%;
    align-items:center
  }
  .sync-actions>.primary,.sync-actions>.button {
    flex:1
  }
  .sync-actions>a.quiet {
    width:100%;
    padding:0
  }
  .note-bottom {
    padding:12px 18px
  }
  .candidate-panel {
    margin:0 17px 18px;
    padding:13px
  }
  .empty-state h1 {
    font-size:24px
  }
  .empty-steps {
    gap:12px
  }
  .login-card {
    padding:25px
  }
  .notice {
    padding:11px 13px
  }
  .job {
    padding:12px 13px
  }
}
@media(pointer:coarse) {
  button,.button,.quiet {
    min-height:44px
  }
  input,select {
    font-size:16px!important
  }
  .tabs button {
    min-height:44px
  }
  .outline-entry button {
    min-height:40px
  }
  .outline-entry a {
    display:inline-flex;
    align-items:center;
    min-height:35px
  }
  .library-item {
    min-height:55px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important
  }
}
@media(prefers-color-scheme:dark) {
  :root {
    color:#dfe9e1;
    background:#1b241f;
    --paper:#222e27;
    --surface:#1b241f;
    --ink:#dfe9e1;
    --muted:#a0b0a4;
    --line:#3b4b40;
    --accent:#9dc7ad;
    --accent-ink:#182a20;
    --soft:#2c4032;
    --error:#edb49c;
    --error-bg:#392b25
  }
  .notice.error,.job.error {
    border-color:#755545
  }
  .library-item[aria-current="page"] {
    box-shadow:none
  }
  .empty-icon {
    color:#88ac93
  }
  input::placeholder {
    color:#8a9d8e
  }
}
