:root { --xp-blue: #0057ca; --xp-light-blue: #3989ed; --xp-border: #003c9f; --panel: #ece9d8; --ink: #1c1c1c; }
* { box-sizing: border-box; }
body { position: relative; isolation: isolate; min-height: 100vh; margin: 0; padding: 38px 16px 54px; overflow: hidden; color: var(--ink); background: #0d2743 url("media/background.jpg") center / cover no-repeat fixed; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 13px; }
body::before, body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; display: none; }
body::before { width: 900px; height: 365px; left: -190px; bottom: -177px; border-radius: 52% 56% 0 0; background: radial-gradient(ellipse at 56% 28%, #b5e273 0 9%, #80c84d 25%, #42942a 70%); box-shadow: 492px 86px 0 -40px #67ae3f, 899px 120px 0 -72px #4b9b30; transform: rotate(-4deg); }
body::after { width: 315px; height: 55px; top: 11%; left: 9%; border-radius: 50%; background: rgba(255,255,255,.72); box-shadow: 495px 77px 0 -13px rgba(255,255,255,.59), 845px -25px 0 -11px rgba(255,255,255,.5); filter: blur(6px); }
.window { width: min(1040px, 100%); min-height: min(650px, calc(100vh - 104px)); margin: auto; display: flex; flex-direction: column; border: 3px solid var(--xp-border); border-radius: 8px 8px 3px 3px; background: var(--panel); box-shadow: 0 0 0 1px #8ec2fa inset, 3px 7px 18px rgba(0, 42, 108, .6); overflow: hidden; }.window.dragging { user-select: none; box-shadow: 5px 12px 22px rgba(0, 42, 108, .7); }.window.minimized, .window.closed { display: none; }.window.maximized { position: fixed !important; inset: 0 0 34px 0 !important; width: auto !important; min-height: 0 !important; margin: 0 !important; border-radius: 0; z-index: 10; }
header { height: 32px; display: flex; justify-content: space-between; align-items: center; padding: 0 5px 0 9px; color: #fff; background: linear-gradient(180deg, #65abf8 0%, #2978df 16%, #0058cb 55%, #0046a9 100%); font-weight: bold; text-shadow: 1px 1px #00317c; cursor: grab; } header:active { cursor: grabbing; }
.brand { display: flex; align-items: center; gap: 7px; letter-spacing: .1px; }.app-icon { width: 16px; height: 16px; display: inline-grid; place-items: center; border: 1px solid #d9f2ff; border-radius: 3px; color: #fff700; background: linear-gradient(135deg, #69c8ff, #1361bc); box-shadow: 1px 1px #003885; font-size: 12px; line-height: 1; }
.window-controls { display: flex; gap: 2px; }.window-controls button { width: 22px; min-width: 22px; height: 20px; display: grid; place-items: center; padding: 0; border: 1px solid #fff; border-radius: 3px; color: #fff; background: linear-gradient(#62aeff, #1768c9); box-shadow: inset 1px 1px rgba(255,255,255,.45); font-size: 14px; line-height: 1; }.window-controls button:hover { background: linear-gradient(#8ec7ff, #2877d6); }.window-controls button:last-child { background: linear-gradient(#f7927e, #c12c10); }.window-controls button:last-child:hover { background: linear-gradient(#ffaf9e, #dc3e1f); }
.app-body { flex: 1; min-height: 0; display: flex; }.chat-entry { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation { flex: 1; min-width: 0; display: flex; flex-direction: column; }.chat { flex: 1; margin: 12px 12px 0; padding: 4px 12px; overflow-y: auto; border: 2px inset #fff; background: linear-gradient(90deg, #fff 0 7px, #f8fbff 7px 100%); box-shadow: inset 1px 1px 2px #b4b4b4; }
.message { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #e2e8f3; line-height: 1.45; }.message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }.prompt { color: #174e9a; font-weight: bold; }.user .prompt { color: #26731f; }.assistant .prompt { color: #925100; }.system { color: #666; font-size: 12px; }
.composer { display: grid; grid-template-columns: 75px 1fr auto; gap: 8px; align-items: start; margin: 12px; padding: 8px; border: 1px solid #c9c5b8; background: linear-gradient(#f8f6ee, #e6e2d2); }.composer label { padding-top: 7px; font-weight: bold; }
textarea { min-width: 0; width: 100%; max-height: calc(5 * 1.4em + 10px); resize: none; padding: 5px; overflow-y: hidden; border: 2px inset #fff; outline: none; color: var(--ink); background: #fff; font: inherit; line-height: 1.4; } textarea:focus { outline: 1px dotted #000; outline-offset: -4px; }
button { min-width: 82px; padding: 5px 12px; border: 2px outset #fff; border-radius: 3px; color: #111; background: linear-gradient(#fff, #ddd9c9); font: inherit; cursor: pointer; } button:hover { background: linear-gradient(#fffde6, #e6d36c); } button:active { border-style: inset; background: #d2cdbd; } button:focus { outline: 1px dotted #000; outline-offset: -4px; } button:disabled { color: #888; cursor: wait; }
.taskbar { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; height: 34px; display: flex; align-items: center; gap: 7px; padding: 2px 8px 2px 0; color: #fff; background: linear-gradient(#428df0, #1d5fc4 48%, #174fb0); box-shadow: inset 0 1px #8cc4ff; font-size: 12px; }.start { align-self: stretch; display: flex; align-items: center; gap: 5px; padding: 0 19px 0 11px; border-radius: 0 15px 15px 0; background: linear-gradient(#55bd4a, #27831e); box-shadow: inset 0 1px rgba(255,255,255,.55), 1px 0 #0c5714; font-weight: bold; font-size: 15px; font-style: italic; cursor: pointer; }.start span { font-size: 19px; color: #ffe548; }.chat-tabs { display: flex; flex: 1; gap: 4px; min-width: 0; overflow-x: auto; }.chat-tab { min-width: 135px; max-width: 220px; overflow: hidden; padding: 5px 10px; border: 1px solid #154caa; border-radius: 3px; color: #ddecff; background: linear-gradient(90deg, #1e5cb4, #3176d2); text-align: left; text-overflow: ellipsis; white-space: nowrap; }.chat-tab.active { color: #fff; border-color: #75baff; background: linear-gradient(#4e94e5, #2567bd); font-weight: bold; }.tray { margin-left: auto; align-self: stretch; display: flex; align-items: center; gap: 9px; padding: 0 13px; border-left: 1px solid #0e4da9; background: rgba(0,70,177,.25); white-space: nowrap; }.start-menu { position: fixed; bottom: 33px; left: 0; z-index: 25; width: 265px; padding: 6px; border: 2px solid #1e65c6; border-radius: 5px 5px 0 0; background: #f4f2e8; box-shadow: 2px -2px 10px rgba(0,35,110,.5); }.start-menu-head { display: flex; align-items: center; gap: 9px; min-height: 58px; margin: -2px -2px 6px; padding: 10px; color: #fff; background: linear-gradient(#4b97ed, #1760bd); font-size: 15px; }.start-menu-head span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 5px; background: #1b78d8; color: #ffea3a; }.start-menu button, .logout-link { width: 100%; display: flex; gap: 11px; align-items: center; padding: 8px 10px; border: 0; border-radius: 0; color: #111; background: transparent; text-align: left; text-decoration: none; }.start-menu button:hover, .logout-link:hover { color: #fff; background: #316ac5; }.start-menu button b, .logout-link b { color: #1459ae; font-size: 17px; }.start-menu button:hover b, .logout-link:hover b { color: #fff; }.start-menu-separator { height: 1px; margin: 6px 4px; background: #d2cfc1; }
.login-screen { position: fixed; z-index: 100; inset: 0; display: grid; grid-template-rows: 1fr auto 1fr; place-items: center; color: #fff; background: radial-gradient(ellipse at 50% 40%, #1976d3, #0045a9 68%); cursor: pointer; }.login-top { align-self: end; width: min(620px, calc(100% - 40px)); padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.8); font-size: 33px; font-weight: bold; letter-spacing: -.8px; text-shadow: 2px 2px #003178; }.login-top small { display: block; margin-top: 3px; font-size: 12px; font-weight: normal; letter-spacing: .2px; }.login-card { width: min(620px, calc(100% - 40px)); display: flex; gap: 22px; align-items: center; padding: 30px 55px; border-radius: 8px; transition: background .15s ease; }.login-card:hover { background: rgba(255,255,255,.1); }.login-avatar { width: 92px; height: 92px; display: grid; flex: 0 0 92px; place-items: center; border: 4px solid #fff; border-radius: 9px; background: linear-gradient(135deg, #74d0ff, #1769c9); box-shadow: 0 2px 4px #002b6c; color: #ffef42; font-size: 55px; }.login-fields { width: 280px; }.login-fields h1 { margin: 0 0 5px; font-size: 21px; }.login-fields p { margin: 0 0 13px; font-size: 12px; line-height: 1.4; }.login-button { margin-top: 2px; color: #fff; border-color: #4c9af2; background: linear-gradient(#5aa8fc, #1560bd); text-shadow: 1px 1px #003178; }.login-button:hover { background: linear-gradient(#75b9ff, #2377d7); }.login-footer { align-self: start; width: min(620px, calc(100% - 40px)); padding-top: 14px; border-top: 1px solid rgba(255,255,255,.5); color: #b9dcff; font-size: 11px; }.login-active .window, .login-active .taskbar { visibility: hidden; }
@media (max-width: 600px) { body { padding: 10px 10px 44px; }.window { min-height: calc(100vh - 54px); }.sidebar { width: 120px; flex-basis: 120px; }.chat-label { font-size: 9px; }.chat-entry { padding: 6px 4px; font-size: 11px; }.message { grid-template-columns: 1fr; gap: 2px; }.composer { grid-template-columns: 1fr auto; }.composer label { grid-column: 1 / -1; padding: 0; }.window-controls { display: none; }.task-button { min-width: 100px; }.start { padding-right: 12px; }.login-card { padding: 20px; gap: 12px; }.login-avatar { width: 60px; height: 60px; flex-basis: 60px; font-size: 36px; }.login-top { font-size: 26px; } }

/* SELVEX brand marks */
.app-icon { width: 17px; height: 17px; object-fit: contain; border: 0; background: transparent; filter: drop-shadow(1px 1px #003885); }
.login-avatar { padding: 8px; color: transparent; }
.login-avatar { overflow: hidden; }
.login-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.25); }
.start { gap: 6px; padding-left: 9px; font-size: 13px; }
.start img { width: 22px; height: 22px; object-fit: contain; }
.task-button { display: flex; align-items: center; gap: 6px; }
.tiny-icon { width: 14px; height: 14px; object-fit: contain; }
.start-menu-head img { width: 30px; height: 30px; object-fit: contain; }
.brand { min-width: 0; padding: 0; border: 0; color: #fff; background: transparent; text-shadow: inherit; }.brand:hover { color: #fff; background: transparent; }.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.brand:focus { outline-color: #fff; }

/* Full-page SELVEX welcome screen */
.login-screen { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #003d9a 0%, #075bbd 45%, #003d9a 100%); }
.login-screen { background-image: radial-gradient(ellipse at 50% 40%, #1976d3, #0045a9 68%); background-repeat: no-repeat; background-position: center; background-size: cover; }
.login-screen::before { content: ""; position: absolute; inset: 0; opacity: .25; background: radial-gradient(ellipse at 12% 85%, #47cbb0 0 8%, transparent 29%), radial-gradient(ellipse at 91% 15%, #69b4f4 0 3%, transparent 22%); }
.login-top { position: absolute; top: 10%; left: 9%; width: auto; min-width: 310px; padding: 0; border: 0; font-size: clamp(32px, 5vw, 62px); }
.login-top small { margin-top: 9px; font-size: 14px; color: #cde7ff; }
.login-card { position: relative; z-index: 1; width: min(760px, calc(100% - 40px)); gap: 32px; margin-top: 8vh; padding: 42px 54px; border: 1px solid rgba(255,255,255,.3); border-radius: 13px; background: linear-gradient(120deg, rgba(27,111,204,.78), rgba(10,67,159,.82)); box-shadow: 0 18px 50px rgba(0,24,89,.35); }
.login-card:hover { background: linear-gradient(120deg, rgba(38,123,216,.88), rgba(12,76,173,.9)); }
.login-avatar { width: 132px; height: 132px; flex-basis: 132px; padding: 14px; border-radius: 16px; }.login-fields { width: min(360px, 100%); }.login-fields h1 { font-size: 28px; }.login-fields p { font-size: 14px; }.login-fields label { display: block; margin: 9px 0 3px; font-size: 12px; font-weight: bold; }.login-fields input { width: 100%; padding: 7px 8px; border: 2px inset #fff; border-radius: 2px; color: #132d60; background: #fff; font: inherit; }.login-button { margin-top: 13px; padding: 8px 16px; font-size: 14px; }
@media (max-width: 600px) { .login-top { top: 8%; left: 8%; font-size: 34px; }.login-card { margin-top: 14vh; padding: 28px; }.login-avatar { width: 75px; height: 75px; flex-basis: 75px; padding: 8px; }.login-fields h1 { font-size: 22px; } }

/* CSS fallback: the workspace opens even if a browser has stale JavaScript. */
.login-button { display: inline-block; text-decoration: none; }
body.login-active:has(#workspace:target) .window, body.login-active:has(#workspace:target) .taskbar { visibility: visible; }
body.login-active:has(#workspace:target) .login-screen { display: none; }
body:has(#login:target) .login-screen { display: flex; }
body:has(#login:target) .window, body:has(#login:target) .taskbar { visibility: hidden; }
