/* ====================================================================
   PhD Průvodce – styly
   ==================================================================== */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --border: #e4e7f0;
  --text: #1c2333;
  --muted: #6b7280;
  --muted-2: #9aa2b1;
  --accent: #5b54e6;
  --accent-soft: #ece9ff;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #d97706;
  --shadow: 0 1px 2px rgba(20,25,45,.06), 0 8px 24px rgba(20,25,45,.06);
  --radius: 4px;
  --radius-sm: 4px;
  --sidebar-w: 268px;
}
[data-theme="dark"] {
  --bg: #0f1320;
  --surface: #171c2c;
  --surface-2: #1f2638;
  --border: #2a3350;
  --text: #e6e9f2;
  --muted: #9aa3b8;
  --muted-2: #6b7488;
  --accent: #8b85ff;
  --accent-soft: #262251;
  --ok: #34d399;
  --ok-soft: #133527;
  --warn: #fbbf24;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* -------- Layout -------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 14px 14px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* obsah na plnou šířku monitoru + písmo/obsah o 15 % větší */
.content { padding: 26px 36px 60px; max-width: none; width: 100%; zoom: 1.15; }

/* -------- Brand -------- */
.brand { display: flex; gap: 11px; align-items: center; padding: 4px 6px 12px; }
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center; font-size: 21px;
  background: var(--accent-soft); border-radius: 4px;
}
.brand-name { font-weight: 700; font-size: 15.5px; letter-spacing: -.2px; }
.brand-sub { font-size: 11px; color: var(--muted); line-height: 1.3; }

.thesis-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 12px; margin-bottom: 8px;
}
.thesis-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; }
.thesis-title { font-size: 12.5px; font-weight: 600; margin: 3px 0; line-height: 1.35; }
.thesis-author { font-size: 11px; color: var(--muted); }

/* -------- Nav -------- */
.nav-group { padding: 6px 0 4px; }
.nav-group-title { font-size: 11px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 4px; color: var(--muted);
  font-size: 13.8px; font-weight: 500; margin-bottom: 1px;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.nav-ico { width: 18px; text-align: center; opacity: .85; font-size: 13px; }
.future .nav-hint { font-size: 11px; color: var(--muted-2); padding: 0 8px; line-height: 1.4; }
.nav-group.dormant { opacity: .45; transition: opacity .15s; }
.nav-group.dormant:hover { opacity: .85; }
.nav-group.dormant .nav-hint { font-size: 11px; color: var(--muted-2); line-height: 1.4; }
.nav-group-title .soon { font-size: 9px; font-weight: 700; background: var(--surface-2); color: var(--muted-2);
  border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; text-transform: none; letter-spacing: 0; }

.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.data-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-ghost {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 4px; padding: 6px 10px; font-size: 12px; cursor: pointer; font-weight: 600;
  font-family: inherit;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

/* -------- Topbar -------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
}
.muted { color: var(--muted); font-size: 13px; }
.chip {
  --c: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  padding: 4px 12px; border-radius: 4px; font-size: 12.5px; font-weight: 650;
}
.chip-muted { --c: var(--muted); color: var(--muted); }

.nav-toggle { display: none; }

/* -------- Headings -------- */
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -.4px; }
.page-head p { color: var(--muted); margin: 0; max-width: 70ch; }
h2.section { font-size: 16px; margin: 30px 0 12px; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }
h2.section::before { content: ""; width: 4px; height: 16px; background: var(--accent); border-radius: 2px; }

/* -------- Cards / grid -------- */
.grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.card.pad-lg { padding: 22px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .big { font-size: 28px; font-weight: 750; letter-spacing: -1px; }
.stat .lbl { font-size: 12px; color: var(--muted); }
.stat .sub { font-size: 11.5px; color: var(--muted-2); }

/* -------- Progress -------- */
.pbar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.pbar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .35s ease; }
.pbar.lg { height: 12px; }

/* progress ring */
.ring { --p: 0; --c: var(--accent); width: 132px; height: 132px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0);
  display: grid; place-items: center; }
.ring::after { content: ""; position: absolute; width: 104px; height: 104px; border-radius: 50%; background: var(--surface); }
.ring-wrap { position: relative; display: inline-grid; place-items: center; }
.ring-val { position: relative; z-index: 1; text-align: center; }
.ring-val .n { font-size: 30px; font-weight: 750; letter-spacing: -1px; }
.ring-val .t { font-size: 11px; color: var(--muted); }

/* -------- Badges / pills -------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border); white-space: nowrap; }
.badge.pdca { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.obj { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.thesis-no { background: transparent; border-style: dashed; color: var(--muted-2); }

/* -------- Lists -------- */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.dotted { margin: 6px 0; padding-left: 18px; }
ul.dotted li { margin: 3px 0; }

/* -------- Phase / WP / tasks -------- */
.phase {
  background: var(--surface); border: 1.5px solid var(--pc, var(--accent));
  border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.phase-head { padding: 16px 18px; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; }
.phase-head .pi { flex: 1 1 auto; min-width: 0; }
.phase-title { font-size: 16px; font-weight: 700; margin: 0 0 3px; }
.phase-window { font-size: 12px; color: var(--muted); }
.phase-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.phase-prog { flex: 0 0 130px; text-align: right; }
.phase-prog .p { font-size: 13px; font-weight: 700; }
.phase-prog .pbar { margin-top: 6px; }
.phase-body { padding: 0 18px 16px; display: none; }
.phase.open .phase-body { display: block; }
.phase .chev { transition: transform .2s; color: var(--muted-2); }
.phase.open .chev { transform: rotate(90deg); }

.goal-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; margin: 6px 0 14px; font-size: 13.5px; }
.goal-box .row { display: flex; gap: 8px; margin: 5px 0; font-size: 12.5px; }
.goal-box .k { color: var(--muted-2); font-weight: 700; flex: 0 0 84px; text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; padding-top: 1px; }

.wp { margin: 12px 0; }
.wp-title { font-size: 13.5px; font-weight: 700; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.wp-title .wpid { font-size: 10.5px; color: var(--muted-2); font-weight: 700; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.task { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 4px; }
.task:hover { background: var(--surface-2); }
.task input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex: 0 0 16px; }
.task label { font-size: 13.3px; cursor: pointer; }
.task.done label { color: var(--muted-2); text-decoration: line-through; }
.outputs { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ok-soft) 30%, transparent); }
.outputs .t { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted-2); margin-bottom: 4px; }

/* -------- Timeline / Gantt -------- */
.gantt { overflow-x: auto; padding-bottom: 6px; }
.gantt-inner { min-width: 760px; }
.gantt-grid { display: grid; grid-template-columns: 120px repeat(8, 1fr); gap: 6px; align-items: center; }
.gantt-grid.head .cell { font-size: 11px; color: var(--muted); text-align: center; font-weight: 600; padding: 4px 2px; }
.gantt-grid.head .cell .sub { color: var(--muted-2); font-size: 10px; display: block; }
.g-row-label { font-size: 12.5px; font-weight: 650; padding-right: 8px; }
.g-bar { height: 30px; border-radius: 4px; display: flex; align-items: center; padding: 0 10px; color: #fff; font-size: 11.5px; font-weight: 650; box-shadow: var(--shadow); }
.g-track { position: relative; height: 30px; }
.g-now { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--warn); z-index: 5; }
.g-now::after { content: "dnes"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--warn); font-weight: 700; white-space: nowrap; }
.g-marker { display: inline-grid; place-items: center; height: 26px; padding: 0 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

.sem-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.sem-row:last-child { border-bottom: none; }
.sem-n { font-size: 12px; font-weight: 700; color: var(--accent); }
.sem-n .lbl { display: block; color: var(--muted-2); font-weight: 600; font-size: 11px; margin-top: 2px; }
.sem-row.cur { background: var(--accent-soft); border-radius: var(--radius-sm); padding-left: 12px; padding-right: 12px; border-bottom-color: transparent; }
.sem-detail .pf { font-weight: 600; font-size: 13.5px; }
.sem-detail .meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.sem-detail .meta b { color: var(--text); font-weight: 600; }

/* -------- Papers -------- */
.paper { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.paper .pn { width: 44px; height: 44px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 750; font-size: 18px; }
.paper-title { font-weight: 650; font-size: 14.5px; line-height: 1.35; }
.paper-meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 12px; }
.pipeline { display: flex; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.pstep { flex: 1 1 auto; min-width: 64px; text-align: center; font-size: 10.5px; font-weight: 650; padding: 5px 4px; border-radius: 4px; background: var(--surface-2); color: var(--muted-2); cursor: pointer; border: 1px solid transparent; user-select: none; }
.pstep:hover { border-color: var(--accent); }
.pstep.reached { background: var(--accent-soft); color: var(--accent); }
.pstep.current { background: var(--accent); color: #fff; }

/* -------- Chapters -------- */
.chap { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-bottom: 1px solid var(--border); }
.chap:last-child { border-bottom: none; }
.chap .cn { font-weight: 700; color: var(--muted-2); font-size: 13px; }
.chap .ct { font-weight: 600; font-size: 13.8px; }
.chap .cnote { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.cstatus { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; cursor: pointer; white-space: nowrap; user-select: none; border: 1px solid var(--border); }
.cstatus[data-s="0"] { background: var(--surface-2); color: var(--muted-2); }
.cstatus[data-s="1"] { background: #fef3c7; color: #b45309; border-color: transparent; }
.cstatus[data-s="2"] { background: #dbeafe; color: #2563eb; border-color: transparent; }
.cstatus[data-s="3"] { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
[data-theme="dark"] .cstatus[data-s="1"] { background: #3a2e09; color: #fbbf24; }
[data-theme="dark"] .cstatus[data-s="2"] { background: #16294d; color: #93c5fd; }

/* -------- Disertace: psací hub -------- */
.chapx { border-bottom: 1px solid var(--border); padding: 12px; }
.chapx:last-child { border-bottom: none; }
.chapx-head { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; }
.chapx .cn { font-weight: 700; color: var(--muted-2); font-size: 13px; padding-top: 1px; }
.chapx .ct { font-weight: 600; font-size: 13.8px; }
.chapx .cnote { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.chapx .cpaper { font-size: 11.5px; color: var(--muted-2); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.chapx .cpaper .ic { width: 13px; height: 13px; flex: none; }
.paper-badge { margin-left: 6px; background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chapx-body { margin: 10px 0 2px 42px; }
.cx-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cx-srcbtn { font-size: 12px; padding: 5px 10px; display: inline-flex; gap: 6px; align-items: center; }
.cx-srcbtn .ic { width: 14px; height: 14px; }
.cx-srcs { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; }
.cx-srcs:empty { display: none; }
.src-chip { display: flex; gap: 9px; align-items: center; justify-content: space-between; font-size: 12.5px;
  padding: 5px 9px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); }
.src-chip a { font-weight: 600; }
.src-x { flex: none; display: inline-flex; padding: 2px; border: none; background: none; color: var(--muted-2);
  cursor: pointer; border-radius: 4px; line-height: 0; }
.src-x:hover { color: var(--warn); background: var(--surface); }
.cx-doc { display: flex; gap: 7px; align-items: center; margin-bottom: 8px; }
.cx-doc .ic { width: 14px; height: 14px; flex: none; color: var(--muted-2); }
.cdoc { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 12px; }
.cdoc-open { font-size: 11.5px; padding: 5px 9px; flex: none; }
.hidden { display: none; }
.cnotes { width: 100%; margin-top: 8px; min-height: 54px; padding: 8px; border: 1px solid var(--border);
  border-radius: 4px; background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 12.5px; resize: vertical; }
.cnotes:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* -------- Provázanost: cross-links + skok na kotvu -------- */
.xlink { text-decoration: none; cursor: pointer; }
.xlink:hover { text-decoration: underline; }
a.badge.xlink { cursor: pointer; }
a.badge.xlink:hover { filter: brightness(0.96); text-decoration: none; }
a.g-bar, a.g-marker, a.chip { text-decoration: none; cursor: pointer; }
a.g-bar:hover, a.g-marker:hover { filter: brightness(1.1); }
a.chip:hover { filter: brightness(0.97); }
.phase-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 12px 0 2px; font-size: 12.5px; }
.phase-links a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--accent); text-decoration: none; }
.phase-links a:hover { text-decoration: underline; }
.phase-links .ic { width: 14px; height: 14px; flex: none; }
/* -------- Fáze: kapacita, varování, odhad hodin -------- */
.callout.warn { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
[data-theme="dark"] .callout.warn { background: #3a2e09; border-color: #b45309; color: #fbbf24; }
.wph { margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--accent); }
.th { margin-left: 4px; font-size: 10.5px; font-weight: 700; color: var(--muted-2);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px; padding: 0 5px; white-space: nowrap; }

.jump-hl { animation: jumphl 1.6s ease-out; }
@keyframes jumphl { 0%, 15% { box-shadow: 0 0 0 3px var(--accent-soft); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* -------- Notes -------- */
textarea.notes { width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px; font-family: inherit; font-size: 13.5px;
  background: var(--surface-2); color: var(--text); }
textarea.notes:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* -------- Milestones -------- */
.ms { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.ms:last-child { border-bottom: none; }
.ms .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: 0 0 9px; }
.ms.pub .dot { background: var(--accent); }
.ms.study .dot { background: #14b8a6; }
.ms.research .dot { background: #f59e0b; }
.ms.defense .dot { background: #f43f5e; }
.ms .mt { font-size: 13.3px; font-weight: 550; flex: 1 1 auto; }
.ms .md { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ms .in { font-size: 11px; color: var(--muted-2); white-space: nowrap; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.note-firm { font-size: 11px; color: var(--muted-2); }
.callout { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; margin: 4px 0 14px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }

/* -------- Toast -------- */
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 4px; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(8px);
  transition: all .25s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }

/* -------- Responsive -------- */
@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; position: fixed; top: 12px; left: 12px; z-index: 50;
    width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface);
    font-size: 18px; cursor: pointer; box-shadow: var(--shadow); }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 45; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 20px 16px 50px; }
  .topbar { padding: 14px 16px 14px 64px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 881px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Ikony (SVG, currentColor) ---- */
.ic { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -.16em; flex: none; }
.brand-logo { width: 36px; height: 36px; display: block; }
.nav-ico { display: inline-flex; align-items: center; justify-content: center; width: 18px; }
.nav-ico .ic { width: 17px; height: 17px; }
.pack-ico { width: 38px; height: 38px; flex: none; }
.btn-ghost .ic { width: 14px; height: 14px; vertical-align: -.2em; margin-right: 2px; }
.chip .ic, .badge .ic { width: 13px; height: 13px; }
[data-theme="dark"] .brand-mark { background: #fff; }

/* ---- Banner „kde právě jsem" (ve všech časových pohledech) ---- */
.nowbar { display: flex; align-items: center; gap: 11px; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); border-radius: var(--radius-sm);
  padding: 11px 15px; margin-bottom: 18px; font-size: 13.5px; }
.nowbar .ic { color: var(--accent); width: 18px; height: 18px; }
.nowbar b { color: var(--accent); }
.nowbar .sep { color: var(--muted-2); }
.phase-dates { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.phase.current-phase { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.phase-status { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 4px; }
.st-done { background: var(--ok-soft); color: var(--ok); }
.st-now  { background: var(--accent); color: #fff; }
.st-future { background: var(--surface-2); color: var(--muted-2); }

/* ---- Odkazy v textu (callouty, prose) ať jsou poznat ---- */
.callout a, .nowbar a, .page-head p a, .cnote a, .muted a, .outputs a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 600;
}
.callout a:hover, .nowbar a:hover, .page-head p a:hover { text-decoration: none; }
