/* Календарик-пинарик */
.pin-top{margin-bottom:22px}
.pin-goals{margin-bottom:28px}
.pin-goal-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px;max-width:640px}
.pin-goal-list li{display:flex;align-items:center;gap:8px}
.pin-num{flex:0 0 22px;text-align:right;color:#6b7368;font-size:15px}
.pin-goal-list .tool-input{flex:1;min-width:0}
.pin-goal-list .tool-input input{padding:9px 12px;font-size:16px}
.pin-remove{flex:0 0 36px;height:36px;border:0;border-radius:8px;background:transparent;color:#6b7368;font-size:22px;line-height:1}
.pin-remove:hover{background:#f0f3e9;color:var(--ink)}
.pin-nav{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin-bottom:6px}
.pin-nav .tool-block-title{margin:0;min-width:7ch;text-align:center}
.pin-nav .btn-small{min-width:40px}
.pin-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin:14px 0 12px;font-size:14px;color:#5d6857}
.pin-legend span{display:inline-flex;align-items:center;gap:6px}
.pin-sw{display:inline-flex;align-items:center;justify-content:center;width:24px;height:18px;border:1px solid #dfe3d8;border-radius:4px;background:#fff;font-style:normal;font-weight:700;font-size:13px}
.pin-sw.is-plus{background:#d6ecc8;border-color:#8fbf7a;color:#1f6a3b}
.pin-sw.is-minus{background:#f6d9d3;border-color:#d99a8e;color:#a12c21}
.pin-sw.is-weekend{background:#eef1e8}
.pin-sw.is-today{box-shadow:0 0 0 2px var(--green)}
.pin-scroll{max-width:100%;overflow-x:auto;padding:3px}
.pin-grid{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:3px}
.pin-grid th{padding:2px 0;font-size:12px;font-weight:600;line-height:1.2;color:#5d6857;text-align:center}
.pin-grid th[scope=row]{padding-right:6px;font-weight:500;text-align:right}
.pin-grid td{padding:0}
.pin-year{min-width:340px}
.pin-year thead th:first-child{width:30px}
.pin-hours{min-width:460px}
.pin-hours thead th:first-child{width:56px}
.pin-hours thead th span{display:block;font-weight:400;color:#6b7368}
.pin-hours thead th.is-today{color:var(--green)}
.pin-hours tfoot th,.pin-hours tfoot td{padding-top:8px;font-size:13px;font-weight:600;color:var(--ink);text-align:center}
.pin-hours tfoot th{text-align:right}
.pin-cell{display:block;width:100%;height:26px;padding:0;border:1px solid #dfe3d8;border-radius:5px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:700;line-height:1;cursor:pointer;transition:border-color .12s}
.pin-hours .pin-cell{height:30px}
.pin-cell.is-weekend{background:#eef1e8}
.pin-cell[data-state="1"]{background:#d6ecc8;border-color:#8fbf7a;color:#1f6a3b}
.pin-cell[data-state="2"]{background:#f6d9d3;border-color:#d99a8e;color:#a12c21}
.pin-cell.is-today{box-shadow:0 0 0 2px var(--green)}
.pin-cell[aria-disabled=true]{background:transparent;border-style:dashed;border-color:#e2e5dc;cursor:default}
@media(hover:hover){.pin-cell:not([aria-disabled=true]):hover{border-color:var(--green)}}
.pin-cell:focus-visible{outline:3px solid #687d31;outline-offset:1px}
.pin-status{min-height:1.5em;margin-top:12px;font-size:14px;color:#5d6857}
.pin-status:empty{margin-top:0}
.pin-verdict{font-size:18px;line-height:1.5;color:var(--ink)}
.pin-bar{display:flex;height:14px;margin:14px 0 18px;border-radius:7px;background:#eef0e8;overflow:hidden}
.pin-bar span{display:block;height:100%;width:0}
.pin-bar .b-plus{background:#5a9e57}
.pin-bar .b-minus{background:#d0786a}
.pin-bar .b-empty{background:#b9bfb1}
.pin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pin-kpi{padding:12px 14px;border-radius:12px;background:#f3f5ee}
.pin-kpi b{display:block;font-size:24px;font-weight:600;line-height:1.2;color:var(--ink)}
.pin-kpi span{font-size:13px;color:#5d6857}
.pin-pdf{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
@media(max-width:640px){
  .pin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pin-grid{border-spacing:2px}
  .pin-year{min-width:0}
  .pin-scroll{margin-inline:-6px;padding:3px 0}
  .pin-cell{height:24px;border-radius:4px;font-size:13px}
  .pin-year thead th:first-child{width:22px}
  .pin-grid th{font-size:11px}
  .pin-grid th[scope=row]{padding-right:3px}
}
@media(prefers-reduced-motion:reduce){.pin-cell{transition:none}}
