/*! supertwentyplus licence: (c) 2026 Supertwentyplus Pte. Ltd. All rights reserved. Proprietary, not open source.
   Use only as provided on supertwentyplus.com (free or by subscription, under its Terms). Copying, reuse or hosting elsewhere,
   in whole or in part, needs a written licence: supertwentyplus@gmail.com. See LICENSE.txt at the site root. */
/* Handwriting Analyser */
.hw-app { gap: 18px; }
.hw-fun { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hw-input[hidden] { display: none; }
.hw-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; padding: 24px; text-align: center; border: 2px dashed var(--ink-3); border-radius: var(--card-radius); background: var(--bg); cursor: pointer; }
.hw-drop .icon { font-size: 36px; color: var(--accent); }
.hw-drop strong { font-size: 18px; }
.hw-drop span { color: var(--ink-2); max-width: 34em; font-size: 15px; }
.hw-drop.is-over, .hw-drop:hover { border-color: var(--ink); background: var(--surface); }
.hw-pad-wrap { border: 2px solid var(--ink); border-radius: var(--card-radius); background: #FFFFFF; overflow: hidden; margin: 8px 0 12px; }
.hw-pad { display: block; width: 100%; height: 280px; touch-action: none; cursor: crosshair; }
.hw-busy { font-weight: 700; color: var(--accent-text); }
.hw-busy:empty { display: none; }
.hw-results { display: flex; flex-direction: column; gap: 18px; }
.hw-results[hidden] { display: none; }
.hw-preview canvas { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--btn-radius); background: #FFFFFF; }
.hw-preview .field-hint { margin-top: 6px; }
.hw-summary { padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--card-radius); }
.hw-summary h2 { font-size: 20px; margin-bottom: 6px; }
.hw-words { font: 600 18px/1.5 var(--font-display); }
.hw-note { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.hw-traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.hw-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); }
.hw-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hw-card h3 { font-size: 17px; }
.hw-val { font-weight: 700; color: var(--accent-text); font-size: 14px; text-align: right; }
.hw-gauge { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #CFE0FF, #E3F3EC, #FFE1D6); }
.hw-mark { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.3); transform: translate(-50%, -50%); }
.hw-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: -4px; }
.hw-card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.hw-life { padding-top: 8px; border-top: 1px dashed var(--line); font-size: 14px !important; }
.hw-life strong { color: var(--ink); }
.hw-hl-title { font-size: 16px; margin: 12px 0 6px; }
.hw-hl { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.hw-hl strong { color: var(--ink); }
.hw-ends span:empty::before { content: ""; }
