/* MUSAED website — layout and components on top of ds.css (Industry design system).
   Values follow source/ui-mockups/.../MUSAED Website.dc.html. */

:root {
  --font-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --muted-80: color-mix(in srgb, var(--color-text) 80%, transparent);
  --muted-70: color-mix(in srgb, var(--color-text) 70%, transparent);
  --rule-8: color-mix(in srgb, var(--color-text) 8%, transparent);
  --rule-10: color-mix(in srgb, var(--color-text) 10%, transparent);
  --erp: #1a8a9a;
  --edu: #5b1f8a;
  --crm: #f07a10;
  --masar: #7d8f4a;
}
html[lang="ar"] { --font-heading: "IBM Plex Sans Arabic", "Barlow Condensed", system-ui, sans-serif; --font-body: "IBM Plex Sans Arabic", "Barlow", system-ui, sans-serif; }
html { scroll-behavior: smooth; }
body { margin: 0; text-wrap: pretty; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); min-height: 100vh; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-900); }
button { font: inherit; }
@keyframes musaedDot { 0%, 80%, 100% { opacity: .2 } 40% { opacity: 1 } }

.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--color-accent) 7%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--color-accent) 7%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
}
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 64px); }
main, footer { position: relative; z-index: 1; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--color-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-divider); }
.site-header .wrap { padding-block: 12px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 32px; width: auto; display: block; }
.main-nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; }
.main-nav a { border-bottom: 2px solid transparent; padding: 8px 10px; font-weight: 500; font-size: 14px; color: var(--color-text); white-space: nowrap; text-decoration: none; }
.main-nav a:hover { color: var(--color-accent-700); }
.main-nav a[aria-current="page"] { color: var(--color-accent-700); border-bottom-color: var(--color-accent); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.lang-link { font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 10px; color: var(--color-text); }
.lang-link:hover { color: var(--color-accent-700); }
.btn { white-space: nowrap; flex: none; text-decoration: none; }
.btn-lg { padding: 12px 20px; font-size: 16px; }
@media (max-width: 860px) {
  .header-actions .btn-secondary { display: none; }
  .main-nav { order: 3; flex-basis: 100%; }
}

/* Type */
.display { font-family: var(--font-heading); font-weight: 600; line-height: 1.02; letter-spacing: .01em; text-transform: uppercase; margin: 0; }
.display span { display: block; }
.display .acc { color: var(--color-accent-700); }
.display-xl { font-size: clamp(48px, 6.6vw, 92px); }
.display-l { font-size: clamp(44px, 6vw, 80px); }
.display-m { font-size: clamp(42px, 5.6vw, 76px); }
html[lang="ar"] .display { line-height: 1.25; letter-spacing: 0; }
html[lang="ar"] .display-xl { font-size: clamp(40px, 5.6vw, 76px); }
html[lang="ar"] .display-l, html[lang="ar"] .display-m { font-size: clamp(36px, 5vw, 64px); }
.lead { font-size: 17px; line-height: 1.6; max-width: 52ch; margin: 24px 0 0; color: var(--muted-80); }
.kicker { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700); margin-bottom: 12px; }
.rule { height: 1px; background: var(--color-divider); }
.small-caps { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.h-cond { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.section { padding-block: 48px; }
.section-top { padding-top: 72px; padding-bottom: 88px; }

/* Home hero */
.hero { padding-top: 72px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.hero-tags { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--muted-70); }
.sheet-head { display: flex; border-bottom: 1px solid var(--color-divider); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.sheet-head span:first-child { flex: 1; padding: 10px 16px; }
.sheet-head span + span { padding: 10px 16px; border-inline-start: 1px solid var(--color-divider); color: var(--muted-70); }
.arch { position: relative; padding: 28px; }
.arch::before { content: ""; position: absolute; inset-inline: 28px; top: 50%; border-top: 1px dashed var(--color-accent-400); }
.arch::after { content: ""; position: absolute; top: 28px; bottom: 28px; left: 50%; border-left: 1px dashed var(--color-accent-400); }
.arch-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; z-index: 1; }
.arch-cell { background: var(--color-bg); border-color: var(--color-divider); padding: 18px; min-height: 150px; text-align: start; cursor: pointer; color: var(--color-text); display: flex; flex-direction: column; gap: 6px; transition: background .25s; text-decoration: none; }
.arch-cell.on { background: var(--color-accent-100); border-color: var(--color-accent); }
.arch-cell .code { font-family: var(--font-heading); font-weight: 600; font-size: 34px; line-height: 1; margin-top: auto; font-family: "Barlow Condensed", sans-serif; }
.arch-cell .kind { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700); }
.arch-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 104px; height: 104px; background: var(--color-accent); color: var(--color-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; pointer-events: none; z-index: 2; }
.arch-core b { font-family: "Barlow Condensed", var(--font-heading); font-weight: 600; font-size: 20px; letter-spacing: .08em; }
.arch-core small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.readout { border-top: 1px solid var(--color-divider); padding: 14px 16px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; min-height: 72px; }
.readout .small-caps { color: var(--color-accent-700); }
.readout p { flex: 1; min-width: 200px; font-size: 14px; line-height: 1.5; margin: 0; }
@media (max-width: 520px) { .arch-grid { gap: 28px; } .arch-core { width: 84px; height: 84px; } }

/* Product cards */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.prod-card { text-align: start; background: transparent; padding: 24px; display: flex; flex-direction: column; gap: 14px; color: var(--color-text); min-height: 280px; text-decoration: none; }
.prod-card:hover { background: var(--color-accent-100); color: var(--color-text); }
.prod-card .sheet { font-size: 12px; letter-spacing: .08em; font-weight: 600; color: var(--muted-70); }
.code-big { font-family: "Barlow Condensed", var(--font-heading); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: .02em; }
.prod-kind { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-700); margin-top: 8px; font-weight: 600; }
.prod-card p { margin: 0; font-size: 15px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.more { margin-top: auto; display: flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-accent-700); letter-spacing: .04em; text-transform: uppercase; }
.dot-erp { color: var(--erp); } .dot-edu { color: var(--edu); } .dot-crm { color: var(--crm); } .dot-masar { color: var(--masar); }
.pbar { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-inline-end: 8px; }

/* Shared list */
.shared-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.shared-grid > div { padding-block: 24px; padding-inline-end: 20px; border-bottom: 1px solid var(--rule-8); }
.shared-grid .n { font-size: 12px; letter-spacing: .08em; font-weight: 600; color: var(--color-accent-700); }
.shared-grid .t { font-family: var(--font-heading); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; margin: 10px 0 6px; }
.shared-grid .b { font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 75%, transparent); }

/* AI band */
.ai-band { background: var(--color-accent-900); color: var(--color-bg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 36px; align-items: center; }
.ai-band .kicker { color: var(--color-accent-300); margin-bottom: 14px; }
.ai-band h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(32px, 4vw, 52px); line-height: 1.04; text-transform: uppercase; margin: 0; }
html[lang="ar"] .ai-band h2 { line-height: 1.3; }
.ai-band p { font-size: 16px; line-height: 1.6; margin: 18px 0 0; color: var(--color-accent-200); max-width: 46ch; }
.prompt-list { display: flex; flex-direction: column; gap: 10px; }
.prompt-btn { text-align: start; background: transparent; border: 1px solid var(--color-accent-700); color: var(--color-bg); padding: 14px 16px; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.prompt-btn:hover { background: var(--color-accent-800); border-color: var(--color-accent-400); }

/* Products page */
.prod-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; padding: 28px; align-items: start; }
.prod-row .code-huge { font-family: "Barlow Condensed", var(--font-heading); font-weight: 600; font-size: 64px; line-height: 1; margin-top: 10px; }
.prod-row .tagline { font-size: 16px; line-height: 1.6; color: var(--muted-80); }
.mod-list > div { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule-8); font-size: 14px; }
.mod-list .n { color: var(--color-accent-700); font-weight: 600; font-size: 12px; letter-spacing: .06em; padding-top: 2px; }
.prod-row .cta-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.prod-row .cta-col p { font-size: 13px; color: var(--muted-70); margin: 0; }
.chooser a { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--rule-10); color: var(--color-text); text-decoration: none; }
.chooser a:hover { background: var(--color-accent-100); color: var(--color-text); }
.chooser .need { font-size: 17px; line-height: 1.4; }
.chooser .ans { font-family: var(--font-heading); font-weight: 600; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-accent-700); white-space: nowrap; display: flex; align-items: center; gap: 8px; }

/* Product detail */
.tabs { display: flex; border: 1px solid var(--color-divider); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 10px 18px; border-inline-end: 1px solid var(--color-divider); font-family: "Barlow Condensed", var(--font-heading); font-weight: 600; font-size: 16px; letter-spacing: .06em; color: var(--color-text); text-decoration: none; }
.tabs a:last-child { border-inline-end: 0; }
.tabs a[aria-current="page"] { background: var(--color-accent); color: var(--color-bg); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: start; }
.preview-body { padding: 18px; min-height: 300px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--color-divider); }
.kpis > div { padding: 12px; border-inline-end: 1px solid var(--color-divider); }
.kpis > div:last-child { border-inline-end: 0; }
.kpis .l { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted-70); }
.kpis .v { font-family: var(--font-heading); font-weight: 600; font-size: 24px; margin-top: 4px; }
.kpis .d { font-size: 12px; color: var(--color-accent-700); }
.table th { text-align: start; }
.table tr.click { cursor: pointer; }
.num { text-align: end; font-feature-settings: 'tnum' 1; }
.course { width: 100%; text-align: start; background: transparent; border: 1px solid var(--color-divider); padding: 12px 14px; cursor: pointer; color: var(--color-text); display: block; margin-bottom: 12px; }
.course:hover { border-color: var(--color-accent); }
.course .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.course .name { font-weight: 500; font-size: 15px; }
.course .pct { font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.course .who { font-size: 12px; color: var(--muted-70); margin: 2px 0 10px; }
.course .bar { height: 6px; background: var(--color-accent-100); }
.course .bar i { display: block; height: 100%; background: var(--color-accent); transition: width .4s; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kanban .col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kanban .col-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding-bottom: 6px; border-bottom: 2px solid var(--color-divider); }
.kanban .col.won .col-h { border-bottom-color: var(--color-accent); }
.kanban .tot { font-size: 11px; color: var(--muted-70); }
.deal { text-align: start; background: transparent; border: 1px solid var(--color-divider); padding: 8px; cursor: pointer; color: var(--color-text); min-width: 0; }
.deal:hover { border-color: var(--color-accent); }
.kanban .col.won .deal { background: var(--color-accent-100); }
.deal .co { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal .amt { font-size: 12px; color: var(--color-accent-700); }
.gantt-h, .gantt-row { display: grid; grid-template-columns: 130px 1fr; }
.gantt-h { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--muted-70); border-bottom: 1px solid var(--color-divider); padding-bottom: 6px; }
.gantt-h .weeks { display: grid; grid-template-columns: repeat(8, 1fr); }
.gantt-row { width: 100%; align-items: center; padding: 9px 0; background: transparent; border: 0; border-bottom: 1px solid var(--rule-8); cursor: pointer; color: var(--color-text); text-align: start; }
.gantt-row:hover { background: var(--color-accent-100); }
.gantt-row .task { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline-end: 8px; }
.gantt-row .track { position: relative; height: 18px; background-image: linear-gradient(90deg, var(--rule-8) 1px, transparent 1px); background-size: 12.5% 100%; }
[dir="rtl"] .gantt-row .track { background-image: linear-gradient(270deg, var(--rule-8) 1px, transparent 1px); }
.gantt-row .bar { position: absolute; top: 2px; bottom: 2px; background: var(--color-accent-100); border: 1px solid var(--color-accent); transition: background .3s; }
.gantt-row.done .bar { background: var(--color-accent); }
.sample-note { font-size: 12px; margin-top: 10px; color: var(--muted-70); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.mod-card { padding: 24px; }
.mod-card .n { font-size: 12px; letter-spacing: .08em; font-weight: 600; color: var(--color-accent-700); }
.mod-card .t { font-family: var(--font-heading); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; margin: 10px 0 8px; }
.mod-card .b { font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.check-list > div { padding: 14px 0; border-bottom: 1px solid var(--rule-8); font-size: 17px; display: flex; gap: 12px; align-items: center; }
.links-list a { width: 100%; display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--rule-8); color: var(--color-text); text-decoration: none; }
.links-list a:hover { background: var(--color-accent-100); color: var(--color-text); }
.links-list .c { font-family: "Barlow Condensed", var(--font-heading); font-weight: 600; font-size: 20px; letter-spacing: .04em; }
.links-list .x { font-size: 15px; line-height: 1.45; }
.mt-88 { margin-top: 88px; }

/* Choice buttons (demo / contact) */
.choice { padding: 10px 16px; border: 1px solid var(--color-divider); background: transparent; color: var(--color-text); cursor: pointer; }
.choice.on { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.choice:disabled { color: var(--color-neutral-500); text-decoration: line-through; cursor: not-allowed; }
.choice-code { font-family: "Barlow Condensed", var(--font-heading); font-weight: 600; font-size: 17px; letter-spacing: .06em; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.days .choice { padding: 10px 4px; text-align: center; }
.days .dow { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.days .dd { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1.1; }
.days .mon { display: block; font-size: 11px; }
.step-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700); margin-bottom: 12px; }
.step-label span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted-70); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.error-box { padding: 12px 14px; border: 1px solid var(--color-accent-700); color: var(--color-accent-900); background: var(--color-accent-100); font-size: 14px; }
.sticky { position: sticky; top: 90px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-8); }
.kv > span:first-child { color: var(--muted-70); }
.kv > span:last-child { text-align: end; }
.agenda { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px 0; font-size: 14px; line-height: 1.5; }
.agenda b { font-family: "Barlow Condensed", var(--font-heading); font-weight: 600; font-size: 16px; color: var(--color-accent-700); }
.ok-badge { width: 48px; height: 48px; background: var(--color-accent); color: var(--color-bg); display: grid; place-items: center; }
.seg-row { display: flex; border: 1px solid var(--color-divider); flex-wrap: wrap; margin-bottom: 20px; }
.seg-row .choice { flex: 1; border: 0; border-inline-end: 1px solid var(--color-divider); white-space: nowrap; font-size: 14px; }
.seg-row .choice:last-child { border-inline-end: 0; }
.channels > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule-10); }
.channels .l { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700); }
.channels .v { font-size: 17px; line-height: 1.45; }
.ask-card { margin-top: 32px; width: 100%; text-align: start; padding: 20px; background: transparent; cursor: pointer; color: var(--color-text); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ask-card:hover { background: var(--color-accent-100); }
[hidden] { display: none !important; }

/* About */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.milestone { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule-8); align-items: baseline; }
.milestone b { font-family: "Barlow Condensed", var(--font-heading); font-weight: 600; font-size: 32px; color: var(--color-accent-700); }
.milestone span { font-size: 17px; line-height: 1.5; }
.about-figure { margin: 0; aspect-ratio: 4/3; background: var(--color-accent-900); display: grid; place-items: center; padding: 32px; }
.about-figure img { width: 80%; height: auto; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 72px; }
.cta-row h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-divider); background: var(--color-bg); }
.foot-grid { padding-top: 48px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 32px; }
.foot-grid img { height: 28px; width: auto; }
.foot-grid p { font-size: 14px; line-height: 1.55; margin: 8px 0 0; color: var(--muted-70); }
.foot-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-col .small-caps { color: var(--color-accent-700); margin-bottom: 4px; }
.foot-col a, .foot-col button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; color: var(--color-text); text-decoration: none; text-align: start; }
.foot-col a:hover, .foot-col button:hover { color: var(--color-accent-700); }
.foot-bottom { padding-top: 16px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted-70); }

/* Chat */
.chat-launch { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 51; padding: 12px 18px; font-size: 16px; box-shadow: var(--shadow-md); }
.chat-panel { position: fixed; inset-inline-end: 20px; bottom: 84px; z-index: 50; width: min(400px, calc(100vw - 40px)); height: min(600px, calc(100vh - 120px)); background: var(--color-bg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--color-divider); }
.chat-head .av { width: 34px; height: 34px; flex: none; }
.chat-head .t { font-family: "Barlow Condensed", var(--font-heading); font-weight: 600; font-size: 18px; letter-spacing: .06em; }
.chat-head .s { font-size: 12px; color: var(--muted-70); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { font-size: 14px; line-height: 1.55; padding: 10px 12px; white-space: pre-wrap; max-width: 90%; }
.msg.user { align-self: flex-end; background: var(--color-accent-100); color: var(--color-accent-900); max-width: 85%; }
.msg.ai { align-self: flex-start; border: 1px solid var(--color-divider); }
.msg.note { align-self: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700); padding: 4px 10px; border: 1px dashed var(--color-accent-400); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border: 1px solid var(--color-divider); }
.typing span { width: 6px; height: 6px; background: var(--color-accent); animation: musaedDot 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
.suggest { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.suggest button { text-align: start; background: transparent; border: 1px solid var(--color-divider); padding: 8px 10px; font-size: 13px; color: var(--color-accent-700); cursor: pointer; }
.suggest button:hover { border-color: var(--color-accent); background: var(--color-accent-100); }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--color-divider); }
.chat-form .input { flex: 1; }
