.features-page { font-family: system-ui, sans-serif; color: #243247; align-items: flex-start; padding: 24px 12px; }
.features-page .container { width: min(1100px, 100%); height: auto; min-height: calc(100vh - 48px); overflow: visible; }
.features-page .content-area { height: auto; overflow: visible; padding: 32px; }
.features-page .menu-area { border-radius: 8px 8px 0 0; }
.features-hero { padding: 24px 0; }
.features-eyebrow { color: #245dcc; font-weight: 700; letter-spacing: .08em; font-size: .8rem; margin-bottom: 12px; }
.features-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.3; margin-bottom: 16px; }
.features-hero p, .feature-card p { line-height: 1.7; }
.features-note { margin-top: 14px; color: #526175; font-size: .9rem; }
.demo-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-nav a { color: #174eaf; background: #edf3ff; padding: 10px 16px; border-radius: 24px; text-decoration: none; }
.demo-section { padding-top: 32px; scroll-margin-top: 20px; }
.demo-section > h2 { margin-bottom: 18px; font-size: 1.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature-card { border: 1px solid #dce3ed; border-radius: 12px; padding: 24px; min-width: 0; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card > p { color: #526175; margin-bottom: 18px; }
.demo { background: #f4f7fc; border: 0; border-radius: 8px; padding: 18px; min-width: 0; }
.demo legend { font-weight: 600; padding: 0 4px; }
.demo label { display: block; margin-bottom: 10px; line-height: 1.6; }
.demo input, .demo select, .demo button, dialog button { font: inherit; }
.demo input[type="search"], .demo input[type="text"], .demo input[type="email"], .demo select { width: 100%; min-width: 0; border: 1px solid #8b9ab1; border-radius: 6px; padding: 10px; background: white; color: #243247; }
.demo input[type="checkbox"], .demo input[type="radio"] { width: 20px; height: 20px; vertical-align: middle; accent-color: #245dcc; }
.switch-label input[role="switch"] { appearance: none; width: 44px; height: 26px; border-radius: 20px; border: 2px solid #65758b; background: #65758b; position: relative; cursor: pointer; }
.switch-label input::before { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; background: white; position: absolute; top: 2px; left: 2px; }
.switch-label input:checked { background: #245dcc; border-color: #245dcc; }
.switch-label input:checked::before { left: 20px; }
.demo button, dialog button { background: #245dcc; border: 1px solid #245dcc; border-radius: 6px; color: white; padding: 10px 16px; cursor: pointer; }
.demo button:disabled { opacity: .65; cursor: wait; }
.demo p { margin-top: 12px; font-size: .9rem; }
.demo ul { padding-left: 22px; margin-top: 12px; }
.demo li { padding: 6px 0; overflow-wrap: anywhere; }
.demo input[type="range"], .demo progress { display: block; width: 100%; margin: 12px 0; accent-color: #245dcc; }
.demo progress { height: 20px; }
.input-row { display: flex; gap: 8px; }
#todo-list button { padding: 4px 10px; margin-left: 10px; font-size: .85rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button[aria-selected="false"] { background: white; color: #174eaf; }
.demo details { border-bottom: 1px solid #cbd5e1; padding: 12px 0; }
.demo summary { cursor: pointer; font-weight: 600; }
.features-page dialog { margin: auto; width: min(480px, calc(100% - 32px)); padding: 28px; border: 1px solid #cbd5e1; border-radius: 12px; color: #243247; }
.features-page dialog p { margin: 16px 0; line-height: 1.7; }
.features-page dialog::backdrop { background: rgba(15, 23, 42, .55); }
.features-page :focus-visible { outline: 3px solid #245dcc; outline-offset: 3px; }
.features-page [hidden] { display: none !important; }
.features-page footer { height: auto; min-height: 60px; flex-wrap: wrap; gap: 8px; padding: 16px 20px; border-top: 1px solid #eee; }
@media (max-width: 650px) { .features-page { padding: 0; } .features-page .content-area { padding: 20px 16px; } .features-grid { grid-template-columns: 1fr; } .feature-card { padding: 18px; } }

.input-row input { flex: 1; }
.input-row button { flex-shrink: 0; white-space: nowrap; }
