:root { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1b3330; background: #f6f7f3; font-synthesis: none; --muted: #536a65; --accent: #185e4b; --border: #dce3dc; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, select, input, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #237965; }
button { min-height: 44px; border: 1px solid #b7cac0; border-radius: 10px; padding: 10px 14px; color: #174b3d; background: #f8fbf8; cursor: pointer; font-weight: 600; }
button:hover:enabled { background: #e5f0e8; }
button:disabled { color: #596b62; background: #edf0eb; border-color: #d9e0d8; cursor: default; }
a { color: var(--accent); text-underline-offset: 4px; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: -.045em; font-weight: 550; line-height: 1.13; margin: 8px 0; }
h2 { font-size: 1.03rem; letter-spacing: -.02em; margin: 20px 0 12px; }
h3 { font-size: .94rem; line-height: 1.4; margin: 0 0 9px; }
p { line-height: 1.6; margin: 10px 0; }
small { font-size: .76rem; color: var(--muted); overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: .84rem; }
.alfred-shell { min-height: 100dvh; display: grid; grid-template-columns: 196px minmax(330px, 1fr) minmax(270px, 324px); }
.alfred-sidebar { background: #183a32; padding: 32px 22px; color: #f1f6ed; display: flex; align-items: flex-start; flex-direction: column; }
.alfred-mark { width: 44px; height: 44px; display: grid; place-items: center; background: #dceec8; border-radius: 15px 15px 15px 4px; color: #214e39; font-family: Georgia, serif; font-size: 28px; margin-bottom: 17px; }
.alfred-sidebar > strong { font-size: 1.45rem; letter-spacing: -.04em; }
.alfred-sidebar .muted { color: #c2d1c6; line-height: 1.65; }
.alfred-sidebar nav { display: flex; flex-direction: column; width: 100%; gap: 8px; margin-top: 33px; }
.alfred-sidebar nav a { text-decoration: none; color: #e5f0e6; padding: 13px 10px; border-radius: 9px; min-height: 46px; }
.alfred-sidebar nav a:first-child { background: #2c5145; }
.alfred-sidebar nav a:hover { background: #345d50; }
.sidebar-note { font-size: .77rem; color: #c2d1c6; margin-top: auto; padding-top: 70px; }
.alfred-main { min-width: 0; padding: 35px clamp(20px, 3vw, 48px) 30px; }
.alfred-header { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 12px; }
.eyebrow { font-size: .66rem; font-weight: 700; letter-spacing: .18em; color: #657c70; margin: 0; }
.connection-state { font-size: .7rem; background: #e7eee5; padding: 7px 11px; border-radius: 9px; max-width: 230px; margin: 0; }
.connection-state[data-state="offline"] { color: #7b3a15; background: #ffebd9; }
.demo-banner, .service-banner { font-size: .77rem; border-left: 3px solid #879e58; padding: 10px 13px; background: #edf1df; margin: 22px 0 8px; }
.session-label { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.session-picker { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.session-picker[hidden] { display: none; }
.session-picker input { min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.notice { font-size: .84rem; color: #8a3e1d; }
.notice:empty { display: none; }
.conversation-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 26px 0 15px; }
.conversation-toolbar h2 { margin: 0 auto 0 0; }
.conversation-toolbar button { font-size: .73rem; min-height: 38px; padding: 8px 10px; background: transparent; }
.conversation-messages { min-height: 235px; display: flex; flex-direction: column; gap: 17px; padding: 5px 0 25px; }
.message { max-width: 94%; background: #fff; border: 1px solid #e4e9e0; border-radius: 3px 16px 16px; padding: 17px 20px; box-shadow: 0 2px 8px #23442b04; overflow-wrap: anywhere; }
.message strong { font-size: .76rem; color: #3f6351; }
.message p { font-size: .94rem; white-space: pre-wrap; }
.message-user { align-self: flex-end; background: #e8efdf; border-color: #dce6d2; border-radius: 16px 3px 16px 16px; }
.composer-form { border: 1px solid #c4d4c5; border-radius: 15px; background: #fff; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
.composer-form label { grid-column: 1 / -1; font-size: .8rem; font-weight: 600; }
.composer-form textarea { width: 100%; min-height: 78px; max-height: 350px; resize: vertical; border: 0; background: transparent; padding: 9px 0; color: #243e32; line-height: 1.5; grid-column: 1 / -1; }
.composer-form button { grid-column: 2; color: #fff; background: #215d48; border-color: #215d48; }
.composer-form button:hover:enabled { background: #154732; }
.composer-form button:disabled { background: #e6ece3; color: #576b5d; border-color: #d8e1d3; }
.composer-hint { font-size: .72rem; grid-row: 3; margin: 0; }
.alfred-context { min-width: 0; border-left: 1px solid var(--border); background: #f0f3ec; padding: 26px 22px; }
.alfred-context > h2 { margin-top: 10px; }
.alfred-context label { font-size: .78rem; line-height: 1.5; display: block; margin-bottom: 9px; }
.alfred-context select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid #bccbbc; border-radius: 9px; background: #fff; color: #253d30; }
.alfred-context section { border-top: 1px solid #dbe2d7; margin-top: 23px; }
.context-card { padding: 13px; background: #fff; border: 1px solid #dce4d8; border-radius: 10px; margin: 12px 0; overflow-wrap: anywhere; }
.context-card p { font-size: .79rem; line-height: 1.55; }
.context-card strong { display: block; font-size: .76rem; margin: 10px 0; }
.context-card button { width: 100%; margin-top: 12px; font-size: .78rem; }
.context-card a { display: block; margin-top: 8px; }
.boot-message, #alfred-root > p { margin: 40px; max-width: 60ch; }
.task-form, .device-form { display: grid; gap: 10px; margin-top: 20px; }
.task-form textarea, .device-form input { width: 100%; min-width: 0; padding: 11px; border: 1px solid #bccbbc; border-radius: 9px; background: #fff; color: #253d30; }
.task-form textarea { resize: vertical; min-height: 110px; }
.desktop-media { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 20px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.desktop-media h2, .desktop-media p { flex-basis: 100%; margin: 0; }
.desktop-media p { font-size: .8rem; overflow-wrap: anywhere; }
.desktop-media button { font-size: .8rem; }
.desktop-media video { width: 100%; max-height: 260px; object-fit: contain; background: #10241f; }
.desktop-media video[hidden] { display: none; }
.development-login { display: grid; gap: 14px; max-width: 560px; padding: 28px; margin: 6vh auto; }
.development-login input { width: 100%; padding: 13px; border-radius: 9px; border: 1px solid var(--border); }
@media (min-width: 1500px) { .alfred-shell { grid-template-columns: 220px minmax(330px, 1fr) 350px; } .alfred-main { padding-inline: max(32px, calc((100vw - 1350px) / 2)); } }
@media (max-width: 1100px) { .alfred-shell { grid-template-columns: 160px minmax(0, 1fr); } .alfred-sidebar { grid-row: 1 / 3; padding-inline: 16px; } .alfred-context { grid-column: 2; border-left: 0; border-top: 1px solid var(--border); display: grid; gap: 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .alfred-context > h2, .alfred-context > label, .alfred-context > select, .alfred-context > .muted { grid-column: 1 / -1; } }
@media (max-width: 640px) { .alfred-shell { display: block; } .alfred-sidebar { padding: 15px 20px; display: block; } .alfred-mark { display: inline-grid; width: 33px; height: 33px; font-size: 23px; vertical-align: middle; margin: 0 11px 0 0; } .alfred-sidebar > .muted, .sidebar-note { display: none; } .alfred-sidebar nav { flex-direction: row; margin-top: 14px; gap: 4px; } .alfred-sidebar nav a { padding: 10px; font-size: .8rem; } .alfred-main { padding: 25px 18px; } .alfred-context { padding: 20px 18px; display: block; } .composer-form { display: flex; flex-direction: column; } .composer-hint { order: 4; } .message { max-width: 100%; padding: 15px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
.connection-setup { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 14px 18px; margin: 16px 0; overflow-wrap: anywhere; }
.connection-setup h2 { margin: 0 0 10px; }
.connection-setup p, .conversation-response { font-size: .8rem; color: var(--muted); }
.session-login { display: grid; gap: 14px; max-width: 560px; padding: 28px; margin: 6vh auto; }
.session-login input { width: 100%; padding: 13px; border-radius: 9px; border: 1px solid var(--border); }
