html, body { background-color: #FBF9F5; color: #2E282A; font-family: 'Inter', system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp 0.5s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.card { background: white; border-radius: 1rem; box-shadow: 0 1px 2px rgba(46, 40, 42, 0.04), 0 1px 3px rgba(46, 40, 42, 0.06); }
.input-field { height: 48px; border: 1px solid #E8E2D5; border-radius: 0.75rem; padding: 0 1rem; font-size: 1rem; transition: all 0.2s; background: white; min-width: 0; }
.input-field:focus { outline: none; border-color: #D97736; box-shadow: 0 0 0 3px rgba(217, 119, 54, 0.12); }
.btn-primary { background: #D97736; color: white; transition: all 0.2s; }
.btn-primary:hover { background: #C86D51; }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: #2E282A; border: 1px solid #E8E2D5; transition: all 0.2s; }
.btn-ghost:hover { background: #F5EFE6; }
.tab-active { background: #D97736; color: white; }
.tab-inactive { background: #F5EFE6; color: #6B5E5A; }
.checkbox-caramel { accent-color: #D97736; }
.step-number { width: 32px; height: 32px; border-radius: 50%; background: #D97736; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.result-table { border-collapse: separate; border-spacing: 0; }
.result-table th { background: #F5EFE6; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }
.result-table td, .result-table th { padding: 12px 16px; }
.result-table tr:last-child td { border-bottom: none; }
.extra-cost-row { animation: fadeIn 0.3s ease-out; }
.tool-tile { min-height: 220px; background: white; border: 1px solid #E8E2D5; border-radius: 1.25rem; padding: 1.25rem; display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: #2E282A; box-shadow: 0 1px 2px rgba(46, 40, 42, 0.03); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.tool-tile:hover { transform: translateY(-3px); border-color: #D97736; box-shadow: 0 8px 24px rgba(46, 40, 42, 0.08); }
.tool-tile:active { transform: scale(0.98); }
.tool-icon { width: 52px; height: 52px; border-radius: 1rem; background: #F5EFE6; color: #D97736; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.tool-icon svg { width: 26px; height: 26px; }
.tool-title { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.tool-description { margin-top: 0.4rem; font-size: 0.8rem; line-height: 1.45; color: rgba(46, 40, 42, 0.58); }
.tool-status { margin-top: auto; padding-top: 1rem; font-size: 0.75rem; font-weight: 600; color: #D97736; }
.tool-tile-soon { cursor: default; opacity: 0.82; }
.tool-tile-soon:hover { transform: none; border-color: #E8E2D5; box-shadow: 0 1px 2px rgba(46, 40, 42, 0.03); }
.tool-tile-soon .tool-status { color: rgba(46, 40, 42, 0.4); }
@media (max-width: 767px) { body { padding-bottom: 20px; } .tool-tile { min-height: 200px; padding: 1rem; } }
@media (max-width: 420px) { .tool-tile { min-height: 190px; } .tool-description { font-size: 0.75rem; } }

/* Shared navigation: a real relative link also works on GitHub project Pages. */
.home-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid #E8E2D5; border-radius: 0.75rem; color: #6B4B36; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.home-link:hover { background: #F5EFE6; border-color: #D97736; }
.home-link:focus-visible, .tool-tile:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #9D4E23; outline-offset: 3px; }

/* CreamCalc's form and result components. */
[hidden] { display: none !important; }
.cream-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.cream-shapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.cream-shapes label { position: relative; cursor: pointer; }
.cream-shapes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cream-shapes span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.6rem 0.4rem; background: #F5EFE6; border-radius: 0.75rem; color: #6B5E5A; font-size: 0.875rem; font-weight: 600; }
.cream-shapes input:checked + span { background: #D97736; color: white; }
.cream-shapes input:focus-visible + span { outline: 3px solid #9D4E23; outline-offset: 3px; }
.cream-check { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; cursor: pointer; font-size: 0.875rem; font-weight: 600; }
.cream-check input { width: 20px; height: 20px; }
#creamForm fieldset:disabled { opacity: 0.5; }
#creamForm input:disabled { cursor: not-allowed; background: #F5EFE6; }
.input-field[aria-invalid="true"] { border-color: #B42318; }
.cream-errors { border: 1px solid #D92D20; color: #912018; background: #FFF4F2; border-radius: 0.75rem; padding: 1rem; font-size: 0.875rem; scroll-margin-top: 170px; }
.cream-errors p { font-weight: 600; }
.cream-errors ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.5rem; }
.cream-errors li + li { margin-top: 0.25rem; }
.cream-results, #resultsSection { scroll-margin-top: 170px; }
.cream-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid #F5EFE6; font-size: 0.875rem; }
.cream-breakdown dd { text-align: right; white-space: nowrap; font-weight: 600; }
.cream-copy-text { height: auto; padding: 0.75rem; resize: vertical; }
@media (max-width: 360px) { .cream-shapes span { font-size: 0.75rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
