/* Toolsites contact form (20.11.2026): dialog and contact page. Colours only from the site tokens (--paper, --white,
   --ink, --muted, --line, --line-strong, --accent), which the layout sheets redefine for the dark scheme; the theme
   switch (tool-theme.js) rewrites the colour-scheme queries of /assets/ sheets, so no own dark block is needed. */
html.tc-lock{overflow:hidden}
.tc-dialog{width:min(560px,calc(100vw - 32px));max-width:560px;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--line-strong,var(--line));border-radius:16px;background:var(--white,var(--paper));color:var(--ink);box-shadow:0 24px 60px rgba(0,0,0,.28);overflow:auto;overscroll-behavior:contain}
.tc-dialog::backdrop{background:rgba(10,14,22,.62)}
.tc-dialog:not([open]){display:none}
.tc-box{padding:22px 22px 20px;min-width:0}
.tc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tc-head h2,.tc-page h1{margin:0 0 6px;font-size:22px;line-height:1.25;letter-spacing:-.3px;font-weight:700}
.tc-x{flex:none;width:40px;height:40px;margin:-6px -8px 0 0;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:26px;line-height:1}
.tc-x:hover{color:var(--ink);background:var(--soft,transparent)}
.tc-dialog .tc-intro,.tc-page .tc-intro{margin:0 0 18px;color:var(--muted);font-size:14px;line-height:1.55}
.tc-form{display:flex;flex-direction:column;gap:14px;min-width:0}
.tc-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.tc-field label{font-size:12px;font-weight:700;letter-spacing:.4px;color:var(--ink)}
.tc-form input[type=text],.tc-form input[type=email],.tc-form select,.tc-form textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;border:1.5px solid var(--line-strong,var(--line));border-radius:10px;background:var(--paper);color:var(--ink);font:inherit;font-size:16px;line-height:1.4}
.tc-form input[type=text],.tc-form input[type=email],.tc-form select{height:46px;padding:0 12px}
.tc-form textarea{min-height:140px;padding:10px 12px;resize:vertical}
.tc-form [aria-invalid=true]{border-color:#c0392b}
.tc-form input:focus-visible,.tc-form select:focus-visible,.tc-form textarea:focus-visible,.tc-dialog button:focus-visible,.tc-page button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.tc-hint,.tc-privacy,.tc-alt{margin:0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.tc-privacy a,.tc-alt a{color:var(--ink);overflow-wrap:anywhere}
.tc-alt{margin-top:14px}
.tc-error{margin:0;font-size:13px;color:#b03024}
.tc-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.tc-status:empty{display:none}
.tc-status p{margin:0}
.tc-status,.tc-notice{padding:10px 12px;border-radius:10px;font-size:14px;line-height:1.5;border:1px solid var(--line)}
.tc-ok{border-color:#2e8b57;background:rgba(46,139,87,.10)}
.tc-bad{border-color:#c0392b;background:rgba(192,57,43,.09)}
.tc-link{margin-top:6px;padding:0;border:0;background:none;color:var(--ink);text-decoration:underline;font:inherit;font-size:13px}
.tc-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding-top:6px}
.tc-primary,.tc-secondary{min-height:46px;padding:10px 18px;border-radius:10px;font-weight:700;font-size:14px}
.tc-primary{border:1px solid var(--ink);background:var(--ink);color:var(--paper)}
.tc-secondary{border:1px solid var(--line-strong,var(--line));background:transparent;color:var(--ink)}
.tc-primary:disabled{opacity:.65;cursor:wait}
.tc-unavailable p{margin:0;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:14px}
.tc-page{max-width:640px;margin:0 auto;padding:40px 0 56px}
.tc-page .tc-notice{margin-bottom:16px}
@media (max-width:480px){
 .tc-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}
 .tc-box{padding:18px 14px 16px}
 .tc-actions{flex-direction:column-reverse}
 .tc-primary,.tc-secondary{width:100%}
 .tc-page{padding:24px 0 40px}
}
@media screen and (prefers-color-scheme:dark){
 .tc-error{color:#ff9a8b}
 .tc-form [aria-invalid=true],.tc-bad{border-color:#ff9a8b}
 .tc-ok{border-color:#6fd8a2}
 .tc-dialog::backdrop{background:rgba(0,0,0,.72)}
}
@media (prefers-reduced-motion:no-preference){.tc-dialog[open]{animation:tc-in .16s ease-out}@keyframes tc-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
