:root {
      --ink: #18213a;
      --muted: #7f89a5;
      --sidebar: #f7f8fc;
      --canvas: #ffffff;
      --line: #e9ebf3;
      --soft: #f4f6fb;
      --purple: #7167f7;
      --purple-dark: #5149d9;
      --coral: #ff7c70;
      --green: #40c99a;
      --blue: #5d9cf7;
      --violet: #a884f7;
      --shadow: 0 18px 50px rgba(47, 56, 93, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-family: 'DM Sans', sans-serif; }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; background: var(--canvas); }
.sidebar { width: 264px; min-height: 100vh; padding: 28px 18px 20px; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 30px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 21px 'Space Grotesk', sans-serif; letter-spacing: -.6px; }
.brand > span:last-child > span { color: var(--purple); }
.brand-mark, .assistant-avatar { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #8b7fff, #5d55dc); }
.brand-mark { width: 31px; height: 31px; border-radius: 10px; font-size: 17px; box-shadow: 0 8px 16px rgba(113,103,247,.25); }
.icon-button { display: inline-grid; place-items: center; background: transparent; color: var(--muted); border-radius: 10px; transition: .2s ease; }
.icon-button:hover { background: #e9eaff; color: var(--purple-dark); }
.sidebar-close { display: none; font-size: 22px; }
.new-chat { display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px 13px; background: var(--purple); color: #fff; border-radius: 12px; text-align: left; font-weight: 600; box-shadow: 0 9px 18px rgba(113,103,247,.2); transition: .2s ease; }
.new-chat:hover { background: var(--purple-dark); transform: translateY(-1px); }
.new-chat span { font-size: 20px; line-height: 0; font-weight: 400; }
.new-chat kbd { margin-left: auto; opacity: .7; font-size: 10px; font-weight: 500; }
.main-nav { display: grid; gap: 5px; margin: 28px 0 25px; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 9px; color: #707a98; font-size: 13px; font-weight: 600; }
.nav-item:hover, .nav-item.active { color: var(--purple-dark); background: #ecebff; }
.nav-icon { width: 18px; text-align: center; font-size: 17px; font-weight: 400; }
.nav-count { margin-left: auto; min-width: 20px; padding: 2px 5px; border-radius: 8px; background: #dfdfff; color: var(--purple-dark); font-size: 10px; text-align: center; }
.section-label { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 11px; color: #a0a7ba; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.add-class { width: 22px; height: 22px; border-radius: 7px; color: #9ba2b7; background: transparent; font-size: 17px; }
.add-class:hover { background: #e4e5f8; color: var(--purple); }
.class-list { display: grid; gap: 4px; }
.class-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; color: #6d7693; background: transparent; border-radius: 9px; text-align: left; font-size: 12px; font-weight: 600; }
.class-item:hover, .class-item.active { color: var(--ink); background: #fff; box-shadow: 0 5px 15px rgba(60,68,100,.05); }
.class-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.coral { background: var(--coral); }.blue { background: var(--blue); }.green { background: var(--green); }.violet { background: var(--violet); }
.class-more { margin-left: auto; color: #c5c9d7; letter-spacing: 1px; opacity: 0; }.class-item:hover .class-more { opacity: 1; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.mini-profile { display: flex; align-items: center; gap: 9px; padding: 5px 6px; }.mini-profile strong, .mini-profile small { display: block; }.mini-profile strong { font-size: 12px; }.mini-profile small { margin-top: 3px; color: var(--muted); font-size: 10px; }.mini-profile .icon-button { margin-left: auto; font-size: 14px; }
.avatar { display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #ff9e82, #7167f7); font-weight: 700; }.mini-profile .avatar { width: 29px; height: 29px; font-size: 12px; }.avatar.small { width: 31px; height: 31px; font-size: 12px; }

.main-panel { min-width: 0; flex: 1; background: #fff; }
.topbar { height: 82px; padding: 0 5.7%; display: flex; align-items: center; border-bottom: 1px solid var(--line); }.menu-button { display: none; margin-right: 14px; font-size: 19px; }.breadcrumb { display: flex; align-items: center; gap: 10px; color: #b3b8c8; font-size: 12px; }.breadcrumb strong { color: var(--ink); font-weight: 700; }.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }.top-actions .icon-button { width: 30px; height: 30px; font-size: 22px; }
.content-wrap { width: min(930px, 88%); margin: 0 auto; padding: 48px 0 42px; }.welcome-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.eyebrow { margin: 0 0 9px; color: var(--purple); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }.welcome-row h1 { margin: 0; font: 700 clamp(30px, 4vw, 43px)/1.13 'Space Grotesk', sans-serif; letter-spacing: -1.7px; }.welcome-row h1 em { color: var(--purple); font-style: normal; }.date-card { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 7px 22px rgba(42,48,85,.04); }.date-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #fff; background: #ffe2dc; color: #f28170; font-size: 18px; }.date-card small, .date-card strong { display: block; }.date-card small { color: var(--muted); font-size: 10px; }.date-card strong { margin-top: 3px; font-size: 12px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 37px 0 30px; }.stat-card { position: relative; min-height: 132px; padding: 18px 19px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.stat-label { display: block; color: #a1a8bb; font-size: 9px; font-weight: 700; letter-spacing: .9px; }.stat-card strong { display: block; margin: 12px 0 4px; font: 700 27px 'Space Grotesk', sans-serif; }.stat-card strong small { color: #a5abbc; font: 500 12px 'DM Sans', sans-serif; }.stat-trend { color: #42bc93; font-size: 10px; font-weight: 600; }.stat-trend.neutral { color: #a0a8bb; font-weight: 500; }.progress-bar { width: 100%; height: 5px; margin-top: 15px; overflow: hidden; border-radius: 8px; background: #eff0f7; }.progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9b91ff, var(--purple)); }.week-dots { display: flex; gap: 6px; margin-top: 16px; }.week-dots i { width: 15px; height: 5px; border-radius: 4px; background: #eceef5; }.week-dots i.done { background: #8e85fb; }.accent-card { background: linear-gradient(140deg, #fbfaff, #f5f2ff); border-color: #e9e5ff; }.streak-spark { position: absolute; right: 12px; bottom: 24px; color: #b6adff; font-size: 17px; letter-spacing: 1px; transform: rotate(-7deg); }
.chat-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f1f6; }.assistant-id { display: flex; align-items: center; gap: 10px; }.assistant-avatar { width: 33px; height: 33px; border-radius: 11px; font-size: 16px; }.assistant-id strong, .assistant-id span { display: block; }.assistant-id strong { font-size: 13px; }.assistant-id span { margin-top: 3px; color: var(--muted); font-size: 10px; }.assistant-id span i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--green); }.more-button { padding: 6px 8px; color: #a3aabd; background: transparent; letter-spacing: 2px; }.messages { min-height: 238px; max-height: 390px; padding: 26px 25px 18px; overflow-y: auto; }.message { display: flex; align-items: flex-start; gap: 10px; max-width: 90%; margin-bottom: 20px; }.message-avatar { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 8px; color: #fff; background: #8b82fb; font-size: 12px; }.bubble { padding: 13px 16px; border-radius: 4px 14px 14px 14px; background: #f6f7fb; color: #4d5874; font-size: 12px; line-height: 1.6; }.bubble p { margin: 0; }.bubble strong { color: var(--ink); }.quick-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }.quick-actions button { padding: 7px 10px; border: 1px solid #e4e2ff; border-radius: 8px; color: var(--purple-dark); background: #fff; font-size: 10px; }.quick-actions button:hover { border-color: var(--purple); background: #f1f0ff; }.message.user { justify-content: flex-end; max-width: 78%; margin-left: auto; }.message.user .bubble { border-radius: 14px 4px 14px 14px; color: #fff; background: var(--purple); }.message.user .message-avatar { order: 2; background: #ff9989; }
.composer { margin: 0 18px 17px; padding: 13px 14px 10px; border: 1px solid #dfe1eb; border-radius: 13px; background: #fff; transition: .2s; }.composer:focus-within { border-color: #aaa4ff; box-shadow: 0 0 0 3px #efeeff; }.composer-tools { display: flex; gap: 8px; align-items: center; }.composer-tools button { width: 25px; height: 25px; border: 1px solid #dfe2ec; border-radius: 8px; color: #848da7; background: #fafbfe; font-size: 16px; }.composer-hint { color: #b2b7c7; font-size: 11px; }.composer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }.shortcut-hint { color: #bbc0ce; font-size: 9px; }.send-button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: var(--purple); font-size: 17px; }.send-button:hover { background: var(--purple-dark); }.template-note { margin: 17px 2px 0; color: #a9afc0; font-size: 10px; text-align: center; }.template-note span { color: var(--purple); margin-right: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 5; padding: 11px 16px; border-radius: 10px; color: #fff; background: #222a43; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .25s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 800px) { .sidebar { position: fixed; left: -280px; z-index: 10; transition: left .25s ease; box-shadow: 15px 0 40px rgba(31,37,67,.12); }.sidebar.open { left: 0; }.sidebar-close { display: inline-grid; }.menu-button { display: inline-grid; }.content-wrap { width: min(92%, 650px); padding-top: 35px; }.topbar { padding: 0 4%; }.stats-row { grid-template-columns: 1fr; gap: 10px; }.stat-card { min-height: 110px; }.welcome-row { display: block; }.date-card { width: fit-content; margin-top: 22px; }.shortcut-hint { display: none; } }
@media (max-width: 480px) { .content-wrap { width: 92%; }.top-actions .icon-button { display: none; }.welcome-row h1 { font-size: 32px; }.messages { padding: 20px 15px 10px; }.composer { margin: 0 11px 12px; }.quick-actions { display: grid; }.quick-actions button { text-align: left; } }
