:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #252929;
    background: #fff;
    font-synthesis: none;
    --teal: #17616c;
    --green: #216b20;
    --border: #dce7e8;
}

* { box-sizing: border-box; }

body { margin: 0; padding: 16px; }

.dashboard {
    display: grid;
    grid-template-columns: 270px minmax(0, 374px);
    gap: 16px;
    max-width: 660px;
    margin: 0 auto;
    align-items: stretch;
}

.panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(135deg, #f9fcfc, #fff);
    box-shadow: 0 0 3px #dce7e866;
    overflow: hidden;
}

.checkout-panel { padding: 12px 13px 24px; }

h1, h2 { margin: 0; color: var(--teal); font-size: 18px; line-height: 1.4; }

h1 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.book-icon { width: 30px; height: 30px; flex-shrink: 0; fill: var(--teal); }
.book-lines { fill: none; stroke: #91b9bf; stroke-width: 1.5; }

table { width: 100%; border-collapse: collapse; text-align: center; }
th, td { border: 1px solid #e0e5e5; }
thead th { background: #edf5f6; padding: 9px 5px; font-size: 14px; white-space: nowrap; }
tbody th { width: 35%; font-size: 16px; font-weight: 600; }
tbody td { width: 65%; }
tbody th label { display: block; padding: 9px 0; }

input { font: inherit; color: inherit; min-width: 0; }
td input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 9px 4px;
    text-align: center;
    font-weight: 600;
    appearance: textfield;
    -moz-appearance: textfield;
}
td input::-webkit-inner-spin-button, td input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.goal-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 4px 20px; font-weight: 600; }
.goal-field input { width: 122px; padding: 8px 10px; border: 1px solid #d8dddd; border-radius: 5px; background: #fff; box-shadow: inset 0 1px 2px #00000008; }

button {
    display: block;
    width: calc(100% - 20px);
    min-height: 42px;
    margin: 0 auto;
    border: 1px solid #138496;
    border-radius: 5px;
    background: linear-gradient(#208495, #147080);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
button:hover { background: #126675; }
button:active { transform: translateY(1px); }
input:focus-visible, button:focus-visible { outline: 3px solid #318da0; outline-offset: 2px; }
td input:focus-visible { outline-offset: -3px; background: #eef9fb; }

.results { display: grid; gap: 18px; align-content: start; min-width: 0; }
.summary-panel h2 { text-align: center; padding: 11px 12px; background: #f1f6f7; border-bottom: 1px solid #e5eded; }
dl { margin: 20px 21px 0; font-size: 16px; font-weight: 600; }
dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
dd { margin: 0; text-align: right; flex-shrink: 0; }
.positive { color: var(--green); }
.low { color: rgb(199, 0, 0)}
.goal-results { margin-top: 20px; padding-top: 20px; border-top: 2px solid var(--border); }
.goal-results > div:last-child { margin-bottom: 24px; }

.performance-panel { margin: 0 6px; padding: 12px 18px 18px; text-align: center; border-color: #cbdfe0; }
.performance-status { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 8px 0; color: var(--green); }
.trophy-icon { width: 54px; height: 54px; fill: currentColor; flex-shrink: 0; }
.trophy-handles { fill: none; stroke: currentColor; stroke-width: 4; stroke-linejoin: round; }
#performanceTitle { margin: 8px 0; font-size: 30px; font-weight: 700; }
#performanceMessage { margin: 8px 0 0; font-size: 18px; font-weight: 600; line-height: 1.7; }

@media (max-width: 620px) {
    body { padding: 12px; }
    .dashboard { grid-template-columns: minmax(0, 1fr); max-width: 400px; }
    .checkout-panel { padding: 16px; }
    td input { min-height: 44px; }
    .performance-panel { margin: 0; }
    dl { margin-left: 16px; margin-right: 16px; font-size: 15px; }
    .performance-status { gap: 16px; }
    #performanceTitle { font-size: 28px; }
}
