:root {
color-scheme: light;
--bg: #fbfaf7;
--surface: #fffefa;
--soft: #f3efe4;
--text: #1f2933;
--muted: #59636f;
--line: #ddd6c8;
--primary: #0f766e;
--primary-dark: #115e59;
--on-primary: #ffffff;
--accent: #d9f0eb;
--focus: rgba(15, 118, 110, 0.18);
--danger-bg: #fff3ed;
--danger-text: #b45309;
--body-size: 18px;
--control-size: 54px;
--page-pad: 34px;
--gap: 28px;
}
body[data-theme="dark"] {
color-scheme: dark;
--bg: #101513;
--surface: #171f1c;
--soft: #22302b;
--text: #edf5f1;
--muted: #a9b8b1;
--line: #31423b;
--primary: #5eead4;
--primary-dark: #2dd4bf;
--on-primary: #06201c;
--accent: #173832;
--focus: rgba(94, 234, 212, 0.22);
--danger-bg: #3b1d16;
--danger-text: #f59e7d;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-size: var(--body-size);
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", sans-serif;
}
button,
input {
-webkit-tap-highlight-color: transparent;
}
main {
width: min(1180px, calc(100% - 32px));
margin: 0 auto;
padding: var(--page-pad) 0;
}
.header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
padding-bottom: 26px;
border-bottom: 1px solid var(--line);
}
.intro {
max-width: 720px;
}
h1 {
margin: 0 0 8px;
font-size: clamp(1.8rem, 4vw, 2.6rem);
line-height: 1.05;
}
.subtitle {
margin: 0;
color: var(--muted);
max-width: 680px;
line-height: 1.5;
}
.theme-switch {
display: inline-flex;
gap: 4px;
padding: 4px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--surface);
flex: 0 0 auto;
}
.theme-switch button {
min-height: 38px;
border: 0;
border-radius: 999px;
padding: 8px 14px;
background: transparent;
color: var(--muted);
cursor: pointer;
font: inherit;
font-size: 0.9rem;
font-weight: 800;
}
.theme-switch button[aria-pressed="true"] {
background: var(--primary);
color: var(--on-primary);
}
.content {
display: grid;
grid-template-columns: 340px minmax(0, 1fr);
gap: var(--gap);
align-items: start;
padding-top: var(--gap);
}
.form-panel {
padding-right: var(--gap);
border-right: 1px solid var(--line);
}
.field {
display: grid;
gap: 8px;
margin-bottom: 18px;
}
label {
font-weight: 700;
font-size: 0.94rem;
}
.input-wrap {
position: relative;
}
.prefix,
.suffix {
position: absolute;
top: 50%;
transform: translateY(-50%);
color: var(--muted);
pointer-events: none;
}
.prefix {
left: 14px;
}
.suffix {
right: 14px;
}
input {
width: 100%;
min-height: var(--control-size);
border: 1px solid var(--line);
border-radius: 8px;
color: var(--text);
background: var(--surface);
font: inherit;
font-size: max(16px, 1rem);
padding: 10px 14px;
outline: none;
}
input.with-prefix {
padding-left: 32px;
}
input.with-suffix {
padding-right: 34px;
}
input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px var(--focus);
}
.hint {
color: var(--muted);
font-size: 0.84rem;
line-height: 1.4;
}
.results-panel {
min-width: 0;
}
.stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0;
margin-bottom: 24px;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
background: var(--accent);
}
.stat {
padding: 18px 20px;
border-right: 1px solid var(--line);
}
.stat:last-child {
border-right: 0;
}
.stat-label {
display: block;
color: var(--muted);
font-size: 0.84rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.stat-value {
display: block;
margin-top: 8px;
color: var(--primary-dark);
font-size: clamp(1.35rem, 3vw, 2rem);
font-weight: 800;
line-height: 1.1;
overflow-wrap: anywhere;
}
.warning {
display: none;
margin: 0;
background: var(--danger-bg);
color: var(--danger-text);
border-left: 5px solid currentColor;
padding: 16px;
font-weight: 700;
line-height: 1.4;
}
.table-wrap {
max-height: none;
overflow-x: auto;
overflow-y: visible;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
table {
width: 100%;
border-collapse: collapse;
min-width: 680px;
background: var(--surface);
}
th,
td {
padding: 13px 14px;
text-align: right;
border-bottom: 1px solid var(--line);
white-space: nowrap;
}
th:first-child,
td:first-child {
text-align: left;
}
th {
position: sticky;
top: 0;
z-index: 1;
background: var(--soft);
color: var(--text);
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
tbody tr:last-child td {
border-bottom: 0;
}
.load-actions {
display: none;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 16px 0 0;
}
.load-status {
color: var(--muted);
font-size: 0.88rem;
font-weight: 700;
}
.page-status {
display: inline-flex;
align-items: center;
min-height: 34px;
border: 1px solid var(--line);
border-radius: 999px;
padding: 7px 12px;
background: var(--surface);
}
.pagination-controls {
display: none;
gap: 8px;
}
.load-more,
.page-button {
min-height: 40px;
border: 0;
border-radius: 8px;
padding: 9px 16px;
background: var(--primary);
color: var(--on-primary);
cursor: pointer;
font: inherit;
font-size: 0.92rem;
font-weight: 800;
}
.load-more:hover,
.load-more:focus-visible,
.page-button:hover,
.page-button:focus-visible {
background: var(--primary-dark);
}
.load-more:disabled,
.page-button:disabled {
cursor: default;
opacity: 0.56;
}
.back-to-inputs {
display: none;
position: fixed;
right: 16px;
bottom: 16px;
z-index: 5;
min-height: 44px;
border: 0;
border-radius: 999px;
padding: 10px 16px;
background: var(--primary);
color: var(--on-primary);
box-shadow: 0 12px 28px rgba(23, 32, 51, 0.18);
cursor: pointer;
font: inherit;
font-size: 0.92rem;
font-weight: 800;
}
.back-to-inputs:hover,
.back-to-inputs:focus-visible {
background: var(--primary-dark);
}
.back-to-inputs.is-visible {
display: block;
}
.empty {
margin: 0;
color: var(--muted);
line-height: 1.5;
}
@media (max-width: 820px) {
:root {
--page-pad: 18px;
--gap: 24px;
}
main {
width: min(100% - 24px, 620px);
padding: var(--page-pad) 0;
}
.header {
display: grid;
gap: 18px;
padding-bottom: 20px;
}
h1 {
font-size: clamp(1.7rem, 9vw, 2.25rem);
}
.theme-switch {
width: 100%;
}
.theme-switch button {
flex: 1;
}
.content {
grid-template-columns: 1fr;
padding-top: 20px;
}
.form-panel {
padding-right: 0;
padding-bottom: 20px;
border-right: 0;
border-bottom: 1px solid var(--line);
}
.stats {
grid-template-columns: 1fr;
border-bottom: 0;
margin-bottom: 20px;
}
.stat {
border-right: 0;
border-bottom: 1px solid var(--line);
}
.table-wrap {
max-height: none;
overflow: visible;
}
.load-actions {
align-items: stretch;
flex-direction: column;
gap: 10px;
padding-top: 18px;
}
.pagination-controls {
display: none;
}
.page-status {
justify-content: center;
}
.back-to-inputs {
display: none;
}
.back-to-inputs.is-visible {
display: block;
}
}
@media (min-width: 821px) {
.back-to-inputs.is-visible {
display: none;
}
}
@media (max-width: 560px) {
main {
width: min(100% - 16px, 520px);
}
.subtitle {
font-size: 0.96rem;
}
.field {
margin-bottom: 16px;
}
.stats {
background: transparent;
}
.stat {
padding: 14px 0;
}
.stat-value {
font-size: 1.55rem;
}
.warning {
padding: 14px;
}
table {
min-width: 0;
}
thead {
display: none;
}
tbody,
tr,
td {
display: block;
width: 100%;
}
tr {
padding: 12px 0;
border-bottom: 1px solid var(--line);
}
tbody tr:last-child {
border-bottom: 0;
}
td {
display: flex;
justify-content: space-between;
gap: 16px;
border-bottom: 0;
padding: 7px 0;
text-align: right;
white-space: normal;
}
td:first-child {
text-align: right;
font-weight: 800;
}
td::before {
content: attr(data-label);
color: var(--muted);
font-weight: 700;
text-align: left;
}
}
