/* ============================================================================
   TAIIH AI — Core stylesheet
   ----------------------------------------------------------------------------
   Layout and components. All colours come from assets/css/themes.css.
   Design intent: modern + African institutional + technological + clean —
   gold hairlines, deep navy surfaces and the institutional seal, rather than
   generic "futuristic AI" glow effects.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Reset & base
   ------------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--taiih-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--taiih-text);
    background: var(--taiih-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow: hidden; /* the app shell scrolls internally */
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

/* The `hidden` attribute must always win. Without this, any rule that sets a
   display value (e.g. `.welcome { display:flex }`) silently overrides the UA
   stylesheet for [hidden] and the element stays visible. */
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--taiih-primary-light); text-decoration: none; transition: color var(--taiih-transition); }
a:hover { color: var(--taiih-accent); }

h1, h2, h3, h4 {
    font-family: var(--taiih-font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* Visible focus states for keyboard users (accessibility requirement) */
:focus-visible {
    outline: 2px solid var(--taiih-focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--taiih-primary); color: var(--taiih-primary-contrast); }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--taiih-border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: var(--taiih-border-strong);
    border-radius: 99px;
    border: 3px solid transparent;
    background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--taiih-text-muted); background-clip: content-box; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; top: -60px; left: 16px; z-index: 200;
    padding: 10px 16px; border-radius: var(--taiih-radius);
    background: var(--taiih-primary); color: #fff; font-weight: 600;
    transition: top var(--taiih-transition);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------------------
   2. App shell
   ------------------------------------------------------------------------ */
.app {
    display: grid;
    grid-template-columns: var(--taiih-sidebar-width) 1fr;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* ---------------------------------------------------------------------------
   3. Sidebar
   ------------------------------------------------------------------------ */
.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--taiih-sidebar-bg);
    border-right: 1px solid var(--taiih-border);
    overflow: hidden;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--taiih-border);
}

.sidebar__seal {
    width: 44px; height: 44px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: var(--taiih-surface);
    box-shadow: 0 0 0 1px var(--taiih-border-strong), 0 0 22px -6px var(--taiih-seal-glow);
}

.sidebar__brand-text { min-width: 0; }

.sidebar__wordmark {
    font-family: var(--taiih-font-heading);
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--taiih-text);
    white-space: nowrap;
}
.sidebar__wordmark span { color: var(--taiih-accent); }

.sidebar__org {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--taiih-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__section {
    padding: 16px 14px 8px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sidebar__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--taiih-text-muted);
    padding: 0 6px 8px;
}

.sidebar__list {
    list-style: none;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 -4px;
    padding: 0 4px;
}

.sidebar__empty {
    padding: 10px 8px 16px;
    font-size: 0.82rem;
    color: var(--taiih-text-muted);
    line-height: 1.5;
}

.conversation {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    border-radius: var(--taiih-radius-sm);
    border: 1px solid transparent;
    color: var(--taiih-text-secondary);
    text-align: left;
    font-size: 0.875rem;
    transition: background var(--taiih-transition), color var(--taiih-transition), border-color var(--taiih-transition);
}
.conversation:hover { background: var(--taiih-surface-hover); color: var(--taiih-text); }
.conversation[aria-current="true"] {
    background: var(--taiih-surface);
    border-color: var(--taiih-border-strong);
    color: var(--taiih-text);
    box-shadow: inset 3px 0 0 var(--taiih-accent);
}

.conversation__title {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.conversation__meta { font-size: 0.68rem; color: var(--taiih-text-muted); flex: 0 0 auto; }

.conversation__delete {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 6px;
    color: var(--taiih-text-muted);
    opacity: 0;
    transition: opacity var(--taiih-transition), color var(--taiih-transition), background var(--taiih-transition);
}
.conversation:hover .conversation__delete,
.conversation:focus-within .conversation__delete { opacity: 1; }
.conversation__delete:hover { color: var(--taiih-danger); background: var(--taiih-surface-alt); }

.sidebar__footer {
    border-top: 1px solid var(--taiih-border);
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar__nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sidebar__nav a {
    font-size: 0.75rem;
    color: var(--taiih-text-muted);
}
.sidebar__nav a:hover { color: var(--taiih-accent); }

.sidebar__legal {
    font-size: 0.68rem;
    line-height: 1.5;
    color: var(--taiih-text-muted);
}
.sidebar__legal strong { color: var(--taiih-text-secondary); font-weight: 600; }

/* Build credit in the institutional footer */
.sidebar__credit {
    font-size: 0.68rem;
    line-height: 1.5;
    color: var(--taiih-text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--taiih-border);
}
.sidebar__credit a { color: var(--taiih-text-secondary); text-decoration: none; border-bottom: 1px solid var(--taiih-border-strong); }
.sidebar__credit a:hover { color: var(--taiih-accent); border-color: var(--taiih-accent); }

/* Sidebar backdrop (mobile) */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--taiih-overlay);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--taiih-transition), visibility var(--taiih-transition);
}
.sidebar-backdrop.is-visible { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------------------
   4. Main column & header
   ------------------------------------------------------------------------ */
.main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    position: relative;
}

.header {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--taiih-header-height);
    padding: 0 18px;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--taiih-border);
    background: var(--taiih-header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 20;
}

.header__menu { display: grid; }

.header__title {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}
.header__title strong {
    font-family: var(--taiih-font-heading);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header__subtitle {
    font-size: 0.7rem;
    color: var(--taiih-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* Engine status chip */
.engine-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--taiih-border-strong);
    background: var(--taiih-surface);
    font-size: 0.75rem;
    color: var(--taiih-text-secondary);
    max-width: 240px;
    transition: border-color var(--taiih-transition), color var(--taiih-transition);
}
.engine-chip:hover { border-color: var(--taiih-accent); color: var(--taiih-text); }
.engine-chip__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: var(--taiih-text-muted);
    box-shadow: 0 0 0 0 currentColor;
}
.status-dot--online { background: var(--taiih-success); animation: pulse-dot 2.6s ease-in-out infinite; }
.status-dot--offline { background: var(--taiih-text-muted); }
.status-dot--degraded { background: var(--taiih-accent); }

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
    50%      { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

/* ---------------------------------------------------------------------------
   5. Buttons & controls
   ------------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--taiih-radius);
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background var(--taiih-transition), border-color var(--taiih-transition),
                color var(--taiih-transition), transform var(--taiih-transition), box-shadow var(--taiih-transition);
    min-height: 40px; /* comfortable touch target */
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--primary {
    background: linear-gradient(180deg, var(--taiih-primary-light) -40%, var(--taiih-primary) 60%);
    color: var(--taiih-primary-contrast);
    box-shadow: 0 6px 18px -8px rgba(13, 110, 253, 0.75);
}
.btn--primary:hover:not([disabled]) { box-shadow: 0 10px 26px -10px rgba(13, 110, 253, 0.9); }

.btn--accent {
    background: linear-gradient(180deg, var(--taiih-accent-light) -40%, var(--taiih-accent) 60%);
    color: var(--taiih-accent-contrast);
    font-weight: 700;
}
[data-theme="light"] .btn--accent { color: #FFFFFF; }

.btn--ghost {
    background: var(--taiih-surface);
    border-color: var(--taiih-border-strong);
    color: var(--taiih-text-secondary);
}
.btn--ghost:hover:not([disabled]) { background: var(--taiih-surface-hover); color: var(--taiih-text); border-color: var(--taiih-primary); }

.btn--quiet { color: var(--taiih-text-secondary); padding: 8px 10px; }
.btn--quiet:hover { background: var(--taiih-surface-hover); color: var(--taiih-text); }

.btn--block { width: 100%; }

.icon-btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: var(--taiih-radius);
    border: 1px solid var(--taiih-border-strong);
    background: var(--taiih-surface);
    color: var(--taiih-text-secondary);
    transition: background var(--taiih-transition), color var(--taiih-transition), border-color var(--taiih-transition);
}
.icon-btn:hover { background: var(--taiih-surface-hover); color: var(--taiih-text); border-color: var(--taiih-primary); }
.icon-btn svg { width: 18px; height: 18px; }

/* Theme switcher: segmented control */
.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--taiih-border-strong);
    background: var(--taiih-surface);
}
.theme-switch__option {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border-radius: 999px;
    color: var(--taiih-text-muted);
    transition: background var(--taiih-transition), color var(--taiih-transition);
}
.theme-switch__option svg { width: 16px; height: 16px; }
.theme-switch__option:hover { color: var(--taiih-text); }
.theme-switch__option[aria-pressed="true"] {
    background: var(--taiih-primary);
    color: #fff;
    box-shadow: 0 4px 12px -6px rgba(13, 110, 253, 0.9);
}

/* ---------------------------------------------------------------------------
   6. Scroll area (welcome + chat)
   ------------------------------------------------------------------------ */
.scroll-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.pane {
    width: 100%;
    max-width: var(--taiih-content-max);
    margin: 0 auto;
    padding: 32px 24px 24px;
}

/* ---------------------------------------------------------------------------
   7. Welcome screen
   ------------------------------------------------------------------------ */
.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8vh 0 0;
}

/* Institutional plate that carries the TAIIH AI lockup.
   The artwork is painted on a dark ground, so mounting it on a navy plate keeps
   the mark crisp and identical in both themes (and reads as an official emblem
   rather than a floating image). A gold hairline echoes the logo lockup. */
.welcome__plate,
.loader__plate {
    display: inline-grid;
    place-items: center;
    padding: 16px 22px 4px;
    border-radius: 28px;
    background:
        radial-gradient(120% 90% at 50% 8%, rgba(13, 110, 253, 0.18) 0%, rgba(10, 15, 26, 0) 60%),
        linear-gradient(180deg, #0B1220 0%, #070C16 100%);
    border: 1px solid var(--taiih-hairline);
    box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.welcome__lockup {
    width: 184px;
    height: auto;
}

[data-theme="light"] .welcome__plate {
    border-color: rgba(200, 150, 0, 0.5);
    box-shadow: 0 22px 50px -26px rgba(10, 46, 92, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.welcome__eyebrow {
    margin-top: 26px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--taiih-accent);
}

.welcome__title {
    margin-top: 10px;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    color: var(--taiih-text);
}

.welcome__lead {
    margin-top: 14px;
    max-width: 620px;
    font-size: clamp(0.95rem, 1.6vw, 1.06rem);
    color: var(--taiih-text-secondary);
}

.welcome__body {
    margin-top: 10px;
    max-width: 600px;
    font-size: 0.9rem;
    color: var(--taiih-text-muted);
}

/* Gold hairline with the TAIIH diamond motif (echoes the logo lockup) */
.hairline {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 460px;
    margin: 26px auto 0;
}
.hairline__rule {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--taiih-hairline), transparent);
}
.hairline__mark {
    width: 12px; height: 12px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--taiih-accent-light), var(--taiih-accent-dark));
    border-radius: 2px;
    flex: 0 0 auto;
}

.welcome__status { margin-top: 22px; }

.suggestions {
    margin: 34px auto 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.suggestion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    border-radius: var(--taiih-radius-lg);
    border: 1px solid var(--taiih-border);
    background: var(--taiih-surface);
    text-align: left;
    transition: transform var(--taiih-transition), border-color var(--taiih-transition), box-shadow var(--taiih-transition);
}
.suggestion:hover {
    transform: translateY(-2px);
    border-color: var(--taiih-primary);
    box-shadow: var(--taiih-shadow);
}
.suggestion__icon {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--taiih-accent-soft);
    color: var(--taiih-accent);
}
[data-theme="light"] .suggestion__icon { color: var(--taiih-accent-dark); }
.suggestion__icon svg { width: 18px; height: 18px; }
.suggestion__title { font-size: 0.86rem; font-weight: 700; color: var(--taiih-text); }
.suggestion__text { font-size: 0.82rem; color: var(--taiih-text-muted); line-height: 1.5; }

/* ---------------------------------------------------------------------------
   8. Chat thread
   ------------------------------------------------------------------------ */
.thread {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 8px;
}

.message { display: flex; gap: 14px; }

.message__avatar {
    width: 34px; height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.message--assistant .message__avatar {
    background: var(--taiih-surface);
    border: 1px solid var(--taiih-border-strong);
    padding: 4px;
    border-radius: 50%;
}
.message--user .message__avatar {
    background: linear-gradient(160deg, var(--taiih-primary), var(--taiih-primary-dark));
    color: #fff;
    border-radius: 10px;
}

.message__body { min-width: 0; flex: 1 1 auto; }

.message__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.message__author {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--taiih-text-muted);
}
.message--assistant .message__author { color: var(--taiih-accent); }
.message__stamp { font-size: 0.7rem; color: var(--taiih-text-muted); }

.message__content {
    border-radius: var(--taiih-radius-lg);
    padding: 16px 18px;
    font-size: 0.95rem;
    color: var(--taiih-text);
    overflow-wrap: anywhere;
}
.message--assistant .message__content {
    background: var(--taiih-surface);
    border: 1px solid var(--taiih-border);
    border-left: 3px solid var(--taiih-accent);
}
.message--user .message__content {
    background: var(--taiih-user-bubble);
    border: 1px solid var(--taiih-user-bubble-border);
}
.message--user .message__content p + p { margin-top: 0.6em; }

.message__footer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    min-height: 30px;
}

.message__actions { display: flex; gap: 4px; }

.msg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--taiih-text-muted);
    border: 1px solid transparent;
    transition: background var(--taiih-transition), color var(--taiih-transition), border-color var(--taiih-transition);
}
.msg-btn:hover { background: var(--taiih-surface-hover); color: var(--taiih-text); border-color: var(--taiih-border-strong); }
.msg-btn svg { width: 14px; height: 14px; }

/* Metadata chips under an assistant message */
.meta-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--taiih-text-muted);
    background: var(--taiih-surface-alt);
    border: 1px solid var(--taiih-border);
    max-width: 320px;
}
.chip__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* allow the flex item to shrink instead of overflowing the chip */
}
.chip--accent { color: var(--taiih-accent); border-color: var(--taiih-hairline); background: var(--taiih-accent-soft); }
[data-theme="light"] .chip--accent { color: var(--taiih-accent-dark); }
.chip svg { width: 12px; height: 12px; flex: 0 0 auto; }

/* Streaming cursor */
.cursor {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: var(--taiih-accent);
    border-radius: 1px;
    animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Typing indicator (before the first token arrives) */
.typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--taiih-text-muted);
    animation: typing-bounce 1.25s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.16s; }
.typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30%           { transform: translateY(-4px); opacity: 1; }
}

/* Error card inside a message */
.notice {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--taiih-radius);
    font-size: 0.84rem;
    border: 1px solid var(--taiih-border-strong);
    background: var(--taiih-surface-alt);
    color: var(--taiih-text-secondary);
    margin-top: 10px;
}
.notice svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.notice--warning { border-color: var(--taiih-hairline); background: var(--taiih-accent-soft); color: var(--taiih-text); }
.notice--error { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.1); color: var(--taiih-text); }

/* ---------------------------------------------------------------------------
   9. Markdown rendering
   ------------------------------------------------------------------------ */
.md > * + * { margin-top: 0.85em; }
.md h1, .md h2, .md h3, .md h4 { color: var(--taiih-text); }
.md h1 { font-size: 1.4rem; margin-top: 1.1em; }
.md h2 { font-size: 1.2rem; margin-top: 1.1em; }
.md h3 { font-size: 1.04rem; margin-top: 1em; }
.md h4 { font-size: 0.95rem; margin-top: 0.9em; }
.md p { line-height: 1.72; }
.md ul, .md ol { padding-left: 1.35em; }
.md li + li { margin-top: 0.3em; }
.md li::marker { color: var(--taiih-accent); }
.md strong { font-weight: 700; }
.md em { font-style: italic; }
.md a { text-decoration: underline; text-underline-offset: 2px; }
.md hr { border: 0; height: 1px; background: var(--taiih-border-strong); margin: 1.2em 0; }
.md blockquote {
    border-left: 3px solid var(--taiih-accent);
    padding: 2px 0 2px 14px;
    color: var(--taiih-text-secondary);
    font-style: italic;
}
.md code.inline {
    font-family: var(--taiih-font-mono);
    font-size: 0.86em;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--taiih-inline-code-bg);
    color: var(--taiih-inline-code-text);
    border: 1px solid var(--taiih-border);
    word-break: break-word;
}

.md table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    display: block;
    overflow-x: auto;
}
.md th, .md td { border: 1px solid var(--taiih-border-strong); padding: 8px 10px; text-align: left; }
.md th { background: var(--taiih-surface-alt); font-weight: 700; }

/* ---------------------------------------------------------------------------
   10. Code blocks
   ------------------------------------------------------------------------ */
.code-block {
    margin: 1em 0;
    border-radius: var(--taiih-radius);
    border: 1px solid var(--taiih-border-strong);
    background: var(--taiih-code-bg);
    overflow: hidden;
}
.code-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 12px;
    background: var(--taiih-code-header);
    border-bottom: 1px solid var(--taiih-border-strong);
}
.code-block__lang {
    font-family: var(--taiih-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--taiih-text-muted);
    font-weight: 600;
}
.code-block__copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--taiih-border-strong);
    background: var(--taiih-surface);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--taiih-text-secondary);
    transition: background var(--taiih-transition), color var(--taiih-transition), border-color var(--taiih-transition);
}
.code-block__copy:hover { color: var(--taiih-text); border-color: var(--taiih-primary); }
.code-block__copy.is-copied { color: var(--taiih-success); border-color: var(--taiih-success); }
.code-block__copy svg { width: 13px; height: 13px; }

.code-block pre {
    margin: 0;
    padding: 14px 16px;
    overflow-x: auto;
    font-family: var(--taiih-font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    tab-size: 4;
    color: var(--taiih-text);
}
[data-theme="light"] .code-block pre { color: #0A2E5C; }

/* Minimal syntax highlighting (class-based, applied by markdown.js) */
.tok-key { color: #7FB2FF; font-weight: 600; }
.tok-str { color: #9BE2A4; }
.tok-num { color: #FFC933; }
.tok-com { color: var(--taiih-text-muted); font-style: italic; }
.tok-fn  { color: #F0B7FF; }
.tok-var { color: #FFB37F; }
[data-theme="light"] .tok-key { color: #0A46A8; }
[data-theme="light"] .tok-str { color: #0E7A45; }
[data-theme="light"] .tok-num { color: #A66B00; }
[data-theme="light"] .tok-fn  { color: #7B1FA2; }
[data-theme="light"] .tok-var { color: #A34A00; }

/* ---------------------------------------------------------------------------
   11. Composer
   ------------------------------------------------------------------------ */
.composer-wrap {
    flex: 0 0 auto;
    padding: 0 24px 18px;
    background: linear-gradient(180deg, transparent, var(--taiih-background) 60%);
}

.composer {
    max-width: var(--taiih-content-max);
    margin: 0 auto;
    border-radius: var(--taiih-radius-xl);
    border: 1px solid var(--taiih-border-strong);
    background: var(--taiih-surface);
    box-shadow: var(--taiih-shadow);
    transition: border-color var(--taiih-transition), box-shadow var(--taiih-transition);
}
.composer:focus-within {
    border-color: var(--taiih-primary);
    box-shadow: 0 0 0 3px var(--taiih-focus-ring), var(--taiih-shadow);
}

.composer__row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 12px 12px 18px;
}

.composer__input {
    flex: 1 1 auto;
    min-height: 26px;
    max-height: 40vh;
    resize: none;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--taiih-text);
    padding: 6px 0;
}
.composer__input::placeholder { color: var(--taiih-text-muted); }

.composer__send {
    width: 42px; height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--taiih-primary-light), var(--taiih-primary));
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(13, 110, 253, 0.95);
    transition: transform var(--taiih-transition), opacity var(--taiih-transition);
}
.composer__send[disabled] { opacity: 0.45; cursor: not-allowed; }
.composer__send:not([disabled]):hover { transform: scale(1.05); }
.composer__send svg { width: 18px; height: 18px; }

.composer__stop {
    width: 42px; height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: none;
    place-items: center;
    background: var(--taiih-surface-alt);
    border: 1px solid var(--taiih-border-strong);
    color: var(--taiih-text);
}
.composer__stop svg { width: 14px; height: 14px; }
.composer.is-streaming .composer__stop { display: grid; }
.composer.is-streaming .composer__send { display: none; }

.composer__meta {
    max-width: var(--taiih-content-max);
    margin: 8px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--taiih-text-muted);
}
.composer__counter.is-warning { color: var(--taiih-warning); }
.composer__counter.is-over { color: var(--taiih-danger); }

.disclaimer {
    max-width: var(--taiih-content-max);
    margin: 6px auto 0;
    text-align: center;
    font-size: 0.7rem;
    color: var(--taiih-text-muted);
}

/* ---------------------------------------------------------------------------
   12. Panels (settings / about / status) and modal shell
   ------------------------------------------------------------------------ */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--taiih-overlay);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--taiih-transition), visibility var(--taiih-transition);
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 100%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: var(--taiih-background-alt);
    border-left: 1px solid var(--taiih-border-strong);
    box-shadow: var(--taiih-shadow-lg);
    transform: translateX(103%);
    transition: transform var(--taiih-transition-slow);
    visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--taiih-border);
}
.drawer__head h2 { font-size: 1.06rem; }
.drawer__hint { font-size: 0.74rem; color: var(--taiih-text-muted); }

.drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.fieldset { display: flex; flex-direction: column; gap: 10px; }
.fieldset__legend {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--taiih-accent);
}
.fieldset__help { font-size: 0.76rem; color: var(--taiih-text-muted); line-height: 1.55; }

.option-group { display: flex; flex-direction: column; gap: 8px; }

.option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--taiih-radius);
    border: 1px solid var(--taiih-border);
    background: var(--taiih-surface);
    cursor: pointer;
    transition: border-color var(--taiih-transition), background var(--taiih-transition);
}
.option:hover { border-color: var(--taiih-primary); background: var(--taiih-surface-hover); }
.option input { margin-top: 3px; accent-color: var(--taiih-primary); width: 16px; height: 16px; flex: 0 0 auto; }
.option__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.option__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}
.option__title svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--taiih-text-muted); }
.option--active .option__title svg { color: var(--taiih-accent); }
.option__desc { font-size: 0.76rem; color: var(--taiih-text-muted); }
.option--active { border-color: var(--taiih-accent); box-shadow: inset 0 0 0 1px var(--taiih-hairline); }

.select {
    width: 100%;
    padding: 11px 12px;
    border-radius: var(--taiih-radius);
    border: 1px solid var(--taiih-border-strong);
    background: var(--taiih-surface);
    color: var(--taiih-text);
    font-size: 0.88rem;
}
.select:focus { border-color: var(--taiih-primary); outline: none; }

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--taiih-radius);
    border: 1px solid var(--taiih-border);
    background: var(--taiih-surface);
    font-size: 0.88rem;
}
.switch-row input { accent-color: var(--taiih-primary); width: 18px; height: 18px; }

.model-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }

.model {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--taiih-radius-sm);
    border: 1px solid var(--taiih-border);
    background: var(--taiih-surface);
    text-align: left;
    width: 100%;
    transition: border-color var(--taiih-transition), background var(--taiih-transition);
}
.model:hover { border-color: var(--taiih-primary); background: var(--taiih-surface-hover); }
.model[aria-pressed="true"] { border-color: var(--taiih-accent); box-shadow: inset 3px 0 0 var(--taiih-accent); }
.model__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--taiih-success); flex: 0 0 auto; }
.model__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.model__name {
    font-family: var(--taiih-font-mono);
    font-size: 0.8rem;
    color: var(--taiih-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.model__meta { font-size: 0.7rem; color: var(--taiih-text-muted); }

/* Status table (status panel + status page) */
.status-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.status-table th, .status-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--taiih-border); }
.status-table th { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taiih-text-muted); font-weight: 700; }
.status-table td:first-child { color: var(--taiih-text-secondary); width: 42%; }
.status-ok { color: var(--taiih-success); font-weight: 600; }
.status-warn { color: var(--taiih-warning); font-weight: 600; }
.status-bad { color: var(--taiih-text-muted); font-weight: 600; }

.kv { display: flex; flex-direction: column; gap: 6px; }
.kv__row { display: flex; justify-content: space-between; gap: 14px; font-size: 0.84rem; }
.kv__row dt { color: var(--taiih-text-muted); }
.kv__row dd { color: var(--taiih-text); text-align: right; word-break: break-word; }

/* Confirmation dialog: uses the hidden attribute for state, so no inline
   styles are needed and the layer can never block the interface by accident. */
.dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: grid;
    place-items: center;
    padding: 16px;
    background: var(--taiih-overlay);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.dialog-backdrop[hidden] { display: none; }

.dialog {
    width: min(440px, 100%);
    border-radius: var(--taiih-radius-lg);
    border: 1px solid var(--taiih-border-strong);
    background: var(--taiih-surface);
    box-shadow: var(--taiih-shadow-lg);
    padding: 24px;
}
.dialog__title { font-size: 1.06rem; margin-bottom: 10px; }
.dialog__text { font-size: 0.88rem; color: var(--taiih-text-secondary); line-height: 1.6; }
.dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

/* ---------------------------------------------------------------------------
   13. Toasts
   ------------------------------------------------------------------------ */
.toasts {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(560px, calc(100% - 32px));
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--taiih-radius);
    border: 1px solid var(--taiih-border-strong);
    background: var(--taiih-glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--taiih-shadow-lg);
    font-size: 0.85rem;
    color: var(--taiih-text);
    pointer-events: auto;
    animation: toast-in 0.22s ease-out;
}
.toast--error { border-left: 3px solid var(--taiih-danger); }
.toast--success { border-left: 3px solid var(--taiih-success); }
.toast--info { border-left: 3px solid var(--taiih-accent); }
.toast svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.toast__text { flex: 1 1 auto; }
.toast__close { color: var(--taiih-text-muted); }
.toast__close:hover { color: var(--taiih-text); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------------
   14. Standalone pages (status, 404)
   ------------------------------------------------------------------------ */
.page {
    max-width: 940px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}
.page__head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.page__seal { width: 56px; height: 56px; border-radius: 50%; background: var(--taiih-surface); box-shadow: 0 0 0 1px var(--taiih-border-strong); }
.page h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.page__eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taiih-accent); font-weight: 700; }

.card {
    border-radius: var(--taiih-radius-lg);
    border: 1px solid var(--taiih-border);
    background: var(--taiih-surface);
    padding: 22px;
    margin-bottom: 18px;
}
.card__title { font-size: 1rem; margin-bottom: 14px; }
.card + .card__title { margin-top: 8px; }

.footer-note { font-size: 0.78rem; color: var(--taiih-text-muted); text-align: center; margin-top: 28px; }
.footer-note a { color: var(--taiih-text-secondary); }

/* ---------------------------------------------------------------------------
   15. Startup loader
   ---------------------------------------------------------------------------
   The brand moment shown while the workspace boots. Every animated layer is
   transform/opacity only so it composites on the GPU; the element is removed
   from the DOM once it has faded, so it costs nothing during a session.
   ------------------------------------------------------------------------ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(120% 80% at 50% 0%, #0E1930 0%, rgba(10, 15, 26, 0) 62%),
        linear-gradient(180deg, #080D18 0%, #05080F 100%);
    color: #fff;
    transition: opacity 480ms ease, visibility 480ms ease;
}

/* Fade out, then the script removes the node. */
.loader.is-hiding {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader__stage {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
    animation: loader-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Breathing gold halo behind the mark. */
.loader__halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 360px;
    margin: -198px 0 0 -180px;      /* lifted so it centres on the plate, not the text */
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(244, 180, 0, 0.30) 0%, rgba(244, 180, 0, 0.13) 32%, rgba(13, 110, 253, 0.10) 52%, rgba(0, 0, 0, 0) 72%);
    will-change: transform, opacity;
    animation: loader-breathe 3.4s ease-in-out infinite;
}

.loader__plate {
    width: 196px;
    height: 196px;
    padding: 0;
}

.loader__plate img { width: 176px; height: auto; }

.loader__title {
    margin: 2px 0 0;
    font-family: var(--taiih-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.loader__subtitle {
    margin: 0;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--taiih-accent);
}

/* Thin indeterminate sweep — tells the visitor work is happening. */
.loader__sweep {
    width: 168px;
    height: 2px;
    margin-top: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.09);
    overflow: hidden;
}

.loader__sweep span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(244, 180, 0, 0) 0%, #F4B400 45%, rgba(244, 180, 0, 0) 100%);
    animation: loader-sweep 1.5s ease-in-out infinite;
}

/* Sparkles ---------------------------------------------------------------- */
.loader__sparkles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.loader__spark {
    position: absolute;
    width: 9px;
    height: 9px;
    background: #FFD24A;
    /* Four-point star, drawn with clip-path (no image, no extra SVG node). */
    clip-path: polygon(50% 0%, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0% 50%, 41% 41%);
    opacity: 0;
    will-change: transform, opacity;
    /* A soft drop-shadow makes the star read as light rather than a dot.
       drop-shadow is used instead of box-shadow so it follows the clip-path. */
    filter: drop-shadow(0 0 6px rgba(255, 210, 74, 0.95));
    animation: loader-twinkle 2.6s ease-in-out infinite;
}
.loader__spark--glow-white { background: #FFFFFF; filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.9)); }
.loader__spark--glow-blue  { background: #7FB4FF; filter: drop-shadow(0 0 7px rgba(77, 148, 255, 0.95)); }
.loader__spark--1 { top: calc(50% + -18px); left: calc(50% + -115px); width: 12px; height: 12px; animation-delay: -0.2s; animation-duration: 2.9s; }
.loader__spark--2.loader__spark--glow-white { top: calc(50% + -64px); left: calc(50% + -123px); width: 8px; height: 8px; animation-delay: -2.45s; animation-duration: 3.4s; }
.loader__spark--3 { top: calc(50% + -82px); left: calc(50% + -66px); width: 10px; height: 10px; animation-delay: -1.1s; animation-duration: 2.6s; }
.loader__spark--4.loader__spark--glow-blue { top: calc(50% + -127px); left: calc(50% + -25px); width: 7px; height: 7px; animation-delay: -3.05s; animation-duration: 3.7s; }
.loader__spark--5 { top: calc(50% + -75px); left: calc(50% + 26px); width: 9px; height: 9px; animation-delay: -0.75s; animation-duration: 3.1s; }
.loader__spark--6 { top: calc(50% + -91px); left: calc(50% + 92px); width: 11px; height: 11px; animation-delay: -1.85s; animation-duration: 2.8s; }
.loader__spark--7.loader__spark--glow-white { top: calc(50% + -49px); left: calc(50% + 109px); width: 7px; height: 7px; animation-delay: -2.9s; animation-duration: 3.5s; }
.loader__spark--8 { top: calc(50% + -25px); left: calc(50% + 193px); width: 9px; height: 9px; animation-delay: -0.45s; animation-duration: 3.0s; }
.loader__spark--9 { top: calc(50% + 21px); left: calc(50% + 137px); width: 12px; height: 12px; animation-delay: -1.55s; animation-duration: 2.7s; }
.loader__spark--10.loader__spark--glow-blue { top: calc(50% + 69px); left: calc(50% + 143px); width: 6px; height: 6px; animation-delay: -3.3s; animation-duration: 3.6s; }
.loader__spark--11 { top: calc(50% + 69px); left: calc(50% + 65px); width: 10px; height: 10px; animation-delay: -0.95s; animation-duration: 2.5s; }
.loader__spark--12.loader__spark--glow-white { top: calc(50% + 111px); left: calc(50% + 33px); width: 8px; height: 8px; animation-delay: -2.2s; animation-duration: 3.2s; }
.loader__spark--13 { top: calc(50% + 87px); left: calc(50% + -21px); width: 11px; height: 11px; animation-delay: -1.35s; animation-duration: 2.9s; }
.loader__spark--14 { top: calc(50% + 111px); left: calc(50% + -104px); width: 7px; height: 7px; animation-delay: -2.75s; animation-duration: 3.3s; }
.loader__spark--15 { top: calc(50% + 52px); left: calc(50% + -115px); width: 9px; height: 9px; animation-delay: -0.6s; animation-duration: 2.6s; }
.loader__spark--16.loader__spark--glow-white { top: calc(50% + 21px); left: calc(50% + -163px); width: 12px; height: 12px; animation-delay: -1.95s; animation-duration: 3.5s; }
.loader__spark--17 { top: calc(50% + -68px); left: calc(50% + -192px); width: 6px; height: 6px; animation-delay: -2.6s; animation-duration: 3.8s; }
.loader__spark--18.loader__spark--glow-blue { top: calc(50% + 150px); left: calc(50% + -7px); width: 8px; height: 8px; animation-delay: -1.7s; animation-duration: 3.1s; }


/* Keyframes --------------------------------------------------------------- */
@keyframes loader-breathe {
    0%, 100% { opacity: 0.55; transform: scale(0.94); }
    50%      { opacity: 1;    transform: scale(1.05); }
}

@keyframes loader-twinkle {
    0%   { opacity: 0;    transform: scale(0.55) translate3d(0, 0, 0); }
    10%  { opacity: 1;    transform: scale(1.18) translate3d(0, -2px, 0); }
    38%  { opacity: 0.85; transform: scale(1) translate3d(0, -5px, 0); }
    66%  { opacity: 0.45; transform: scale(0.86) translate3d(0, -9px, 0); }
    88%  { opacity: 0.1;  transform: scale(0.7) translate3d(0, -12px, 0); }
    100% { opacity: 0;    transform: scale(0.55) translate3d(0, -13px, 0); }
}

@keyframes loader-sweep {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(230%); }
}

@keyframes loader-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Reduced motion: keep the composition, drop the movement. */
@media (prefers-reduced-motion: reduce) {
    .loader__stage { animation: none; }
    .loader__halo { animation: none; opacity: 0.8; }
    .loader__sweep span { animation: none; width: 100%; }
    .loader__spark { animation: none; opacity: 0.6; }
}

/* Small screens: a slightly tighter composition. */
@media (max-width: 480px) {
    .loader__plate { width: 168px; height: 168px; }
    .loader__plate img { width: 150px; }
    .loader__halo { width: 300px; height: 300px; margin: -168px 0 0 -150px; }
    .loader__title { font-size: 1.3rem; }
}
