/* project-plan — кнопка в метриках + секция плана. Родная карточка rounded-lg border border-border;
   внутри — матрица договора со статус-бейджами, тулбар экспорта, резюме. В тон тёмной теме. */

/* тулбар в шапке секции */
#orq-plan-section .orq-tools { display: inline-flex; align-items: center; gap: 6px; }
#orq-plan-section .orq-tool {
  cursor: pointer; font-size: 11px; padding: 3px 9px; border-radius: 6px; color: inherit;
  border: 1px solid rgba(127,127,127,.28); background: transparent; opacity: .85;
}
#orq-plan-section .orq-tool:hover { opacity: 1; border-color: rgba(127,127,127,.5); }
#orq-plan-section .orq-x { cursor: pointer; background: transparent; border: 0; color: inherit; opacity: .55; font-size: 14px; }
#orq-plan-section .orq-x:hover { opacity: 1; }

/* --- контекстный чат-инпут (дообогащение плана) --- */
#orq-plan-section .orq-chat { border: 1px solid rgba(127,127,127,.22); border-radius: 10px; padding: 8px 10px; margin-bottom: 14px; background: rgba(127,127,127,.05); }
#orq-plan-section .orq-chat-in {
  width: 100%; box-sizing: border-box; resize: none; overflow: hidden; min-height: 34px;
  border: 0; outline: 0; background: transparent; color: inherit;
  font: 13px/1.5 inherit; padding: 2px 0;
}
#orq-plan-section .orq-chat-in::placeholder { color: inherit; opacity: .45; }
#orq-plan-section .orq-chat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
#orq-plan-section .orq-chat-hint { font-size: 10.5px; opacity: .5; }
#orq-plan-section .orq-chat-send {
  cursor: pointer; font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 7px; white-space: nowrap;
  color: #dfe3ff; background: rgba(99,102,241,.22); border: 1px solid rgba(129,140,248,.5);
}
#orq-plan-section .orq-chat-send:hover:not(:disabled) { background: rgba(99,102,241,.34); border-color: rgba(129,140,248,.8); }
#orq-plan-section .orq-chat-send:disabled { opacity: .6; cursor: default; }

#orq-plan-section .orq-meta { font-size: 12px; opacity: .6; margin-bottom: 8px; }
#orq-plan-section .orq-link { text-decoration: underline; }
#orq-plan-section .orq-summary { font-size: 13.5px; opacity: .95; line-height: 1.55; margin-bottom: 12px; }

#orq-plan-section .orq-h {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  opacity: .5; margin: 16px 0 6px;
}

/* --- матрица договора --- */
#orq-plan-section .orq-cnote2 { font-size: 11.5px; opacity: .55; margin: 0 0 8px; line-height: 1.45; }
#orq-plan-section .orq-cbar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: rgba(127,127,127,.14); }
#orq-plan-section .orq-cbar-seg.orq-ok { background: #34d399; }
#orq-plan-section .orq-cbar-seg.orq-warn { background: #f59e0b; }
#orq-plan-section .orq-cbar-seg.orq-none { background: #ef4444; opacity: .85; }
#orq-plan-section .orq-clegend { display: flex; gap: 12px; align-items: baseline; margin: 6px 0 10px; font-size: 11.5px; }
#orq-plan-section .orq-lg { position: relative; padding-left: 12px; opacity: .85; }
#orq-plan-section .orq-lg:before { content: ""; position: absolute; left: 0; top: 4px; width: 7px; height: 7px; border-radius: 50%; }
#orq-plan-section .orq-lg.orq-ok:before { background: #34d399; }
#orq-plan-section .orq-lg.orq-warn:before { background: #f59e0b; }
#orq-plan-section .orq-lg.orq-none:before { background: #ef4444; }
#orq-plan-section .orq-lg-total { opacity: .5; margin-left: auto; }

#orq-plan-section .orq-contract { border: 1px solid rgba(127,127,127,.16); border-radius: 9px; overflow: hidden; }
#orq-plan-section .orq-crow { display: grid; grid-template-columns: 88px 1fr; gap: 11px; padding: 9px 12px; border-top: 1px solid rgba(127,127,127,.1); }
#orq-plan-section .orq-crow:first-child { border-top: 0; }
#orq-plan-section .orq-badge {
  align-self: start; justify-self: start; font-size: 10.5px; font-weight: 700; line-height: 1;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
#orq-plan-section .orq-ok   .orq-badge { color: #86efac; background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.4); }
#orq-plan-section .orq-warn .orq-badge { color: #fbbf24; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.4); }
#orq-plan-section .orq-none .orq-badge { color: #fca5a5; background: rgba(239,68,68,.13); border-color: rgba(239,68,68,.38); }
#orq-plan-section .orq-cmain { min-width: 0; }
#orq-plan-section .orq-citem { font-size: 13px; font-weight: 600; }
#orq-plan-section .orq-cstat { font-size: 11.5px; opacity: .6; margin-top: 1px; }
#orq-plan-section .orq-cev { font-size: 11.5px; opacity: .5; margin-top: 3px; line-height: 1.4; }

/* --- сделано/осталось --- */
#orq-plan-section .orq-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
@media (max-width: 680px) { #orq-plan-section .orq-two { grid-template-columns: 1fr; } }
#orq-plan-section .orq-list { list-style: none; margin: 2px 0 0; padding: 0; }
#orq-plan-section .orq-list li { position: relative; padding: 5px 0 5px 13px; font-size: 13px; line-height: 1.45; border-top: 1px solid rgba(127,127,127,.12); }
#orq-plan-section .orq-list li:first-child { border-top: 0; }
#orq-plan-section .orq-list li:before { content: ""; position: absolute; left: 1px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .32; }
#orq-plan-section .orq-li-t { display: block; }
#orq-plan-section .orq-li-s { display: block; font-size: 11.5px; opacity: .55; margin-top: 1px; }

/* --- недельный план --- */
#orq-plan-section .orq-day { border: 1px solid rgba(127,127,127,.16); border-radius: 9px; padding: 10px 12px; margin-top: 7px; }
#orq-plan-section .orq-day-t { font-weight: 700; font-size: 13px; }
#orq-plan-section .orq-goal { font-size: 13px; opacity: .92; margin-top: 3px; line-height: 1.45; }
#orq-plan-section .orq-fc { font-size: 11.5px; opacity: .6; margin-top: 3px; }
#orq-plan-section .orq-acc { font-size: 12px; opacity: .82; margin-top: 6px; padding: 6px 9px; background: rgba(127,127,127,.08); border-radius: 6px; line-height: 1.45; }
#orq-plan-section .orq-prompts { margin-top: 9px; display: flex; flex-direction: column; gap: 4px; }
#orq-plan-section .orq-prompt-b { cursor: pointer; text-align: left; font-size: 12px; padding: 5px 9px; border-radius: 6px; border: 1px solid rgba(127,127,127,.22); background: transparent; color: inherit; opacity: .9; }
#orq-plan-section .orq-prompt-b:hover { opacity: 1; border-color: rgba(127,127,127,.4); }
#orq-plan-section .orq-prompt-body { margin: 5px 0 2px; }
#orq-plan-section .orq-pre { white-space: pre-wrap; font: 11.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 9px 11px; border-radius: 6px; background: rgba(127,127,127,.1); margin: 0 0 6px; }
#orq-plan-section .orq-copy { cursor: pointer; font-size: 11px; padding: 3px 10px; border-radius: 5px; border: 1px solid rgba(127,127,127,.3); background: transparent; color: inherit; }
#orq-plan-section .orq-cnote { font-size: 10.5px; opacity: .5; margin-left: 8px; }

/* --- резюме --- */
#orq-plan-section .orq-resume { margin-top: 18px; border-top: 1px solid rgba(127,127,127,.16); padding-top: 12px; }
#orq-plan-section .orq-resume-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
#orq-plan-section .orq-resume-h span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .5; }
#orq-plan-section .orq-resume-t { font-size: 13.5px; line-height: 1.6; opacity: .95; margin: 0; }

/* --- индикатор дообогащения (спиннер в кнопке + баннер) --- */
@keyframes orq-spin { to { transform: rotate(360deg); } }
#orq-plan-section .orq-spin {
  display: inline-block; box-sizing: border-box; width: 12px; height: 12px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  animation: orq-spin .7s linear infinite; vertical-align: -1px; margin-right: 7px;
}
#orq-plan-section .orq-spin-lg { width: 18px; height: 18px; border-width: 2.5px; margin-right: 0; vertical-align: middle; }
#orq-plan-section .orq-chat-send:disabled { opacity: .85; }

@keyframes orq-eb-slide { 0% { left: -45%; } 100% { left: 105%; } }
#orq-plan-section .orq-enrich-banner {
  display: flex; align-items: center; gap: 11px; margin: 0 0 14px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(129,140,248,.4); background: rgba(99,102,241,.10); color: #c7ccf5;
}
#orq-plan-section .orq-eb-txt { display: flex; flex-direction: column; line-height: 1.3; }
#orq-plan-section .orq-eb-txt b { font-size: 12.5px; font-weight: 600; }
#orq-plan-section .orq-eb-txt span { font-size: 11px; opacity: .65; }
#orq-plan-section .orq-eb-bar {
  margin-left: auto; flex: 0 0 auto; width: 110px; height: 4px; border-radius: 3px;
  background: rgba(127,127,127,.2); overflow: hidden; position: relative;
}
#orq-plan-section .orq-eb-bar i {
  position: absolute; top: 0; left: -45%; width: 45%; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #818cf8, transparent);
  animation: orq-eb-slide 1.1s ease-in-out infinite;
}

/* --- обязательства (скилл obligation-not-plan) — строго в тон родным карточкам,
   без своих цветов/акцентов: кнопки = .orq-tool, карточки = rounded-lg border border-border,
   бейджи = как в матрице договора. Здесь только нейтральная РАЗМЕТКА (flex/отступы). --- */
#orq-plan-section .orq-obl { margin: 14px 0 4px; }
#orq-plan-section .orq-obl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 6px; }
#orq-plan-section .orq-obl-h { margin: 0; }
#orq-plan-section .orq-obl-stat { font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .7; margin-left: 8px; }
#orq-plan-section .orq-obl-hint { font-size: 11.5px; opacity: .55; line-height: 1.45; padding: 2px 0 4px; }
#orq-plan-section .orq-obl-list { display: flex; flex-direction: column; gap: 8px; }
#orq-plan-section .orq-ob { padding: 10px 12px; }
#orq-plan-section .orq-ob-top { display: flex; align-items: center; gap: 9px; }
#orq-plan-section .orq-ob-title { font-size: 13px; font-weight: 600; }
#orq-plan-section .orq-ob-res { font-size: 12.5px; opacity: .9; margin-top: 5px; line-height: 1.45; }
#orq-plan-section .orq-ob-meta { font-size: 11px; opacity: .55; margin-top: 4px; }
#orq-plan-section .orq-ob-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
#orq-plan-section .orq-ob-panel { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(127,127,127,.14); }
#orq-plan-section .orq-pl-h { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .5; margin: 9px 0 4px; }
#orq-plan-section .orq-pl-h:first-child { margin-top: 0; }
#orq-plan-section .orq-pl-t { font-size: 12.5px; opacity: .85; line-height: 1.5; }
#orq-plan-section .orq-bat { margin: 7px 0; }
#orq-plan-section .orq-bat-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
#orq-plan-section .orq-agent { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(127,127,127,.28); opacity: .7; }
#orq-plan-section .orq-bat-t { font-size: 12px; font-weight: 600; opacity: .9; }
#orq-plan-section .orq-obl-btns { display: flex; flex-wrap: wrap; gap: 6px; }
#orq-plan-section .orq-obl-audit-line { font-size: 11px; opacity: .6; margin: 0 0 6px; }
#orq-plan-section .orq-obl-panel { margin: 4px 0 10px; padding: 10px 12px; border: 1px solid rgba(127,127,127,.16); border-radius: 9px; }
#orq-plan-section .orq-ob-exist { font-size: 12px; opacity: .8; margin-top: 5px; padding: 6px 9px; background: rgba(127,127,127,.08); border-radius: 6px; line-height: 1.45; }
#orq-plan-section .orq-run-list { margin: 4px 0 2px; }
#orq-plan-section .orq-run-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid rgba(127,127,127,.1); }
#orq-plan-section .orq-run-row:first-child { border-top: 0; }
#orq-plan-section .orq-run-t { font-size: 12.5px; font-weight: 600; }
#orq-plan-section .orq-run-m { font-size: 11px; opacity: .55; white-space: nowrap; }
