/* Free small tools (/cong-cu/): layered on /tien-ich/style.css. */
.cc-tool{display:grid;gap:16px}
.cc-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cc-row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cc-tool textarea{font:15px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#102c3a;width:100%;min-height:150px;padding:12px 13px;border:1px solid #d5dde1;border-radius:10px;background:#fff;resize:vertical;box-sizing:border-box}
.cc-tool textarea:focus{border-color:#b3945a;outline:none;box-shadow:0 0 0 3px #48927222}
.cc-seg{display:inline-flex;border:1px solid #d5dde1;border-radius:12px;padding:3px;background:#f6f8f5;gap:3px;flex-wrap:wrap}
.cc-seg label{display:inline-flex;align-items:center;min-height:42px;padding:0 14px;border-radius:9px;font-size:14px;font-weight:700;color:#3d5563;cursor:pointer}
.cc-seg input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}
.cc-seg label:has(input:checked){background:#102c3a;color:#fff}
.cc-seg label:has(input:focus-visible){outline:2px solid #b3945a}
.cc-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.cc-actions .button{min-height:46px}
.cc-msg{font-size:14px;line-height:1.6;margin:0;color:#3d5563}
.cc-msg:empty{display:none}
.cc-msg.warn{color:#8a5a00;background:#fff9e9;border:1px solid #f0dfb6;border-radius:10px;padding:10px 12px}
.cc-msg.err{color:#a11;background:#fff3f3;border:1px solid #f2c9c9;border-radius:10px;padding:10px 12px}
.cc-result:empty{display:none}
.cc-result{display:grid;gap:14px}
.cc-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.cc-stat{border:1px solid #e0e9e2;border-radius:14px;padding:14px;background:#fbfcfb}
.cc-stat span{display:block;font-size:12px;color:#667770}
.cc-stat strong{display:block;font-size:24px;letter-spacing:-.03em;color:#102c3a;margin-top:6px;overflow-wrap:anywhere}
.cc-stat small{display:block;font-size:12px;color:#667770;margin-top:4px}
.cc-table{width:100%;border-collapse:collapse;font-size:14px}
.cc-table th,.cc-table td{padding:9px 10px;border-bottom:1px solid #e8ecee;text-align:left;white-space:nowrap;min-width:0}
.cc-table td.num,.cc-table th.num{text-align:right;font-variant-numeric:tabular-nums}
.cc-table td:first-child{min-width:0}
.cc-table tfoot td{font-weight:800;color:#102c3a}
.cc-table a{font-weight:700;color:#1d6b54}
.cc-svg svg{width:100%;height:auto;max-height:420px;background:#f8faf9;border:1px solid #e0e9e2;border-radius:14px}
.cc-svg polygon{fill:#e8574233;stroke:#d8432f;stroke-width:2;stroke-linejoin:round}
.cc-svg polyline{fill:none;stroke:#1d6b54;stroke-width:2}
.cc-svg circle{fill:#102c3a}
.cc-svg text{font:600 12px Inter,system-ui,sans-serif;fill:#102c3a;text-anchor:middle}
.cc-svg text.edge{fill:#6b4b12;font-weight:700}
.cc-svg text.north{font-weight:800}
.cc-drop{display:grid;place-items:center;gap:8px;text-align:center;border:2px dashed #b9cbc1;border-radius:16px;padding:28px 16px;background:#f8fbf9;cursor:pointer}
.cc-drop.over{border-color:#1d6b54;background:#eef7f1}
.cc-drop strong{font-size:17px;color:#102c3a}
.cc-drop span{font-size:13px;color:#667770}
.cc-chips{display:flex;gap:8px;flex-wrap:wrap}
.cc-chips button{min-height:40px;padding:0 12px;border:1px solid #d6e2d9;border-radius:999px;background:#fff;font:700 13px Inter,system-ui,sans-serif;color:#284d41;cursor:pointer}
.cc-chips button:hover{background:#f5faf6}
.cc-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cc-card{border:1px solid #e0e9e2;border-radius:14px;padding:14px;background:#fff}
.cc-card h3{font-size:15px;margin:0 0 6px;color:#21483d}
.cc-card p{margin:0;font-size:13px!important;line-height:1.55}
.cc-card strong{display:block;font-size:22px;color:#102c3a;margin:6px 0;overflow-wrap:anywhere}
.cc-hub{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cc-hub a{display:block;height:100%;padding:18px;border:1px solid #e0e9e2;border-radius:16px;background:#fff;text-decoration:none;box-sizing:border-box}
.cc-hub a:hover{border-color:#8fb6a0}
.cc-hub strong{display:block;color:#102c3a;font-size:17px;margin-bottom:6px}
.cc-hub span{display:block;color:#5c6b75;font-size:14px;line-height:1.55}
.cc-hub em{display:inline-block;margin-top:8px;font-style:normal;font-size:12px;font-weight:700;color:#1d6b54}
.cc-sched td,.cc-sched th{font-size:13px}
.cc-sched input{min-height:42px;padding:8px 10px}
.cc-small{font-size:12px!important;color:#667770!important}
details.cc-more summary{cursor:pointer;font-weight:700;color:#21483d;min-height:44px;display:flex;align-items:center}
.field .hint{font-size:12px;color:#6b7a84}
@media(max-width:760px){.cc-row,.cc-row3,.cc-cards,.cc-hub{grid-template-columns:1fr}.cc-stat strong{font-size:21px}.cc-actions .button{flex:1 1 140px}}
[hidden]{display:none!important}
fieldset.cc-seg{margin:0;min-width:0}
.cc-check{display:flex;gap:10px;align-items:center;font-size:14px;color:#3d5563;min-height:44px}
.cc-check input{width:22px;min-height:22px;height:22px;margin:0;flex:none}
.cc-meridians td,.cc-meridians th{font-size:13px;padding:7px 10px}
.cc-meridians td:last-child{text-align:right;white-space:nowrap}
.top nav a.active{color:#102c3a}
.cc-seg{display:flex;flex-wrap:nowrap;max-width:560px}
.cc-seg label{flex:1 1 0;justify-content:center;text-align:center;padding:0 8px;line-height:1.25}
@media(max-width:400px){.cc-seg label{font-size:13px}}
.cc-stages{display:grid;gap:8px}
.cc-stage{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) 84px 48px;gap:8px;align-items:center}
.cc-stage .button{min-height:46px;padding:0}
@media(max-width:600px){.cc-stage{grid-template-columns:minmax(0,1fr) 84px 48px;padding:10px;border:1px solid #e0e9e2;border-radius:12px}.cc-stage input:first-child{grid-column:1/-1}}
.cc-sched td{vertical-align:middle}
.cc-sched details.cc-more summary{min-height:44px}
#ccResult:not(:empty){margin-top:18px}
.top nav a,.top .brand{display:inline-flex;align-items:center;min-height:44px}
.footer-note{color:#4f5f69}
.footer-note a{display:inline-block;padding:10px 2px}
.panel ul li{margin:6px 0}
.panel ul li a,.panel ol li a{display:inline-block;padding:6px 0}
.cc-table td a{display:inline-block;padding:8px 0}
.panel p a{padding:6px 0}
.field .hint,.cc-small{color:#55656e!important}
