* { -webkit-tap-highlight-color: transparent; }
::selection { background: #1e40af; color: #fff; }
::-moz-selection { background: #1e40af; color: #fff; }

body { max-width: 100%; height: 100% }
.container.outer { display:block; width: 100%; max-width: 700px; margin: 0 auto; padding: 0 15px }
.container.inner { display:block; width: 100%; max-width: 700px; margin: 0 auto 30px; background: #fff; border-radius: 5px; height: auto; min-height: 500px; padding: 20px }
.htu { background: #fff3cd; color: #333; padding: 15px; border-radius: 5px; margin-top: 30px; margin-bottom: 30px; line-height: 150% }

.hlc-section { border-bottom: 1px solid #e5e5e5; padding-bottom: 18px; margin-bottom: 18px; }
.hlc-section:last-of-type { border-bottom: none; }
.hlc-section h3 { margin: 0 0 12px; font-size: 16px; color: #1e40af; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.field-grid.indent { margin-top: 10px; }
.field-grid label { display: flex; flex-direction: column; font-size: 13px; color: #333; gap: 4px; }
.field-grid input, .hlc-section > label > input:not([type="checkbox"]) { border: 1px solid #ccc; border-radius: 4px; padding: 8px 10px; font-size: 14px; font-family: inherit; width: 100%; box-sizing: border-box; }

.hlc-section > label { display: flex; flex-direction: column; font-size: 13px; color: #333; gap: 4px; max-width: 200px; }

.hlc-section > label.checkbox-row { flex-direction: row; align-items: center; max-width: none; }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hidden-field { display: none; }

.hlc-results { background: #eef2ff; border-radius: 6px; padding: 18px; }
.hlc-result-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #dbe1fa; font-size: 14px; }
.hlc-result-row:last-of-type { border-bottom: none; }
.hlc-result-row.hidden-row { display: none; }
.hlc-remaining { font-size: 16px;color: #1e40af; font-weight: 700;}
.hlc-remaining strong { color: #1e40af; }
.hlc-negative strong { color: #c0392b; }
.hlc-note { margin: 10px 0 0; font-size: 12px; color: #666; }

@media (max-width: 600px) {
    .field-grid { grid-template-columns: 1fr; }
    .hlc-result-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
