/* Soren — components.css: desk, modals, data panel, upload, settings */

  /* ── THE DESK ── */
  @keyframes sorenPulse { 0%,100%{opacity:1} 50%{opacity:.25} }

  .desk-card {
    background: #F6F4EF; border: 1px solid #E4DFD4; border-radius: 5px;
    box-shadow: 0 1px 3px rgba(20,30,25,.09); padding: 16px 20px;
    margin-top: 24px; border-top: 1px solid #E4DFD4;
  }
  .desk-header {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #E4DFD4; padding-bottom: 10px; margin-bottom: 0;
  }
  .desk-kicker {
    font-family: var(--font-body); font-size: 10px; letter-spacing: .2em;
    text-transform: uppercase; color: #9A4F2E; font-weight: 700;
  }
  .desk-toggle {
    display: inline-flex; background: #EDEAE2; border: 1px solid #E0DBD0;
    border-radius: 8px; padding: 2px; gap: 2px;
  }
  .desk-toggle-btn {
    padding: 5px 13px; border-radius: 6px; font-size: 12px; cursor: pointer;
    border: none; font-family: var(--font-body); transition: all .12s; white-space: nowrap;
  }
  .desk-toggle-btn.active {
    background: #F6F4EF; color: #1A5238; font-weight: 600;
    box-shadow: 0 1px 2px rgba(20,30,25,.12);
  }
  .desk-toggle-btn.inactive { background: transparent; color: #9A958A; font-weight: 500; }

  /* Agate row */
  .desk-agate {
    display: grid; grid-template-columns: 56px auto 1fr auto 56px;
    align-items: center; gap: 8px; padding: 8px 12px;
    border-top: 1px solid #ECE8DF;
  }
  .desk-agate.claimed {
    border-left: 2px solid #1A5238; background: rgba(26,82,56,.04);
    border-radius: 0 4px 4px 0; padding-left: 10px; border-top: none;
    margin-bottom: 0;
  }
  .desk-claimed-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: #DDE54C; border-radius: 20px; padding: 2px 7px;
  }
  .desk-claimed-dot {
    width: 5px; height: 5px; border-radius: 50%; background: #16352C;
    animation: sorenPulse 1.4s ease-in-out infinite;
  }
  .desk-score {
    font-family: var(--font-display); font-size: 19px; color: #1C2521;
    font-variant-numeric: tabular-nums; text-align: center;
  }
  .desk-score.muted { color: #7C8A92; }
  .desk-score.upcoming { font-size: 15px; color: #C2BCAF; }
  .desk-team { font-size: 13px; font-weight: 600; color: #1C2521; }
  .desk-team.right { text-align: right; }
  .desk-team.muted { color: #7C8A92; font-weight: 500; }
  .desk-team.upcoming { color: #9A958A; font-weight: 500; }
  .desk-source {
    display: flex; align-items: center; gap: 10px; margin-top: 14px;
    padding-top: 14px; border-top: 1px solid #E4DFD4;
    font-size: 11.5px; color: #7C8A92;
  }

  /* Reading card */
  .desk-reading {
    display: flex; gap: 15px; align-items: flex-start; padding: 15px 0;
    border-bottom: 1px solid #ECE8DF;
  }
  .desk-reading:last-of-type { border-bottom: none; padding-bottom: 0; }
  .desk-art {
    flex: none; width: 56px; height: 56px; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-style: italic; font-size: 22px;
    overflow: hidden;
  }
  .desk-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
  .desk-reading-title {
    font-family: var(--font-display); font-size: 18px; color: #1C2521; line-height: 1.28;
  }
  .desk-reading-meta { font-size: 12px; color: #7C8A92; margin-top: 5px; }

  /* Rail ticker */
  .desk-ticker {
    margin-bottom: 12px; cursor: pointer;
    background: #EFEDE6; border: 1px solid #E4DFD4; border-radius: 7px;
    padding: 8px 10px; display: flex; align-items: center; gap: 7px;
    font-family: var(--font-body); font-size: 12px; color: #1A5238; font-weight: 600;
    display: none;
  }
  .desk-ticker.visible { display: flex; }
  .desk-ticker-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #1A5238;
    flex-shrink: 0; animation: sorenPulse 1.4s ease-in-out infinite;
  }

  /* Desk popover */
  .desk-popover {
    position: fixed; left: 256px; bottom: 60px; width: 340px;
    background: #F6F4EF; border: 1px solid #E4DFD4; border-radius: 8px;
    box-shadow: 0 8px 32px rgba(20,30,25,.16); z-index: 500;
    display: none; padding: 18px 20px;
  }
  .desk-popover.visible { display: block; }
  .desk-popover-pointer {
    position: absolute; left: -7px; bottom: 24px;
    width: 13px; height: 13px; background: #F6F4EF;
    border-left: 1px solid #E4DFD4; border-bottom: 1px solid #E4DFD4;
    transform: rotate(45deg);
  }

  
/* ── Settings (Users / LLM / The Desk / Logout) ─────────────────────────── */
.set2 { display: flex; height: 100%; min-height: 0; }
.set2-nav { width: 190px; flex: none; border-right: 1px solid var(--border); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.set2-title { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--dark); padding: 0 10px 14px; }
.set2-tab { text-align: left; font-size: 13.5px; color: #5A6A74; background: none; border: none; border-left: 3px solid transparent; border-radius: 7px; padding: 8px 10px; cursor: pointer; font-family: var(--font-body); }
.set2-tab:hover { background: rgba(0,0,0,.03); }
.set2-tab.active { color: var(--primary); font-weight: 600; background: var(--primary-light); border-left-color: var(--primary); border-radius: 0 7px 7px 0; }
.set2-logout { margin-top: auto; text-align: left; font-size: 13px; color: var(--rose); background: none; border: none; padding: 8px 10px; cursor: pointer; font-family: var(--font-body); border-top: 1px solid var(--divider); border-radius: 0; }
.set2-body { flex: 1; min-width: 0; overflow-y: auto; padding: 20px 24px; }
.set2-kicker { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; margin: 18px 0 10px; }
.set2-kicker:first-child { margin-top: 0; }
.set2-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.set2-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--dark); }
.set2-row .sub { color: var(--stone); font-size: 12px; }
.set2-note { font-size: 11.5px; color: var(--stone); margin-top: 6px; line-height: 1.5; }
.set2-sub-title { font-weight: 600; color: var(--dark); font-size: 13.5px; }
.set2-input { padding: 8px 11px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; background: #fff; font-family: var(--font-body); color: var(--dark); outline: none; }
.set2-btn { background: var(--primary); color: var(--bg); border: none; border-radius: 7px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.set2-btn.ghost { background: var(--surface); color: #5A6A74; border: 1px solid var(--border); font-weight: 400; }
.set2-btn.danger { background: none; color: var(--rose); border: none; font-weight: 400; }
.set2-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; border-radius: 20px; padding: 2px 9px; font-weight: 600; }
.set2-pill.pending { color: var(--accent-ink); background: var(--accent-light); border: 1px solid var(--accent); }
.set2-pill.posted { color: var(--primary); background: var(--primary-mid); border: 1px solid rgba(26,82,56,.25); }

/* ── THE DESK — filled cobalt card (Desk Cobalt dev spec). Cobalt is the ONE
   cool outsider color on the paper page; it lives only in this card. ────── */
.dkc { flex: 1; min-width: 0; background: linear-gradient(158deg, #2E6BE6 0%, #1B47B0 100%); border-radius: 10px; box-shadow: 0 8px 26px rgba(27,71,176,.28); overflow: hidden; display: flex; flex-direction: column; border: none; }
.dkc-head { padding: 18px 22px 12px; }
.dkc-kicker-row { display: flex; align-items: center; justify-content: space-between; }
.dkc-kicker { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #EAF1FF; font-weight: 700; }
.dkc-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #EAF1FF; }
.dkc-manage { font-size: 11px; color: #C9DAF8; cursor: pointer; }
.dkc-synth { font-family: 'Newsreader', serif; font-style: italic; font-size: 18px; color: #F6F9FF; line-height: 1.4; margin-top: 12px; }
.dkc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dkc-pill { font-size: 11px; border-radius: 20px; padding: 2px 10px; cursor: pointer; color: #C9DAF8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); }
.dkc-pill.active { color: #FFFFFF; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); }
.dkc-body { padding: 0 22px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dkc-sec { border-top: 1px solid rgba(255,255,255,.15); padding: 12px 0 10px; }
.dkc-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.dkc-label { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #A9C4F2; font-weight: 700; }
.dkc-meta { font-size: 10px; color: #9FB8E8; }
.dkc-meta .spdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1DB954; margin-right: 5px; vertical-align: 0; }
.dkc-row { padding: 7px 8px; margin: 0 -8px; border-radius: 6px; }
.dkc-row:hover { background: rgba(255,255,255,.06); }
.dkc-agate { display: grid; grid-template-columns: 60px 1fr minmax(18px,auto) 1fr auto; gap: 0 6px; align-items: center; }
.dkc-agate .time { font-size: 10.5px; color: #C9DAF8; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dkc-agate .vs { font-size: 11px; color: #8FA9DC; text-align: center; }
.dkc-agate .score { font-size: 15px; font-weight: 700; color: #F6F9FF; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dkc-chip { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; border-radius: 3px; padding: 2px 7px; }
.dkc-ctl { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #8FA9DC; cursor: pointer; background: none; border: none; padding: 2px 4px; font-family: 'Hanken Grotesk', system-ui, sans-serif; }
.dkc-ctl.on { color: #FFFFFF; }
.dkc-np { display: flex; align-items: center; gap: 12px; }
.dkc-art { position: relative; width: 42px; height: 42px; border-radius: 5px; flex: none; background-size: cover; background-position: center; background-color: rgba(255,255,255,.12); }
.dkc-play { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: transform .12s; box-shadow: 0 1px 5px rgba(10,20,60,.35); }
.dkc-play:hover { transform: scale(1.06); }
.dkc-play .tri { width: 0; height: 0; border-left: 7px solid #1B1F24; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.dkc-play .pause { display: flex; gap: 2px; }
.dkc-play .pause span { width: 2.5px; height: 9px; background: #1B1F24; }
.dkc-np-title { font-size: 13.5px; font-weight: 600; color: #F6F9FF; line-height: 1.3; }
.dkc-np-sub { font-size: 11.5px; color: #C9DAF8; margin-top: 2px; }
.dkc-inset { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); border-radius: 9px; padding: 11px 13px; margin-top: 10px; display: flex; gap: 11px; align-items: flex-start; }
.dkc-mono { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); color: #EAF1FF; font-family: 'Newsreader', serif; font-style: italic; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.dkc-quote { font-family: 'Newsreader', serif; font-style: italic; font-size: 13.5px; color: #F6F9FF; line-height: 1.45; }
.dkc-byline { font-size: 10px; color: #9FB8E8; margin-top: 5px; }
.dkc-byline strong { color: #EAF1FF; font-weight: 600; }
.dkc-add { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #EAF1FF; cursor: pointer; text-decoration: none; margin-left: auto; flex: none; padding-top: 2px; }
.dkc-read-title { font-family: 'Newsreader', serif; font-size: 15px; color: #F6F9FF; line-height: 1.35; }
.dkc-read-meta { font-size: 10px; color: #9FB8E8; margin-top: 3px; }
.dkc-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.15); padding: 11px 22px; display: flex; align-items: center; justify-content: space-between; }
.dkc-foot .aside { font-family: 'Newsreader', serif; font-style: italic; font-size: 11px; color: #A9C4F2; }
.dkc-foot a { font-size: 12px; font-weight: 600; color: #EAF1FF; text-decoration: none; }
.dkc-embed-tuck { height: 0; overflow: hidden; }
.dkc-embed-tuck.revealed { height: auto; margin-top: 10px; }
.dkc-empty { font-size: 12px; color: #9FB8E8; padding: 6px 0 2px; }
