:root{font-family:Roboto,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:var(--text-primary, #2c3e50);background-color:#f9fafb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body.dark-mode{background-color:#111827;color:var(--text-primary, #e2e8f0)}a{font-weight:500;color:var(--primary-color, #3b82f6);text-decoration:inherit}a:hover{color:var(--primary-hover, #2563eb)}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}h1,h2,h3,h4,h5,h6{color:var(--text-primary, #2c3e50);line-height:1.2;margin-top:0;margin-bottom:1rem}.dark-mode h1,.dark-mode h2,.dark-mode h3,.dark-mode h4,.dark-mode h5,.dark-mode h6{color:var(--text-primary, #e2e8f0)}button{border-radius:8px;border:1px solid transparent;padding:.75rem 1.2rem;font-size:1rem;font-weight:500;font-family:inherit;background-color:var(--primary-color, #3b82f6);color:#fff;cursor:pointer;transition:background-color .25s,border-color .25s,transform .1s;min-height:44px;min-width:44px;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,.1)}button:hover{background-color:var(--primary-hover, #2563eb)}button:active{transform:translateY(1px)}button:focus,button:focus-visible{outline:3px solid var(--focus-ring, rgba(59, 130, 246, .3));outline-offset:2px}button:disabled{opacity:.6;cursor:not-allowed;transform:none}a{min-height:44px;display:inline-flex;align-items:center}@media (max-width: 768px){html{font-size:16px}h1{font-size:1.75rem}h2{font-size:1.5rem}h3{font-size:1.25rem}h4{font-size:1.125rem}button{padding:.875rem 1.2rem}}@media (hover: none) and (pointer: coarse){button:hover{background-color:var(--primary-color, #3b82f6)}a:hover{color:var(--primary-color, #3b82f6)}}:root{--primary-color: #3b82f6;--primary-hover: #2563eb;--text-primary: #2c3e50;--text-secondary: #4a5568;--text-muted: #64748b;--placeholder: #a0aec0;--border: #ddd;--bg-primary: #ffffff;--bg-secondary: #f8fafc;--bg-input: #ffffff;--bg-disabled: #f1f5f9;--error: #e53e3e;--success: #10b981;--shadow: rgba(0, 0, 0, .1);--focus-ring: rgba(59, 130, 246, .3)}.dark-mode{--primary-color: #4f96ff;--primary-hover: #3b82f6;--text-primary: #e2e8f0;--text-secondary: #cbd5e1;--text-muted: #94a3b8;--placeholder: #64748b;--border: #4b5563;--bg-primary: #1e293b;--bg-secondary: #111827;--bg-input: #1f2937;--bg-disabled: #2d3748;--error: #f87171;--success: #34d399;--shadow: rgba(0, 0, 0, .25);--focus-ring: rgba(96, 165, 250, .4)}body,body *{transition:background-color .3s,border-color .3s,color .3s,box-shadow .3s}#root{max-width:1280px;margin:0 auto;padding:1rem;text-align:center;font-family:Roboto,Segoe UI,Arial,sans-serif;color:var(--text-primary)}.logo{height:4em;padding:1em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:1rem}.form-layout{display:flex;flex-direction:column;gap:1.5rem}.form-instructions{background-color:var(--bg-secondary);border-radius:8px;padding:1rem;text-align:left;box-shadow:0 2px 8px var(--shadow);order:2}.form-instructions h3{color:var(--primary-color);margin-bottom:1rem;font-size:1.2rem;border-bottom:1px solid var(--border);padding-bottom:.5rem}.instruction-section{margin-bottom:1rem}.instruction-section h4{color:var(--text-primary);margin-bottom:.5rem;font-size:1rem}.instruction-section p{margin-bottom:.5rem;color:var(--text-secondary);font-size:.85rem;line-height:1.4}.instruction-section ul{margin:.5rem 0 .5rem 1rem;padding-left:1rem}.instruction-section li{margin-bottom:.3rem;color:var(--text-secondary);font-size:.85rem;line-height:1.4}.form{display:flex;flex-direction:column;gap:1rem;order:1}.read-the-docs{color:#888}form{display:flex;flex-direction:column;gap:1rem}.form-container{background-color:var(--bg-primary);border-radius:8px;box-shadow:0 4px 12px var(--shadow);padding:1rem;margin:1rem auto;max-width:1200px}.form h2{color:var(--text-primary);text-align:center;margin-bottom:1.5rem;font-size:1.5rem}.form-row{display:flex;flex-direction:column;gap:1rem}.form-group{display:flex;flex-direction:column;margin-bottom:.5rem}label{font-weight:600;margin-bottom:.5rem;color:var(--text-secondary);font-size:.9rem}input,select{padding:.875rem;border:1px solid var(--border);border-radius:6px;font-size:1rem;transition:border-color .3s,box-shadow .3s;background-color:var(--bg-input);color:var(--text-primary);min-height:44px;-webkit-appearance:none;-moz-appearance:none;appearance:none}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}input:focus,select:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px var(--focus-ring)}input::placeholder{color:var(--placeholder)}input:disabled,select:disabled{background-color:var(--bg-disabled);cursor:not-allowed}.input-help{font-size:.75rem;margin-top:.25rem;color:var(--text-muted)}.error-message{color:var(--error);font-size:.9rem;margin-top:.5rem;display:block;text-align:center;padding:.75rem;background-color:#ef44441a;border-radius:4px}.field-error{border-color:var(--error)!important}.error-text{color:var(--error);font-size:.75rem;margin-top:.25rem}.submit-button{background-color:var(--primary-color);color:#fff;border:none;border-radius:6px;padding:1rem 1.5rem;font-size:1.1rem;font-weight:600;cursor:pointer;transition:background-color .3s,transform .1s;margin-top:1rem;align-self:stretch;min-height:48px}.submit-button:hover{background-color:var(--primary-hover)}.submit-button:active{transform:translateY(1px)}.submit-button:disabled{background-color:#93c5fd;cursor:not-allowed}.response-container{margin-top:2rem;padding:1.5rem;background-color:var(--bg-secondary);border-radius:8px;border-left:4px solid var(--primary-color)}.response-container h3{color:var(--text-primary);margin-bottom:1rem;font-size:1.3rem}.prediction-item{display:flex;justify-content:space-between;padding:.75rem;border-bottom:1px solid var(--border)}.prediction-item:last-child{border-bottom:none}.prediction-label{font-weight:600;color:var(--text-secondary)}.prediction-value{font-weight:500}.prediction-value.positive{color:var(--error)}.prediction-value.negative{color:var(--success)}.theme-toggle{position:fixed;top:1rem;right:1rem;background-color:var(--bg-secondary);border:1px solid var(--border);color:var(--text-primary);width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 5px var(--shadow);z-index:10;transition:all .3s ease}.theme-toggle:hover{transform:scale(1.1)}.theme-toggle svg{width:24px;height:24px}.turnstile-loading{display:flex;align-items:center;justify-content:center;padding:1rem;background-color:var(--bg-secondary);border:1px dashed var(--border);border-radius:4px;color:var(--text-muted);font-size:.9rem;margin-top:.5rem}#turnstile-widget{margin-top:.5rem;display:flex;justify-content:center}#turnstile-widget iframe{border-radius:4px;max-width:100%}.dark-mode #turnstile-widget{filter:brightness(.9)}.results-container{background-color:var(--bg-primary);border-radius:8px;box-shadow:0 4px 12px var(--shadow);padding:1rem;margin:0 auto;max-width:1200px}.results-container h2{color:var(--text-primary);margin-bottom:1.5rem;font-size:1.5rem;text-align:center}.results-layout{display:flex;flex-direction:column;gap:1.5rem}.patient-data{background-color:var(--bg-secondary);border-radius:8px;padding:1rem;box-shadow:0 2px 8px var(--shadow);order:2}.patient-data h3{color:var(--primary-color);margin-bottom:1rem;font-size:1.2rem;text-align:center;border-bottom:1px solid var(--border);padding-bottom:.5rem}.data-grid{display:flex;flex-direction:column;gap:.5rem}.data-row{display:flex;flex-direction:column;padding:.75rem;border-bottom:1px solid var(--border);background-color:var(--bg-primary);border-radius:4px;margin-bottom:.5rem}.data-row:last-child{margin-bottom:0}.data-label{font-weight:600;color:var(--text-secondary);margin-bottom:.25rem;font-size:.85rem}.data-value{color:var(--text-primary);font-size:.95rem}.prediction-results{background-color:var(--bg-secondary);border-radius:8px;padding:1rem;box-shadow:0 2px 8px var(--shadow);order:1}.prediction-results h3{color:var(--primary-color);margin-bottom:1rem;font-size:1.2rem;text-align:center;border-bottom:1px solid var(--border);padding-bottom:.5rem}.algorithm-results{display:grid;grid-template-columns:1fr;gap:.75rem;margin-bottom:1rem}.algorithm-result{background-color:var(--bg-primary);border-radius:8px;padding:1rem;text-align:center;box-shadow:0 2px 4px var(--shadow);transition:transform .2s ease}.algorithm-result:hover{transform:translateY(-2px)}.algorithm-result h4{color:var(--text-primary);margin-bottom:.75rem;font-size:.95rem}.algorithm-result .prediction-value{font-size:1.1rem;font-weight:700;padding:.5rem;border-radius:4px;display:inline-block;width:100%}.prediction-value.positive{background-color:#e53e3e1a;color:var(--error)}.prediction-value.negative{background-color:#10b9811a;color:var(--success)}.summary-section{background-color:var(--bg-primary);border-radius:8px;padding:1rem;margin-top:1rem;border-left:4px solid var(--primary-color)}.summary-section h4{color:var(--text-primary);margin-bottom:.5rem;font-size:1rem}.summary-section p{color:var(--text-secondary);font-size:.9rem;line-height:1.5}.actions{margin-top:1rem;display:flex;justify-content:center}.back-button{background-color:var(--bg-secondary);border:1px solid var(--border);color:var(--text-secondary);border-radius:6px;padding:.875rem 1.5rem;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s ease;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;width:100%;max-width:200px}.back-button:hover{background-color:var(--bg-primary);color:var(--primary-color);border-color:var(--primary-color)}@media (min-width: 768px){#root,.card{padding:2rem}.form-container{padding:2rem;margin:2rem auto}.results-container{padding:2rem}.logo{height:5em;padding:1.25em}.form h2,.results-container h2{font-size:1.6rem}.form-layout{flex-direction:row;gap:2rem}.form-instructions{flex:1;min-width:300px;position:sticky;top:1rem;height:fit-content;order:1;padding:1.5rem}.form{flex:1.5;min-width:300px;order:2}.form-row{flex-direction:row;justify-content:space-between}.algorithm-results{grid-template-columns:repeat(2,1fr)}.results-layout{flex-direction:row;gap:2rem}.patient-data{flex:1;min-width:300px;order:1;padding:1.5rem}.prediction-results{flex:1.5;min-width:350px;order:2;padding:1.5rem}.data-row{flex-direction:row;align-items:center}.data-label{flex:1;text-align:left;margin-bottom:0}.data-value{flex:1;text-align:right}.back-button{width:auto}.submit-button{align-self:center;max-width:200px}}@media (min-width: 1024px){.logo{height:6em;padding:1.5em}.form h2,.results-container h2{font-size:1.8rem}.form-instructions h3,.patient-data h3,.prediction-results h3{font-size:1.3rem}.algorithm-results{grid-template-columns:repeat(3,1fr)}.instruction-section p,.instruction-section li{font-size:.9rem}input,select{padding:.75rem}.submit-button{padding:.75rem 1.5rem;font-size:1rem}}@media (min-width: 1200px){.algorithm-results{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media (prefers-contrast: high){:root{--border: #000000;--shadow: rgba(0, 0, 0, .5)}.dark-mode{--border: #ffffff;--shadow: rgba(255, 255, 255, .3)}}@media print{.theme-toggle,.form-instructions,.back-button{display:none}}
