/*! CSS Portal — Duplicate Line Finder (builds on code-tool.css and generator-tool.css) */
.df { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.df [hidden] { display: none !important; }
.df span, .df small, .df b, .df code, .df i { line-height: inherit; }
.df .gt-card__head h2 { margin: 0; }
.df-modes { max-width: 100%; flex-wrap: wrap; }
.df-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px 14px; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: var(--ct-radius); }
.df-options .ct-field { margin-left: 0; }
.df-panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.df-text {
	display: block; width: 100%; box-sizing: border-box; height: clamp(280px, 46vh, 520px); min-height: 160px; margin: 0; padding: 12px 14px;
	border: 0; outline: 0; resize: vertical; background: var(--ct-bg); color: var(--ct-text);
	font: 14px/1.7 var(--ct-mono); letter-spacing: normal; white-space: pre; overflow: auto; tab-size: 4;
}
.df-text[readonly] { background: var(--ct-surface); }
.df-text::placeholder { color: var(--ct-muted); font-family: system-ui, sans-serif; }
.df .ct-pane__title b { font-weight: 700; }
.df .ct-status:empty { display: none; }

.df-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.df-stats:empty { display: none; }
.df-stat { --c: var(--ct-text); display: grid; gap: 1px; padding: 10px 14px; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 10px; }
.df-stat b { font-size: 22px; font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; }
.df-stat span { font-size: 12.5px; color: var(--ct-muted); }
.df-stat.is-ok { --c: var(--ct-ok); }
.df-stat.is-warn { --c: var(--ct-warn); }
.df-stat.is-bad { --c: var(--ct-err); }

.df-badge { padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--ct-warn); background: color-mix(in srgb, var(--ct-warn) 14%, transparent); }
.df-badge:empty { display: none; }
.df-report { max-height: 460px; overflow: auto; }
.df-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.df-table th { position: sticky; top: 0; z-index: 1; padding: 9px 14px; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ct-muted); background: var(--ct-surface); border-bottom: 1px solid var(--ct-border); }
.df-table td { padding: 8px 14px; vertical-align: top; border-bottom: 1px solid var(--ct-border); color: var(--ct-text); }
.df-table tr:last-child td { border-bottom: 0; }
.df-table code { font-family: var(--ct-mono); font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.df-table small { display: block; margin-top: 2px; font-size: 12px; color: var(--ct-muted); overflow-wrap: anywhere; }
.df-sp { font-style: normal; color: var(--ct-err); }
.df-n { font-weight: 700; white-space: nowrap; color: var(--ct-warn); font-variant-numeric: tabular-nums; }
.df-rows { font-size: 13px; color: var(--ct-muted); font-variant-numeric: tabular-nums; }
.df-none, .df-more { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px; font-size: 14px; color: var(--ct-muted); }
.df-none i { font-size: 20px; color: var(--ct-ok); }

@media (max-width: 860px) { .df-panes { grid-template-columns: minmax(0, 1fr); } .df-text { height: clamp(200px, 34vh, 360px); } }
@media (max-width: 560px) { .df-table th:last-child, .df-table td:last-child { display: none; } .df-options { gap: 10px 14px; } .df-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .df-stat { padding: 8px 12px; } .df-stat b { font-size: 18px; } }

/* about */
.df-about { margin: 28px 0; }
.df-about h2 { margin: 0 0 14px; }
.df-about__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.df-about__card { padding: 16px 18px; background: var(--ct-bg); border: 1px solid var(--ct-border); border-radius: var(--ct-radius); font-size: 14.5px; line-height: 1.65; }
.df-about__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.df-about__card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--ct-text); }
.df-about__card p { margin: 0 0 10px; }
.df-about__card p:last-child, .df-about__card ul:last-child { margin-bottom: 0; }
.df-about__card ul { margin: 0 0 10px; padding-left: 1.2em; }
.df-about__card li { margin-bottom: 5px; }
.df-about code { font-family: var(--ct-mono); font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--ct-surface-2); }
@media (max-width: 760px) { .df-about__grid { grid-template-columns: minmax(0, 1fr); } }
