/* 2.42.0: My Manager (Modern Calm): one quiet column of what matters, soft cards, few colours, room to breathe */
.mgr { display: flex; flex-direction: column; gap: 18px; max-width: 1120px; margin-inline: auto; }
.mgr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mgr-title { margin: 0; font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.mgr-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: color-mix(in srgb, #0D9488 14%, var(--panel)); color: color-mix(in srgb, #0F766E 90%, var(--ink)); }
.mgr-sub { margin: 6px 0 0; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.mgr-head-actions { display: flex; gap: 8px; align-items: center; }
.mgr-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 16px; }
a.mgr-pill { text-decoration: none; }
.mgr-quiet { border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 8px; }
.mgr-quiet:hover { color: var(--ink); background: var(--sunk); }
.mgr-muted { color: var(--muted); margin: 0; }
.mgr-grow { flex: 1; }

.mgr-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mgr-tabs::-webkit-scrollbar { display: none; }
.mgr-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--panel); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); white-space: nowrap; font-size: 14px; }
.mgr-tabs a.on { background: var(--ink); color: var(--panel); }
.mgr-tabs a:focus-visible { outline: none; box-shadow: var(--focus); }

.mgr-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mgr-date { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 17px; }
.mgr-heb { color: var(--muted); font-size: 14px; }

.mgr-card { background: var(--panel); border-radius: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .04); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mgr-card-title { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.mgr-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: var(--sunk); color: var(--muted); }
.mgr-ico.i-alert { background: color-mix(in srgb, #F59E0B 16%, var(--panel)); color: #B45309; }
.mgr-ico.i-check { background: var(--accent-soft); color: var(--accent); }
.mgr-ico.i-folder { background: color-mix(in srgb, #0D9488 14%, var(--panel)); color: #0F766E; }
.mgr-ico.i-lightbulb { background: color-mix(in srgb, #EAB308 18%, var(--panel)); color: #A16207; }
.mgr-ico.i-sparkle { background: color-mix(in srgb, #7C3AED 14%, var(--panel)); color: #6D28D9; }
.mgr-empty { color: var(--muted); margin: 0; font-size: 14px; }
.mgr-more { font-size: 13px; color: var(--accent); text-decoration: none; align-self: flex-start; }

.mgr-capture { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 999px; padding: 6px 6px 6px 16px; padding-inline: 16px 6px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .05); }
.mgr-capture-ico { color: var(--muted); flex: none; }
.mgr-capture input[type="text"] { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; padding: 8px 4px; box-shadow: none; }
.mgr-capture input[type="text"]:focus { outline: none; box-shadow: none; }
.mgr-capture:focus-within { box-shadow: var(--focus), 0 8px 24px rgba(15, 23, 42, .05); }
.mgr-mic { flex: none; border-radius: 999px; width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.mgr-mic.rec { background: var(--fault); color: #fff; border-color: var(--fault); animation: mgr-pulse 1.2s ease-in-out infinite; }
@keyframes mgr-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--fault) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .mgr-mic.rec { animation: none; } }

.mgr-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, #7C3AED 9%, var(--panel)); color: var(--ink); text-decoration: none; }
.mgr-banner > .ico { color: #6D28D9; flex: none; }
.mgr-banner > span:nth-child(2) { flex: 1; }
.mgr-banner-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: #6D28D9; }

.mgr-three { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--panel)), var(--panel) 70%); border-radius: 20px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .05); display: flex; flex-direction: column; gap: 14px; }
.mgr-three-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mgr-three-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.mgr-three-head p { margin: 4px 0 0; font-size: 14px; }
.mgr-three-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mgr-pr { display: flex; align-items: flex-start; gap: 10px; background: var(--panel); border-radius: 14px; padding: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); min-width: 0; }
.mgr-three-list.suggested .mgr-pr { background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px dashed var(--line); box-shadow: none; }
.mgr-pr-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; background: var(--accent-soft); color: var(--accent); }
.mgr-pr-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 500; overflow-wrap: anywhere; }
.mgr-pr.done .mgr-pr-text .mgr-link { text-decoration: line-through; color: var(--muted); }
.mgr-why { font-size: 12px; font-weight: 400; color: var(--muted); }

.mgr-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mgr-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 900px) { .mgr-grid { grid-template-columns: minmax(0, 1fr); } }

.mgr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mgr-list.mgr-card { padding: 6px 16px; gap: 0; }
.mgr-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); min-width: 0; }
.mgr-row:last-child { border-bottom: 0; }
.mgr-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.mgr-link { border: 0; background: none; padding: 0; color: var(--ink); text-align: start; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; overflow-wrap: anywhere; white-space: normal; }
.mgr-link:hover { color: var(--accent); }
.mgr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.mgr-meta .ico { vertical-align: -2px; }
.mgr-next { color: var(--muted); font-size: 13px; font-weight: 400; }
.mgr-late { color: var(--fault); font-weight: 500; }
.mgr-done { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ok); cursor: pointer; }
.mgr-badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 500; padding: 1px 9px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.mgr-badge.k-decision { background: color-mix(in srgb, #7C3AED 13%, var(--panel)); color: color-mix(in srgb, #6D28D9 85%, var(--ink)); }
.mgr-badge.k-issue, .mgr-badge.s-blocked { background: color-mix(in srgb, #F04438 13%, var(--panel)); color: color-mix(in srgb, #B42318 85%, var(--ink)); }
.mgr-badge.s-waiting { background: color-mix(in srgb, #F59E0B 16%, var(--panel)); color: color-mix(in srgb, #92400E 85%, var(--ink)); }
.mgr-badge.s-doing { background: var(--accent-soft); color: var(--accent); }
.mgr-badge.p-high { background: color-mix(in srgb, #F97316 14%, var(--panel)); color: color-mix(in srgb, #C2410C 85%, var(--ink)); }
.mgr-progress { height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; margin: 4px 0 2px; }
.mgr-progress > span { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, #0D9488 70%, var(--panel)); }

.mgr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mgr-chip { border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 400; background: var(--sunk); border: 0; color: var(--ink); white-space: normal; text-align: start; }
.mgr-chip:hover { background: var(--accent-soft); }
.mgr-chip[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.mgr-chat { display: flex; flex-direction: column; gap: 10px; }
.mgr-chat:empty { display: none; }
.mgr-chat-pair { display: flex; flex-direction: column; gap: 6px; }
.mgr-chat-q { align-self: flex-end; background: var(--accent-soft); border-radius: 14px 14px 4px 14px; padding: 8px 12px; font-size: 14px; max-width: 90%; }
[dir="rtl"] .mgr-chat-q { border-radius: 14px 14px 14px 4px; }
.mgr-chat-a { background: var(--sunk); border-radius: 14px; padding: 8px 12px; font-size: 14px; white-space: pre-wrap; }
ul.mgr-chat-a { padding-inline-start: 26px; list-style: disc; white-space: normal; }
.mgr-ask-row { display: flex; gap: 8px; align-items: center; }
.mgr-ask-row input { flex: 1; min-width: 0; border-radius: 999px; padding-inline: 14px; }

.mgr-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mgr-toolbar h2 { margin: 0; font-size: 16px; font-weight: 600; }
.mgr-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mgr-project-title { font-size: 16px; flex: 1; }
.mgr-project.st-done, .mgr-project.st-dropped { opacity: .7; }
.mgr-milestones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.mgr-milestones li.done { color: var(--muted); text-decoration: line-through; }
.mgr-ms-edit { display: flex; flex-direction: column; gap: 6px; }
.mgr-ms-edit .row input[type="text"] { flex: 1; }
.mgr-older summary { cursor: pointer; color: var(--muted); font-size: 14px; margin-bottom: 8px; }

.mgr-dump { background: var(--panel); border-radius: 20px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .05); display: flex; flex-direction: column; gap: 12px; }
.mgr-dump h2 { margin: 0; font-size: 18px; font-weight: 600; }
.mgr-dump-text { width: 100%; min-height: 140px; resize: vertical; border-radius: 14px; padding: 14px 16px; font-size: 16px; line-height: 1.7; background: var(--sunk); border: 1px solid transparent; }
.mgr-dump-text:focus { background: var(--panel); border-color: var(--line); }
.mgr-dump-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mgr-review { display: flex; flex-direction: column; gap: 12px; }
.mgr-sugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .mgr-sugs { grid-template-columns: minmax(0, 1fr); } }
.mgr-sug { background: var(--panel); border-radius: 16px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .04); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mgr-sug-top { display: flex; gap: 8px; align-items: center; min-width: 0; }
.mgr-kind { flex: none; width: auto; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 500; border: 0; background: var(--sunk); }
.mgr-kind[data-k="task"], .mgr-kind[data-k="reminder"] { background: var(--accent-soft); color: var(--accent); }
.mgr-kind[data-k="idea"] { background: color-mix(in srgb, #EAB308 18%, var(--panel)); color: color-mix(in srgb, #854D0E 90%, var(--ink)); }
.mgr-kind[data-k="project"] { background: color-mix(in srgb, #0D9488 14%, var(--panel)); color: color-mix(in srgb, #115E59 90%, var(--ink)); }
.mgr-kind[data-k="issue"] { background: color-mix(in srgb, #F04438 13%, var(--panel)); color: color-mix(in srgb, #B42318 85%, var(--ink)); }
.mgr-kind[data-k="decision"] { background: color-mix(in srgb, #7C3AED 13%, var(--panel)); color: color-mix(in srgb, #6D28D9 85%, var(--ink)); }
.mgr-sug-title { flex: 1; min-width: 0; font-weight: 500; border-color: transparent; background: none; padding-inline: 4px; }
.mgr-sug-title:hover, .mgr-sug-title:focus { border-color: var(--line); background: var(--panel); }
.mgr-sug-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mgr-sug-fields label { display: inline-flex; align-items: center; gap: 6px; }
.mgr-sug-fields select { width: auto; padding-block: 4px; }
.mgr-sug-next { flex: 1 1 100%; color: var(--muted); }
.mgr-sug-next input { flex: 1; min-width: 0; font-size: 14px; }
.mgr-sug-actions { display: flex; gap: 8px; align-items: center; }
.mgr-question { border: 1px solid color-mix(in srgb, #7C3AED 25%, var(--line)); }
.mgr-q { display: flex; align-items: center; gap: 10px; font-size: 15px; }

.mgr-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.mgr-settings .check small { display: block; color: var(--muted); }
.mgr-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.mgr-more-fields summary { cursor: pointer; color: var(--muted); margin: 6px 0; }
.mgr-source { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.mgr-pick { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.mgr-pick small { display: block; color: var(--muted); }
.mgr-save { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 600px) {
  .mgr-capture { flex-wrap: wrap; border-radius: 18px; padding: 10px 12px; }
  .mgr-capture input[type="text"] { flex-basis: calc(100% - 40px); }
  .mgr-capture .mgr-pill { flex: 1; justify-content: center; }
  .mgr-three, .mgr-dump { padding: 16px; }
  .mgr-card { padding: 14px 16px; }
  .mgr-head-actions .mgr-pill { padding: 7px 12px; }
}
