/* =========================================================
   Project One-Pager (Projects hub, version 53)
   Loaded after theme.css on the tool pages. Same frame as Award Certificates (.tk): the form on the left, the page on
   the right. Projects purple takes the place of safety yellow inside this tool. On phones the Details and The page
   tabs switch panes. The page takes its colors from the print themes (--pt-*), so the Sheet style menu changes it;
   the status color (green, yellow, red) stays the same in every theme and always has its word beside it.
   ========================================================= */
@media screen {

#panel-onepager {
  --mascot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 58'%3E%3Cellipse cx='25' cy='54' rx='18' ry='3' fill='%231B2125' opacity='.15'/%3E%3Cg transform='translate(1 4)'%3E%3Cpath d='M11 6h19l9 9v30a2.5 2.5 0 0 1-2.5 2.5h-23A2.5 2.5 0 0 1 11 45z' fill='%23B89CFF' stroke='%231B2125' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M30 6v9h9' fill='%23fff' stroke='%231B2125' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M16 13h9M16 18h6' stroke='%231B2125' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='20.5' cy='28' r='2.2' fill='%231B2125'/%3E%3Ccircle cx='29.5' cy='28' r='2.2' fill='%231B2125'/%3E%3Cpath d='M22.5 33q2.5 2.8 5 0' fill='none' stroke='%231B2125' stroke-width='2' stroke-linecap='round'/%3E%3Cellipse cx='17' cy='33' rx='2.3' ry='1.4' fill='%23F4B6B0'/%3E%3Cellipse cx='33' cy='33' rx='2.3' ry='1.4' fill='%23F4B6B0'/%3E%3C/g%3E%3C/svg%3E"); --mascot-w: 52px; --mascot-h: 60px; --note: "the whole project, one page";
  /* the tool's accent: Projects purple (ink text on it is 7:1) */
  --yel: #b89cff; --yel-hover: #c9b3ff; --yel-soft: #eee8ff; --yel-line: #d6c8ff; --yel-ink: #4a2f86; --on-yel: #1b2125; --hl: #b89cff;
  --st-g: #267a4c; --st-y: #f2b705; --st-r: #d33a2c;
}
:root:lang(es) #panel-onepager { --note: "todo el proyecto, una hoja"; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-tc-theme="light"]) #panel-onepager { --yel-soft: #251d3a; --yel-line: #3d2f63; --yel-ink: #d0c0ff; --hl: #4b3684; --st-g: #4fbf7d; --st-r: #f0705f; }
}
:root[data-theme="dark"]:not([data-tc-theme="light"]) #panel-onepager, :root[data-tc-theme="dark"] #panel-onepager { --yel-soft: #251d3a; --yel-line: #3d2f63; --yel-ink: #d0c0ff; --hl: #4b3684; --st-g: #4fbf7d; --st-r: #f0705f; }

/* ---------- the frame: the form on the left, the page on the right ---------- */
.op .tk-main { grid-template-columns: minmax(380px, 1fr) minmax(0, 1.05fr); }
.op-form-pane { background: var(--canvas); }
@media (min-width: 921px) {
  .op-form-pane { border-right: 2px solid var(--edge); border-radius: 16px 0 0 16px; }
  /* the page stays in view while the form scrolls past */
  .op-page-pane { position: sticky; top: calc(var(--head-h, 60px) + 12px); align-self: start; }
}
.op .tk-try, .op .notice, .op .warn { margin: 10px 0 0; }
.op-pick { margin-top: 8px; display: grid; gap: 6px; }
.op-pick-row { display: flex; gap: 8px; align-items: center; }
.op-pick-row select { flex: 1 1 auto; min-width: 0; }
.op-pick-row .tk-btn { flex: none; gap: 6px; }
.op-pick-row svg { width: 16px; height: 16px; flex: none; }
.op-form { display: grid; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.op-form .tk-l em { font-style: normal; font-weight: 400; color: var(--muted); }
.op-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 10px; }
.op-form textarea.tk-in { min-height: 0; resize: vertical; }

/* status: three choices, each with its color and its word */
.op-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.op-status .op-st { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 8px; border: 2px solid var(--line-2);
  border-radius: 10px; background: var(--surface); color: var(--ink); font: 600 14px/1.15 var(--f-ui); cursor: pointer; text-align: center; }
.op-status .op-st:hover { border-color: var(--ink); }
.op-status .op-st i { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px var(--ink); }
.op-status .op-st-g i { background: var(--st-g); }
.op-status .op-st-y i { background: var(--st-y); }
.op-status .op-st-r i { background: var(--st-r); }
.op-status .op-st[aria-checked="true"] { border-color: var(--ink); background: var(--yel-soft); box-shadow: 3px 3px 0 var(--ink); }

/* the three lists: rows of fields */
.op-sec { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.op-sec legend { padding: 0; margin-bottom: 8px; }
.op-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.op-rows:empty { display: none; }
.op-row { display: grid; gap: 6px; align-items: center; }
.op-row .tk-in { min-height: 42px; }
.op-row-ms { grid-template-columns: 24px minmax(0, 1fr) 138px 36px; }
.op-row-risk { grid-template-columns: minmax(0, 1fr) 104px 36px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.op-row-risk .op-plan { grid-column: 1 / -1; }
.op-row-next { grid-template-columns: minmax(0, 1fr) 92px 138px 36px; }
.op-ck { width: 22px; height: 22px; margin: 0; accent-color: var(--yel-ink); cursor: pointer; }
.op-row .op-d { font-variant-numeric: tabular-nums; padding-inline: 8px; }
.op-rm { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.op-rm:hover { background: var(--yel-soft); color: var(--ink); }
.op-rm svg { width: 18px; height: 18px; }
.op-add { justify-self: start; }
.op-add[hidden] { display: none; }
.op-del-row { margin: 4px 0 0; }

/* ---------- the page ---------- */
.op-page-pane { display: grid; gap: 12px; align-content: start; }
.op-page-pane > .tk-pane-h { flex-wrap: wrap; gap: 8px 12px; }
.op-copy { gap: 7px; }
.op-copy svg, .op-printgo svg { width: 18px; height: 18px; flex: none; }
.op-copy[data-copied] { border-color: var(--ink); background: var(--yel-soft); }
.op-copy-msg { margin: -4px 0 0; min-height: 0; }
.op-copy-msg:empty { display: none; }
.op-paper { margin: 0; }
/* the preview is a whole letter page, so the room left on it shows */
.op-paper .op-sheet { min-height: 1056px; }
.op-printrow { display: grid; gap: 14px; }
.op-printctl { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.op-printctl > .tk-f { flex: 1 1 260px; }
.op-printctl > #op-style-box { flex: 0 1 220px; }
.op-printgo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.op-printgo .tk-hint { flex: 1 1 220px; margin: 0; }

/* ---------- phones: one pane at a time ---------- */
@media (max-width: 920px) {
  .op .tk-main { display: block; }
  .op[data-pane="form"] .op-page-pane, .op[data-pane="page"] .op-form-pane { display: none; }
  .op-form-pane { background: var(--surface); }
  .op-row-risk { background: var(--canvas); }
  .op-printgo .tk-btn { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .op-row-ms { grid-template-columns: 24px minmax(0, 1fr) 36px; }
  .op-row-ms .op-d { grid-column: 2; grid-row: 2; }
  .op-row-next { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .op-row-next .op-t { grid-column: 1 / 3; }
  .op-row-next .op-who { grid-column: 1; grid-row: 2; }
  .op-row-next .op-d { grid-column: 2; grid-row: 2; }
  .op-row-next .op-rm { grid-column: 3; grid-row: 1; }
  .op-row-ms, .op-row-next { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .op-row-risk { grid-template-columns: 104px minmax(0, 1fr) 36px; }
  .op-row-risk .op-t { grid-column: 1 / 3; grid-row: 1; }
  .op-row-risk .op-rm { grid-column: 3; grid-row: 1; }
  .op-row-risk .op-lv { grid-column: 1; grid-row: 2; }
  .op-row-risk .op-plan { grid-column: 2 / 4; grid-row: 2; }
  .op-pick-row { flex-wrap: wrap; }
  .op-pick-row select { flex-basis: 100%; }
}

} /* end screen */

/* ---------- the page (preview and paper): letter, upright ---------- */
.op-sheet { --op-fs: 12.5px; --op-gap: 13px; font-size: var(--op-fs); display: flex; flex-direction: column; gap: var(--op-gap); }
.op-sheet.op-fit1 { --op-fs: 11.5px; --op-gap: 10px; }
.op-sheet.op-fit2 { --op-fs: 10.5px; --op-gap: 7px; line-height: 1.32; }
.op-sheet > * { margin: 0; }
.op-s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 3px var(--pt-rule-style, solid) var(--pt-accent); }
.op-s-title { font: var(--pt-title); color: var(--pt-head); overflow-wrap: anywhere; min-width: 0; }
.op-s-status { display: grid; justify-items: end; gap: 3px; flex: none; }
.op-s-sl { font: 700 10px/1 var(--f-ui); letter-spacing: .04em; color: var(--pt-label); }
.op-s-sv { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border: 1.5px solid var(--pt-head); border-radius: 999px; font: 700 13px/1 var(--f-cond); color: #1b2125; white-space: nowrap; }
.op-s-sv i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #1b2125; }
.op-st-g .op-s-sv i { background: #267a4c; }
.op-st-y .op-s-sv i { background: #f2b705; }
.op-st-r .op-s-sv i { background: #d33a2c; }
.op-s-meta { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 10px; }
.op-s-meta div { min-width: 0; }
.op-s-meta dt { font: 700 10px/1.2 var(--f-ui); letter-spacing: .04em; color: var(--pt-label); }
.op-s-meta dd { margin: 3px 0 0; min-height: 1.4em; font-weight: 600; border-bottom: 1px solid var(--pt-line); overflow-wrap: anywhere; }
.op-s-blank { display: inline-block; }
.op-s-prog { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; font-weight: 600; color: var(--pt-head); }
.op-s-prog b { display: block; height: 8px; border-radius: 4px; border: 1px solid var(--pt-head); background: linear-gradient(90deg, var(--pt-head) var(--p), transparent var(--p)); }
.op-s-sec h3 { margin: 0 0 5px; padding-bottom: 3px; border-bottom: 1.5px solid var(--pt-head); font: 700 14px/1.2 var(--f-cond); color: var(--pt-head); }
.op-fit2 .op-s-sec h3 { font-size: 13px; margin-bottom: 3px; }
.op-s-sec p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.op-s-lines { display: grid; gap: 20px; padding-top: 18px; }
.op-s-lines i { border-bottom: 1px solid var(--pt-line); }
.op-s-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.op-s-ms, .op-s-risks { list-style: none; margin: 0; padding: 0; }
.op-s-ms li { display: grid; grid-template-columns: 13px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 4px 0; border-bottom: 1px solid var(--pt-rule); }
.op-s-empty li { min-height: 25px; border-bottom-color: var(--pt-line); }
.op-s-box { width: 12px; height: 12px; margin-top: 2px; border: 1.5px solid var(--pt-head); border-radius: 2px; display: grid; place-items: center; color: var(--pt-head); }
.op-s-box svg { width: 10px; height: 10px; }
.op-s-ms li.done .op-s-mt { color: var(--pt-label); }
.op-s-mt { overflow-wrap: anywhere; }
.op-s-md { color: var(--pt-label); font-size: .9em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.op-s-md b { color: #9d2a1f; font-weight: 700; }
.op-s-risks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; padding: 5px 0; border-bottom: 1px solid var(--pt-rule); }
.op-s-lv { grid-row: 1 / span 2; align-self: start; min-width: 5.4em; padding: 2px 6px; border: 1.5px solid var(--pt-head); border-radius: 4px; font: 700 .82em/1.2 var(--f-ui); text-align: center; color: var(--pt-head); }
.op-lv-h { background: var(--pt-head); color: #fff; }
.op-s-rt { font-weight: 600; overflow-wrap: anywhere; }
.op-s-plan { color: var(--pt-sub, #48535b); overflow-wrap: anywhere; }
.op-s-plan b { font-weight: 700; color: var(--pt-label); }
.op-s-next { width: 100%; border-collapse: collapse; table-layout: fixed; }
.op-s-next th { padding: 0 6px 4px 0; font: 700 10px/1.2 var(--f-ui); letter-spacing: .04em; color: var(--pt-label); text-align: left; }
.op-s-next th:nth-child(2) { width: 22%; }
.op-s-next th:nth-child(3) { width: 14%; }
.op-s-next td { padding: 5px 6px 5px 0; border-bottom: 1px solid var(--pt-rule); vertical-align: top; overflow-wrap: anywhere; }
.op-s-next tbody tr:has(td:empty:first-child) td { height: 25px; border-bottom-color: var(--pt-line); }
.op-s-next td:first-child { font-weight: 600; }
.op-s-next td:last-child { font-variant-numeric: tabular-nums; }
.op-sheet .ss-foot { margin-top: auto; }

@media print {
  #print-root .op-sheet { min-height: 9.9in; }
  .op-form, .op-pick, .op-page-pane .tk-pane-h, .op-printrow { display: none !important; }
}
