.date-tools{--cd-accent:#f3a01c;--cd-accent-text:#111827;--cd-blue:#3b82f6;--cd-green:#16a34a;--cd-purple:#7c3aed;--cd-card-shadow:0 1px 2px rgba(17,24,39,.04),0 8px 20px rgba(17,24,39,.05);display:flex;flex-direction:column;gap:16px}.date-tools .cd-sub{margin:0;color:var(--tools-muted);font-size:14px;line-height:1.55}.date-tools .cd-tabs{display:flex;gap:4px;margin:8px 0 4px;border-bottom:1px solid var(--tools-border)}.date-tools .cd-tab{position:relative;border:0;background:transparent;color:var(--tools-muted);padding:10px 14px 12px;font-size:14px;font-weight:600;cursor:pointer}.date-tools .cd-tab.is-active{color:var(--cd-blue)}.date-tools .cd-tab.is-active:after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;border-radius:2px;background:var(--cd-blue)}.date-tools .cd-card{background:var(--tools-surface);border:1px solid var(--tools-border);border-radius:12px;box-shadow:var(--cd-card-shadow)}.date-tools .cd-card-pad{padding:18px 16px 16px}.date-tools .cd-card-title{margin:0 0 14px;font-size:15px;font-weight:700}.date-tools .cd-field-row{display:grid;grid-template-columns:1fr;gap:14px}.date-tools .cd-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.date-tools .cd-btn{min-width:88px;height:40px;padding:0 22px;border:0;border-radius:10px;font-size:14px;font-weight:650;cursor:pointer}.date-tools .cd-btn:disabled{opacity:.4;cursor:not-allowed}.date-tools .cd-btn-primary{background:var(--cd-accent);color:var(--cd-accent-text)}.date-tools .cd-btn-ghost{background:var(--tools-surface);color:var(--tools-muted);border:1px solid var(--tools-border)}.date-tools .cd-error{margin:0;color:#b91c1c;font-size:13px;text-align:center}.date-tools .cd-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.date-tools .cd-stat{padding:16px 14px;text-align:center}.date-tools .cd-stat-label{margin:0;color:var(--tools-muted);font-size:12px}.date-tools .cd-stat-value{margin:8px 0 0;font-size:22px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.2}.date-tools .cd-stat-unit{margin-left:4px;color:var(--tools-muted);font-size:13px;font-weight:500}@media (min-width:640px){.date-tools .cd-field-row.is-2,.date-tools .cd-field-row.is-4,.date-tools .cd-field-row.is-5{grid-template-columns:repeat(2,minmax(0,1fr))}.date-tools .cd-field-row.is-compact{max-width:520px}.date-tools .cd-stat-grid.is-4{grid-template-columns:repeat(4,minmax(0,1fr))}.date-tools .cd-stat-grid.is-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:960px){.date-tools .cd-field-row.is-4{grid-template-columns:repeat(4,minmax(0,1fr))}.date-tools .cd-field-row.is-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width:768px){.date-tools .cd-card-pad{padding:22px 20px 18px}}.hanzi-practice{width:100%;max-width:none}.hanzi-practice .field-stack{display:flex;flex-direction:column;gap:14px;margin-bottom:18px}.hanzi-practice .field{display:flex;flex-direction:column;gap:6px}.hanzi-practice .field-label{font-size:13px;font-weight:650;color:var(--tools-muted)}.hanzi-practice .field-input{width:100%;border:1px solid var(--tools-border);border-radius:10px;padding:10px 12px;font-size:15px;color:var(--tools-text);background:var(--tools-bg)}.hanzi-practice .field-input:focus{outline:none;border-color:color-mix(in srgb,var(--cd-accent) 65%,var(--tools-border));box-shadow:0 0 0 3px color-mix(in srgb,var(--cd-accent) 18%,transparent)}.hanzi-practice .options-stack{display:flex;flex-direction:column;gap:18px;margin-bottom:18px}.hanzi-practice .options-stack .option-block{margin-bottom:0}.hanzi-practice .option-pair{display:grid;grid-template-columns:1fr;gap:18px}.hanzi-practice .option-block.is-disabled{opacity:.45;pointer-events:none}.hanzi-practice .option-title{margin:0 0 8px;font-size:13px;font-weight:650;color:var(--tools-muted)}.hanzi-practice .radio-row{display:flex;flex-wrap:wrap;gap:8px}.hanzi-practice .radio-chip{position:relative;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid var(--tools-border);border-radius:999px;font-size:13px;line-height:1.2;cursor:pointer;background:var(--tools-bg);-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:border-color .15s ease,background .15s ease}.hanzi-practice .radio-chip input{position:absolute;opacity:0;width:0;height:0;margin:0}.hanzi-practice .radio-chip:has(input:checked){border-color:color-mix(in srgb,var(--cd-accent) 70%,var(--tools-border));background:color-mix(in srgb,var(--cd-accent) 14%,var(--tools-bg));font-weight:650}.hanzi-practice .radio-chip:has(input:focus-visible){outline:2px solid var(--cd-blue);outline-offset:2px}.hanzi-practice .color-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;border:1px solid color-mix(in srgb,var(--tools-border) 80%,transparent)}.hanzi-practice .color-dot.is-red{background:#c00}.hanzi-practice .color-dot.is-green{background:#00b828}.hanzi-practice .color-dot.is-black{background:#333}.hanzi-practice .stroke-section{display:flex;flex-direction:column;gap:12px}.hanzi-practice .toggle-field{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.hanzi-practice .toggle-field .option-title{margin:0}.hanzi-practice .toggle-wrap{position:relative;width:46px;height:26px}.hanzi-practice .toggle-input{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:1}.hanzi-practice .toggle-ui{display:block;width:100%;height:100%;border-radius:999px;background:color-mix(in srgb,var(--tools-border) 70%,transparent);transition:background .15s ease}.hanzi-practice .toggle-ui:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:transform .15s ease}.hanzi-practice .toggle-input:checked+.toggle-ui{background:var(--cd-blue)}.hanzi-practice .toggle-input:checked+.toggle-ui:after{transform:translateX(20px)}.hanzi-practice .char-hint{margin:0 0 12px;font-size:13px;color:var(--tools-muted);word-break:break-all}.hanzi-practice .preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}.hanzi-practice .preview-head .cd-card-title{margin:0}.hanzi-practice .preview-actions{display:flex;flex-wrap:wrap;gap:8px}.hanzi-practice .preview-foot,.hanzi-practice .preview-meta,.hanzi-practice .preview-tip{margin:0 0 10px;font-size:13px;color:var(--tools-muted)}.hanzi-practice .preview-frame{overflow:visible;border:1px solid var(--tools-border);border-radius:10px;background:#fff;padding:16px}.hanzi-sheet-card{width:100%;max-width:none;margin:0;background:#fff;color:#111}.hanzi-sheet-footer,.hanzi-sheet-subtitle,.hanzi-sheet-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0}.hanzi-sheet-body,.hanzi-sheet-subtitle{margin-top:24px}.hanzi-char-block{margin-bottom:28px}.hanzi-grid-row{display:grid;grid-template-columns:repeat(var(--grid-count,14),minmax(0,1fr));width:100%;line-height:0;border:1px solid;box-sizing:border-box}.hanzi-sheet-card .grid-cell-wrap{position:relative;min-width:0;width:100%;aspect-ratio:1;height:auto;box-sizing:border-box;background:#fff;border:0;border-right:1px solid var(--grid-light,#00b828);overflow:hidden}.hanzi-sheet-card .grid-cell-wrap.grid-pos-right{border-right:0}.hanzi-sheet-card .grid-type-mi:before,.hanzi-sheet-card .grid-type-tian:before{content:"";position:absolute;top:0;bottom:0;left:50%;border-left:1px dashed var(--grid-light,#00b828);transform:translateX(-50%);pointer-events:none}.hanzi-sheet-card .grid-type-mi:after,.hanzi-sheet-card .grid-type-tian:after{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px dashed var(--grid-light,#00b828);pointer-events:none}.hanzi-sheet-card .grid-diag{position:absolute;top:50%;left:50%;width:142%;height:0;border-top:1px dashed var(--grid-light,#00b828);transform-origin:center;pointer-events:none}.hanzi-sheet-card .grid-diag-1{transform:translate(-50%,-50%) rotate(45deg)}.hanzi-sheet-card .grid-diag-2{transform:translate(-50%,-50%) rotate(-45deg)}.hanzi-sheet-card .grid-char{position:absolute;inset:0;pointer-events:none}.hanzi-glyph-fluid,.hanzi-sheet-card .grid-char{width:100%;height:100%;display:block}.hanzi-sheet-print-root{-webkit-print-color-adjust:exact;print-color-adjust:exact}.hanzi-glyph{display:inline-block;vertical-align:middle}.hanzi-sheet-title .hanzi-glyph{width:56px;height:56px}.hanzi-sheet-subtitle .hanzi-glyph{width:36px;height:36px}.hanzi-sheet-footer .hanzi-glyph{width:40px;height:40px}.stroke-fan{display:grid;grid-template-columns:repeat(var(--grid-count,14),minmax(0,1fr));width:100%;margin-bottom:4px;line-height:0}.stroke-step{width:100%;aspect-ratio:1;height:auto;display:block;margin:0}.hanzi-space{display:inline-block}.hanzi-space-lg{width:24px}.hanzi-space-md{width:18px}.hanzi-space-sm{width:12px}.hanzi-sheet-footer{justify-content:flex-end;margin-top:24px}.hanzi-empty{margin:0;text-align:center;color:#888;font-size:14px}@media (min-width:640px){.hanzi-practice .option-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}@media print{.hanzi-sheet-card{box-shadow:none;max-width:none;width:100%}.hanzi-grid-row{width:100%}}