.tools-native{margin:1.5rem 0 2.5rem;color:hsl(var(--foreground))}
.tools-native .tools-form{display:block}
.tools-native .tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.tools-native .tools-field{min-width:0}
.tools-native .tools-field-wide{grid-column:1/-1}
.tools-native .tools-field label,.tools-native .tools-repeat-row label{display:block;font-size:.875rem;font-weight:500;margin:0 0 .4rem}
.tools-native input,.tools-native textarea,.tools-native select{box-sizing:border-box;width:100%;min-height:42px;padding:.6rem .75rem;background:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:6px;font:inherit;color:inherit}
.tools-native input[type=checkbox]{width:auto;min-height:auto}
.tools-native input[type=color]{padding:.2rem;max-width:120px}
.tools-native textarea{resize:vertical;line-height:1.5}
.tools-native input:focus,.tools-native select:focus,.tools-native textarea:focus{outline:2px solid hsl(var(--ring));outline-offset:2px}
.tools-native button{cursor:pointer;min-height:44px;border:1px solid hsl(var(--border));border-radius:6px;background:hsl(var(--background));color:hsl(var(--foreground));padding:.55rem 1rem;font:inherit;font-size:.875rem}
.tools-native button:hover{background:hsl(var(--accent))}
.tools-native button:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}
.tools-native button:disabled{opacity:.5;cursor:not-allowed}
.tools-native button.tools-primary{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-color:hsl(var(--primary))}
.tools-native .tools-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}
.tools-native .tools-result{margin-top:1.5rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.tools-native .tools-result-card,.tools-native .tools-preview{border:1px solid hsl(var(--border));border-radius:12px;padding:1.5rem;min-width:0;background:hsl(var(--background))}
.tools-native .tools-result-card h3{font-size:.875rem;font-weight:500;margin:0 0 .75rem;color:hsl(var(--muted-foreground))}
.tools-native .tools-result-card pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:0 0 .75rem}
.tools-native .tools-result-card img,.tools-native canvas,.tools-native img{max-width:100%;height:auto}
.tools-native .tools-picker{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.tools-native .tools-picker button[aria-pressed=true]{background:hsl(var(--primary)/.12);border-color:hsl(var(--primary))}
.tools-native .tools-picker button{font-size:1.3rem}
.tools-native .tools-repeat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:.75rem;align-items:end;margin:1rem 0}
.tools-native .tools-error{color:hsl(var(--destructive));margin:1rem 0}
.tools-native .tools-status{font-size:.875rem;color:hsl(var(--muted-foreground))}
.tools-native .tools-bio-preview{border:1px solid hsl(var(--border));border-radius:12px;width:100%;min-height:400px;grid-column:1/-1}
.tools-native [hidden]{display:none!important}
.tools-native :is(code,.tools-native pre){overflow-wrap:anywhere}
.tools-native .tools-hint{font-size:.8rem;color:hsl(var(--muted-foreground))}
.tools-native .tools-preview h3{font-size:1.1rem}
.tools-native .tools-preview p{font-size:.875rem;color:hsl(var(--muted-foreground))}
.tools-native .tools-qr-preview{background:hsl(var(--background));padding:1rem;width:max-content;max-width:100%}
@media(max-width:600px){.tools-native .tools-grid,.tools-native .tools-result{grid-template-columns:minmax(0,1fr)}
.tools-native .tools-repeat-row{grid-template-columns:minmax(0,1fr)}
.tools-native button{max-width:100%}
.tools-native .tools-result-card{padding:1.5rem}
.tools-native{margin-top:1rem}
.tools-native .tools-actions>*{flex:1 1 auto}
.tools-native .tools-picker button{flex:0 0 auto}
}


/* Source PercentageCalculator and CharacterWordCounter main states. */
.tools-percentage .tools-mode-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.tools-percentage .tools-mode-buttons button{border-radius:9999px;padding:6px 12px;color:hsl(var(--muted-foreground))}.tools-percentage .tools-mode-buttons button[aria-pressed=true]{color:hsl(var(--primary-foreground));background:hsl(var(--primary));border-color:hsl(var(--primary))}.tools-native .tools-percentage input{min-height:44px;padding:8px 12px;border-radius:12px;font-size:14px}.tools-native .tools-percentage label{margin-bottom:6px}.tools-native .tools-actions>*{flex:none}.tools-native .tools-actions button{border-radius:12px;padding:8px 20px}.tools-percentage .tools-grid{gap:16px}.tools-native .tools-counter-label{display:block;font-size:14px;font-weight:500;margin-bottom:6px}.tools-native #character-counter-text{padding:8px 12px;border-radius:6px;min-height:162px}.tools-native:has(.tools-counter-stats){margin-top:0;margin-bottom:48px}.tools-native .tools-counter-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.tools-counter-stat{border:1px solid hsl(var(--border));border-radius:12px;padding:12px;text-align:center}.tools-counter-stat strong{display:block;font-size:20px;line-height:28px}.tools-counter-stat span{display:block;font-size:12px;line-height:16px;color:hsl(var(--muted-foreground))}.tools-counter-limits{grid-column:1/-1;font-size:14px}.tools-counter-limits p{margin-bottom:8px}.tools-counter-limit{display:flex;gap:12px;align-items:center;margin-top:8px}.tools-counter-limit>span:first-child{width:144px;color:hsl(var(--muted-foreground))}.tools-counter-bar{height:8px;flex:1;border-radius:9999px;background:hsl(var(--muted));overflow:hidden}.tools-counter-bar>i{display:block;height:8px;background:hsl(var(--primary))}
.tools-native #character-counter-text{display:flex;box-shadow:0 1px 2px 0 rgb(0 0 0 / .05)}.tools-native .tools-percentage label,.tools-native .tools-counter-label{line-height:20px}.tools-native .tools-actions button{font-weight:500;line-height:20px}
@media(min-width:640px){.tools-native .tools-counter-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* W72: Source Input and responsive Textarea primitives inside ToolLayout. */
.tools-native input:is([type=text],[type=number],[type=url],[type=email],[type=search],[type=tel],[type=password]){min-height:44px;padding:8px 12px;border-radius:12px;font-size:14px;line-height:20px}
@media(min-width:768px){.tools-native textarea{font-size:14px;line-height:20px}.tools-native #character-counter-text{min-height:138px}}

/* W72 visible review: Source Input placeholder token, without the browser default fade. */
.tools-native input::placeholder,.tools-native textarea::placeholder{color:hsl(var(--muted-foreground));opacity:1}

/* Source Textarea shadow-sm and transparent background, measured in COUNTER_SHADOW_V5. */
.tools-native #character-counter-text{background:transparent;box-shadow:0 1px 3px 0 rgb(0 0 0 / .1),0 1px 2px -1px rgb(0 0 0 / .1)}

/* Source Card primitive on CharacterWordCounter stats. */
.tools-native .tools-counter-stat{border-color:hsl(var(--card-border));background:hsl(var(--card));color:hsl(var(--card-foreground))}

/* Source PercentageCalculator pills are text-sm line20; Input uses flex/h-10 with ToolLayout min44. */
.tools-percentage .tools-mode-buttons button{line-height:20px}
.tools-native input:is([type=text],[type=number],[type=url],[type=email],[type=search],[type=tel],[type=password]){display:flex;height:40px}

/* W73: Source Label primitives use text-sm/line20 and mb-1.5. */
.tools-native .tools-field label,.tools-native .tools-repeat-row label{line-height:20px;margin-bottom:6px}
/* Source CopyButton keeps its text even for icon size; neutral button rules must not override it. */
.tools-native .tools-copy-icon{padding:0;max-width:none;font-weight:500;line-height:20px;background:transparent;border-color:transparent;border-radius:12px;gap:6px;white-space:nowrap}
.tools-native .tools-copy-icon:hover{background:hsl(var(--muted))}

/* Source AdMetricsCalculator, AspectRatioCalculator and ROICalculator layouts. */
.tools-native[data-tool=adMetrics] .tools-field label{margin-bottom:4px}
.tools-native .tools-field-hint{font-size:12px;line-height:16px;color:hsl(var(--muted-foreground));margin-top:4px}
.tools-native[data-tool=adMetrics] .tools-grid,.tools-native[data-tool=aspectRatio] .tools-grid{grid-template-columns:minmax(0,1fr)}
.tools-native[data-tool=roiCalculator] .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tools-native[data-tool=roiCalculator] .tools-field label{line-height:14px;margin-bottom:0;display:inline}
.tools-native[data-tool=roiCalculator] input{margin-top:4px}
.tools-native[data-tool=roiCalculator] .tools-actions{gap:8px}
.tools-native .tools-presets{margin-top:0;margin-bottom:16px;gap:8px}
.tools-native .tools-presets button{border-radius:9999px;padding:6px 12px;font-weight:400;color:hsl(var(--muted-foreground))}
.tools-native:is([data-tool=adMetrics],[data-tool=aspectRatio]) .tools-result{display:block;margin-top:32px}
.tools-native[data-tool=roiCalculator] .tools-result{display:block;margin-top:16px}
.tools-native .tools-source-card{border:1px solid hsl(var(--card-border));background:hsl(var(--card));color:hsl(var(--card-foreground));border-radius:12px;padding:24px}
.tools-native .tools-source-copy{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:12px;padding:0 12px;font-weight:500;line-height:20px;min-height:44px}
.tools-native .tools-metric-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid hsl(var(--border));font-size:14px;line-height:20px}
.tools-native .tools-metric-row+.tools-metric-row{margin-top:8px}
.tools-native .tools-metric-row span:first-child{color:hsl(var(--muted-foreground))}
.tools-native .tools-metric-row span:last-child{font-weight:600}
.tools-native .tools-metric-copy{margin-top:8px;padding-top:12px}
.tools-native .tools-aspect-result{display:flex;align-items:center;justify-content:space-between}
.tools-native .tools-aspect-result p:first-child{font-size:14px;line-height:20px;color:hsl(var(--muted-foreground))}
.tools-native .tools-aspect-result p:nth-child(2){font-size:24px;line-height:32px;font-weight:700}
.tools-native .tools-aspect-result p:nth-child(3){font-size:12px;line-height:16px;color:hsl(var(--muted-foreground))}
.tools-native .tools-roi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tools-native .tools-roi-metric{text-align:center;padding:12px;border-radius:8px;background:hsl(var(--muted)/.5)}
.tools-native .tools-roi-metric p{font-size:12px;line-height:16px;margin-bottom:4px;color:hsl(var(--muted-foreground))}
.tools-native .tools-roi-metric strong{font-size:18px;line-height:28px;font-weight:700}
.tools-native .tools-roi-metric strong[data-positive]{color:var(--color-green-600)}
.tools-native .tools-roi-copy{margin-top:16px;display:flex;justify-content:flex-end}
@media(min-width:640px){.tools-native:is([data-tool=adMetrics],[data-tool=aspectRatio]) .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tools-native .tools-roi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1024px){.tools-native[data-tool=adMetrics] .tools-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Source UsernameChecklist, UTMBuilder and TextCaseConverter are live tools. */
.tools-native[data-tool=username] .tools-grid{display:block}.tools-native[data-tool=username] input{max-width:448px}
.tools-native:is([data-tool=username],[data-tool=textCase]) .tools-result{margin-top:16px;display:block}
.tools-native[data-tool=utm] .tools-result{margin-top:32px;display:block}
.tools-native[data-tool=utm] .tools-field:first-child{grid-column:1/-1}
.tools-native[data-tool=utm] .tools-grid{grid-template-columns:minmax(0,1fr)}
.tools-native[data-tool=textCase] textarea{padding:8px 12px;font-size:14px;line-height:20px;min-height:80px;background:transparent;box-shadow:0 1px 3px rgb(0 0 0 / .1),0 1px 2px -1px rgb(0 0 0 / .1)}
.tools-native .tools-username-rule{display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px}.tools-native .tools-username-rule+.tools-username-rule{margin-top:8px}
.tools-native .tools-text-case-row{padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.tools-native .tools-text-case-row+.tools-text-case-row{margin-top:12px}
.tools-native .tools-text-case-content{min-width:0;flex:1}.tools-native .tools-text-case-content p:first-child{font-size:12px;line-height:16px;color:hsl(var(--muted-foreground));margin-bottom:4px}.tools-native .tools-text-case-content p:last-child{font-size:14px;line-height:20px;word-break:break-all}
.tools-native .tools-text-case-row .tools-source-copy{width:36px;padding:0;border-color:transparent;background:transparent;max-width:none;white-space:nowrap}.tools-native .tools-text-case-row .tools-source-copy svg{width:16px;height:16px;flex-shrink:0}
.tools-native .tools-utm-label{font-size:14px;line-height:20px;color:hsl(var(--muted-foreground));margin-bottom:8px}.tools-native .tools-utm-value{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:14px;line-height:20px;word-break:break-all;background:hsl(var(--muted)/.5);padding:12px;border-radius:6px}.tools-native .tools-utm-copy{margin-top:12px}
@media(min-width:640px){.tools-native[data-tool=utm] .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Source Textarea primitive: text-base then md:text-sm, rows retain natural height. */
.tools-native[data-tool=textCase] textarea{display:flex;font-size:16px;line-height:24px;min-height:44px}
@media(min-width:768px){.tools-native[data-tool=textCase] textarea{font-size:14px;line-height:20px}}

/* Source HookBuilder controls and generated list. */
.tools-native[data-tool=hookBuilder] .tools-grid{grid-template-columns:minmax(0,1fr)}
.tools-native[data-tool=hookBuilder] select{display:flex;height:40px;min-height:44px;font-size:14px;line-height:20px;padding:8px 12px;border-radius:6px}
.tools-native[data-tool=hookBuilder] .tools-result{display:block;margin-top:32px}
.tools-native .tools-hook-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.tools-native .tools-hook-heading h3{font-weight:600}
.tools-native button.tools-hook-row{display:block;width:100%;text-align:left;font-size:14px;line-height:20px;background:hsl(var(--muted)/.5);border:0;border-radius:6px;padding:12px 16px}.tools-native button.tools-hook-row:hover{background:hsl(var(--muted))}.tools-native .tools-hook-row+.tools-hook-row{margin-top:8px}
@media(min-width:640px){.tools-native[data-tool=hookBuilder] .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.tools-native[data-tool=hookBuilder] .tools-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Source CopyButton size=sm is text-xs; its icon remains size4. */
.tools-native .tools-source-copy{font-size:12px;line-height:18px}.tools-native .tools-source-copy svg{width:16px;height:16px;flex-shrink:0}.tools-native .tools-text-case-row .tools-source-copy{font-size:14px;line-height:20px}

/* Focus-visible ring matches Source Input/Textarea, including live-result inputs. */
.tools-native input:is([type=text],[type=number],[type=url],[type=email],[type=search],[type=tel],[type=password]):focus-visible{outline:none;box-shadow:0 0 0 1px hsl(var(--ring))}
.tools-native[data-tool=textCase] textarea:focus-visible{outline:none;box-shadow:0 0 0 1px hsl(var(--ring)),0 1px 3px rgb(0 0 0 / .1),0 1px 2px -1px rgb(0 0 0 / .1)}
