/* ═══════════════════════════════════════════════════════════════════════════
   blog.css — PurpleClear Blog Reader UI
   Brand tokens, typography, layout and component styles.
   NO Node.js, NO preprocessors, NO build step. Plain CSS only.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────────────────────────── */

:root {
    --purple:               #422186;
    --purple-dark:          #33004c;
    --purple-light: rgb(177, 156, 189);
    --purple-gradient-start:#7b2fa8;
    --purple-gradient-end:  #3d1166;
    --bg-light:             #f5f6fa;
    --bg-white:             #ffffff;
    --text-primary:         #333333;
    --text-muted:           #666666;
    --text-on-purple:       #ffffff;
    --border:               #e0e0e0;
    --red:                  #c0392b;
    --border-radius:        0;
    --sidebar-width:        300px;
    --content-max:          1100px;
    --font-brand:           "URW Gothic", Tahoma, sans-serif;
    --font-body:            Tahoma, Arial, sans-serif;
    --font-mono:            "Courier New", Courier, monospace;
}

/* ── RESET ──────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: var(--font-body);
    background: linear-gradient(to top, #f5f6fa, #ffffff);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-brand);
    font-weight: 100;
    color: var(--purple-dark);
    line-height: 1.25;
}

/* ── HEADER ─────────────────────────────────────────────────────────────────── */

.site-header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0px 4px 9px #42218616;
}

.site-header__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    height: 56px;
}

.site-logo {
    font-family: var(--font-brand);
    font-size: 22px;
    font-weight: 100;
    color: var(--purple-dark);
    white-space: nowrap;
    padding-top: 5px;
}

.site-logo span {
    color: var(--purple);
    font-weight: 400;
}

.site-nav {
    display: flex;
    gap: 0;
    list-style: none;
    flex: 1;
}

.site-nav li a {
    display: block;
    padding: 0 16px;
    line-height: 56px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-brand);
    font-weight: 200;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color .15s, background .15s;
}

.site-nav li a:hover,
.site-nav li a.active {
    color: var(--purple);
    background: var(--bg-light);
    text-decoration: none;
}

/* ── PINNED HERO ─────────────────────────────────────────────────────────────── */

.hero-pinned {
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    color: var(--text-on-purple);
    overflow: hidden;
}

.hero-pinned__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    min-height: 300px;
}

.hero-pinned__text {
    flex: 1;
    padding: 40px 48px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.hero-pinned__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    font-family: var(--font-brand);
}

.hero-pinned__title {
    font-family: var(--font-brand);
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 100;
    color: #fff;
    line-height: 1.2;
}

.hero-pinned__promo {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.55;
    max-width: 520px;
}

.hero-pinned__cta {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px 10px 24px;
    background: rgba(40,20,70,0.85);
    color: #fff;
    font-size: 13px;
    font-family: var(--font-brand);
    letter-spacing: 0.06em;
    transition: background .2s;
    align-self: flex-start;
}

.hero-pinned__cta:hover { background: rgba(255,255,255,0.28); text-decoration: none; }

.hero-pinned__image {
    width: 420px;
    flex-shrink: 0;
    overflow: hidden;
}

.hero-pinned__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── MAIN LAYOUT ─────────────────────────────────────────────────────────────── */

.site-main {
    width: 100%;   /* ← add this */
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 32px;
    align-items: start;
    flex: 1;
}

.site-content {
    max-width: 720px;
}

/* ── POST LIST ──────────────────────────────────────────────────────────────── */

.post-list { display: flex; flex-direction: column; gap: 0; }

.post-card {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.post-card:first-child { padding-top: 0; }

.post-card__thumb {
    width: 140px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 5px;
    background: var(--bg-light);
}

.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__body { flex: 1; min-width: 0; }

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.post-card__category {
    display: inline-block;
    padding: 4px 10px 0px 10px;
    background: var(--purple);
    color: #fff;
    font-size: 10px;
    font-family: var(--font-brand);
    font-weight: 200;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-card__date {
    font-size: 12px;
    padding: 5px 0px 0px 0px;
    color: var(--text-muted);
    font-family: var(--font-brand);
}

.post-card__title {
    font-size: 18px;
    font-weight: 100;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.post-card__readmore {
    font-size: 12px;
    color: var(--purple);
    font-family: var(--font-brand);
    letter-spacing: 0.04em;
}

/* ── PAGINATION ─────────────────────────────────────────────────────────────── */

.pagination {
    display: flex;
    gap: 4px;
    margin-top: 28px;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 13px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: background .15s, color .15s;
}

.pagination a:hover { background: var(--bg-light); text-decoration: none; color: var(--purple); }
.pagination .current { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ── SIDEBAR ────────────────────────────────────────────────────────────────── */

.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget-panel, .iot-project-row {
    background: var(--bg-white);
    border-left: 4px solid var(--purple);
    padding: 16px 20px 20px;
    box-shadow: 0px 4px 9px #42218616;
}

.widget-panel__title {
    font-family: var(--font-brand);
    font-size: 13px;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple-dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Search widget */
.search-form { display: flex; gap: 0; }

.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-right: none;
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
}

.search-form input:focus { border-color: var(--purple); }

.search-form button {
    padding: 8px 16px;
    background: var(--purple);
    color: #fff;
    border: none;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-brand);
    font-weight: 200;
    letter-spacing: 0.06em;
    transition: opacity .15s;
}

.search-form button:hover { opacity: 0.85; }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-cloud a {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--purple-light);
    color: var(--purple);
    font-size: 11px;
    font-family: var(--font-brand);
    transition: background .15s, color .15s;
}

.tag-cloud a:hover {
    background: var(--purple);
    color: #fff;
    text-decoration: none;
    border-color: var(--purple);
}

/* Category list */
.category-list { list-style: none; }

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-primary);
    transition: color .15s;
}

.category-list a:hover { color: var(--purple); text-decoration: none; font-weight: bold; }

.category-list .count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 1px 7px;
}

/* ── SINGLE POST ────────────────────────────────────────────────────────────── */

.post-single { max-width: var(--content-max); margin: 0 auto; padding: 32px 24px; }

.post-single__header { margin-bottom: 32px; }

.post-single__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }

.post-single__title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 100;
    color: var(--purple-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.post-single__featured {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    margin-bottom: 32px;
}

/* Post content typography */
.post-content { font-size: 16px; line-height: 1.75; color: var(--text-primary); }
.post-content h2 { font-size: 24px; font-weight: 100; margin: 36px 0 12px; }
.post-content h3 { font-size: 20px; font-weight: 200; margin: 28px 0 10px; }
.post-content p  { margin-bottom: 18px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 18px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
    border-left: 4px solid var(--purple);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--bg-light);
    color: var(--text-muted);
    font-style: italic;
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--bg-light);
    padding: 2px 6px;
    border: 1px solid var(--border);
}

.post-content pre {
    background: var(--purple-dark);
    color: #f0e8f8;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
    border-left: 4px solid var(--purple);
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: 13px;
}

.post-content img {
    max-width: 100%;
    margin: 24px auto;
}

/* ── TECH STACK ("Built with technologies I love") ──────────────────────────── */

.tech-stack {
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    padding: 48px 24px;
    margin-top: 48px;
}

.tech-stack__inner {
    max-width: var(--content-max);
    margin: 0 auto;
}

.tech-stack__heading {
    font-family: var(--font-brand);
    font-weight: 200;
    color: #fff;
    font-size: 26px;
    margin: 0 0 6px;
    padding: 0px 0px 0px 40px;
    text-align: center;
}

.tech-stack__subtitle {
    color: #fff;
    font-size: 14px;
    margin: 0 0 28px;
    text-align: center;
}

.tech-stack__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tech-card {
    position: relative;
    display: block;
    background: none;
    padding: 5px 5px;
    color: var(--text-primary);
}

.tech-card:hover {
    text-decoration: none;
}

.tech-card__icon { font-size: 30px; display: block; line-height: 1; }

.tech-card__name {
    display: block;
    margin-top: 12px;
    font-family: var(--font-brand);
    font-weight: 400;
    font-size: 19px;
    color: #fff;
    text-align: center;
}

.tech-card__org {
    display: block;
    font-size: 12px;
    color: var(--purple-light);
    margin-top: 2px;
    text-align: center;
}

.tech-card__desc {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #fff;
    line-height: 1.5;
    text-align: center;
}

.tech-card__arrow {
    position: absolute;
    top: 20px;
    right: 22px;
    color: var(--purple-light);
    font-size: 18px;
    transition: transform .15s, color .15s;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--purple-dark);
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-family: var(--font-brand);
    font-weight: 200;
    padding: 20px 24px;
}

.site-footer__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__links { display: flex; gap: 20px; }

.site-footer a { color: rgba(255,255,255,0.55); transition: color .15s; }
.site-footer a:hover { color: rgba(255,255,255,0.9); text-decoration: none; }

/* ── SEARCH RESULTS PAGE ────────────────────────────────────────────────────── */

.search-results__heading {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.search-results__heading em { color: var(--purple); font-style: normal; font-weight: 400; }

/* ── MOBILE NAV TOGGLE ──────────────────────────────────────────────────────── */

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--purple-dark);
}

/* ── READER BUTTONS (homepage lead form etc.) ──────────────────────────────── */

.home .btn, .lead-form .btn {
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--font-brand);
    font-size: 14px;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: 1px solid transparent;
}
.home .btn:hover, .lead-form .btn:hover { opacity: 0.9; text-decoration: none; }
.home .btn-primary, .lead-form .btn-primary { background: #fff; color: var(--purple); }

/* ── HOMEPAGE SECTIONS ──────────────────────────────────────────────────────── */

.home-projects__inner, .home-expertise__inner, .home-testimonials__inner,
.home-posts__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 56px 24px;
}
.home-projects__title, .home-expertise__title, .home-testimonials__title,
.home-posts__title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 32px;
}

.home-hero { background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end)); color: var(--text-on-purple); }
.home-hero__inner { max-width: var(--content-max); margin: 0 auto; padding: 56px 24px; display: flex; gap: 40px; }
.home-hero__photo { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; flex-shrink: 0; margin-top: 10px; }
.home-hero__text { flex: 1; }
.home-hero__heading { color: var(--text-on-purple); font-size: 40px; }
.home-hero__subheading { font-size: 20px; opacity: 0.9; margin: 8px 0 16px; }
.home-hero__body p { margin-bottom: 12px; }

.home-projects__grid, .home-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-expertise__grid, .home-testimonials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.home-project, .home-post { display: block; background: var(--bg-white); color: inherit; padding-bottom: 16px; transition: box-shadow .15s; box-shadow: 0 4px 10px #42218622; }
.home-project:hover, .home-post:hover { box-shadow: 0 6px 18px #42218622; text-decoration: none; }
.home-project__thumb, .home-post__thumb { width: 100%; height: 160px; object-fit: cover; }
.home-project__title, .home-post__title { font-size: 18px; padding: 14px 16px 6px; }
.home-project__summary, .home-post__excerpt { padding: 0 16px; color: var(--text-muted); font-size: 14px; }

.home-expertise { background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end)); }
.home-expertise__title { color: #fff; }
.home-expertise__grid { grid-template-columns: repeat(2, 1fr); }
.home-expertise__item { background: transparent; padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.home-expertise__icon { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.home-expertise__content { flex: 1; min-width: 0; }
.home-expertise__heading { font-size: 30px; margin-bottom: 8px; color: #fff; }
.home-expertise__body { color: #fff; font-size: 14px; text-align: justify; }

.home-testimonials__grid { grid-template-columns: 1fr; gap: 0; }
.home-testimonial { background: var(--bg-white); border-bottom: 0px solid var(--border); padding: 20px 24px; margin: 10px 0; box-shadow: 0 4px 10px #42218622;}
.home-testimonial:last-child { border-bottom: none; }
.home-testimonial__quote { font-style: italic; margin-bottom: 12px; font-size: 10pt; color: var(--text-primary); text-indent: 30px; text-align: justify; }
.home-testimonial__author { font-size: 13px; color: var(--text-muted); }
.home-testimonials__more { display: inline-block; margin-top: 20px; background-color: var(--purple) !important; color: #fff !important;}

.home-award { background: var(--bg-light); padding: 50px 0px;}
.home-award__inner { max-width: var(--content-max); margin: 0 auto; padding: 56px 24px; display: flex; gap: 32px; align-items: center; }
.home-award__badge { width: 120px; height: 120px; object-fit: contain; flex-shrink: 0; }
.home-award__title { font-size: 48px; text-align: center; }
.home-award__year { color: var(--text-muted); font-size: 18px; text-align: center; display: block; }

.home-leadcta { background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end)); color: var(--text-on-purple); text-align: center; padding: 50px 0px;}
.home-leadcta__inner { max-width: 720px; margin: 0 auto; padding: 56px 24px; }
.home-leadcta__heading { color: var(--text-on-purple); font-size: 48px; }
.home-leadcta__body { margin: 38px 0px; opacity: 0.9; }

/* ── LEAD FORM ──────────────────────────────────────────────────────────────── */

.lead-cta { margin-top: 20px; }
.lead-form { display: none; flex-direction: column; gap: 12px; max-width: 480px; margin: 20px auto 0; text-align: left; }
.lead-form__field { width: 100%; padding: 10px 12px; border: 1px solid var(--border); font-family: var(--font-body); font-size: 14px; }
.lead-form__status { font-size: 13px; min-height: 18px; }
.lead-form__thanks { margin-top: 20px; font-size: 15px; }

.home-leadcta .lead-cta {
    margin: 20px auto;
    width: 450px;
    text-align: center;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .site-main { grid-template-columns: 1fr; }
    .hero-pinned__image { display: none; }
    .hero-pinned__text { padding: 32px 24px; }
    .post-card__thumb { width: 100px; height: 80px; }
    .tech-stack__grid { grid-template-columns: 1fr; }

    /* Mobile nav: logo + hamburger on one row; tapping the hamburger reveals a
       full-width vertical list below (standard mobile pattern, never overflows). */
    .site-header__inner { padding: 0 16px; flex-wrap: wrap; gap: 0; height: auto; min-height: 56px; }
    .site-logo { flex: 1; padding: 16px 0; }
    .nav-toggle { display: block; }
    .site-header__inner nav { order: 3; flex-basis: 100%; width: 100%; }
    .site-nav { display: none; flex-direction: column; flex: none; width: 100%; border-top: 1px solid var(--border); }
    .site-nav.site-nav--open { display: flex; }
    .site-nav li { width: 100%; }
    .site-nav li a { display: block; width: 100%; line-height: 1.2; padding: 14px 4px; border-bottom: 1px solid var(--border); }

    .home-hero__inner, .home-award__inner { flex-direction: column; text-align: center; }
    .home-hero__photo { width: 160px; height: 160px; }
    .home-hero__heading { font-size: 30px; }
    .home-projects__grid, .home-posts__grid, .iot-home-grid,
    .home-expertise__grid, .home-testimonials__grid { grid-template-columns: 1fr; }
    .lead-form { max-width: 100%; }
}

.center {
    text-align: center;
}

/* IoT Flash Station */
.iot-intro           { color: var(--text-muted); margin: 0 0 1.5rem; }
.iot-catalog         { display: flex; flex-direction: column; gap: 1.5rem; }
.iot-project-row     { display: flex; align-items: center;
                        justify-content: space-between; gap: 1rem; }
.iot-project-row .btn      { display: inline-block; padding: 10px 20px; white-space: nowrap;
                             font-family: var(--font-brand); font-size: 14px; letter-spacing: 0.03em;
                             cursor: pointer; border: 1px solid transparent;
                             background: var(--purple); color: #fff; }
.iot-project-row .btn:hover { opacity: 0.9; text-decoration: none; }
.iot-project-info    { flex: 1; }
.iot-project-name    { font-weight: 600; font-size: 1.1rem; display: block; }
.iot-board-badge     { display: inline-block; font-size: 0.75rem;
                        background: var(--purple); color: #fff;
                        padding: 2px 8px; border-radius: 3px;
                        margin: 4px 0 8px; }
.iot-project-desc    { color: var(--text-muted); margin: 0; }
.iot-project-keywords{ color: var(--text-muted); font-size: 0.9rem; }
.iot-empty           { color: var(--text-muted); font-style: italic; }
.iot-flash-hint      { color: var(--text-muted); font-size: 0.9rem; }
.iot-form-hint       { color: var(--text-muted); font-size: 0.85rem; }
.iot-status-label    { font-weight: 600; }
.flash--error        { background: #fdecea; color: var(--red);
                        border: 1px solid var(--red); padding: 10px 14px;
                        border-radius: 4px; margin-bottom: 16px; }
/* IoT Flash Station — homepage section (mirrors the Latest-posts cards) */
.iot-flash-station-section__inner { max-width: var(--content-max); margin: 0 auto; padding: 56px 24px; }
.iot-flash-station-section__title { font-size: 26px; }
.iot-flash-station-section__intro { color: var(--text-muted); margin: 8px 0 24px; }
.iot-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.iot-home-card { display: block; background: var(--bg-white); color: inherit; padding-bottom: 16px; transition: box-shadow .15s; box-shadow: 0 4px 10px #42218622; }
.iot-home-card:hover { box-shadow: 0 6px 18px #42218622; text-decoration: none; }
.iot-home-card__board { display: flex; align-items: center; justify-content: center; height: 140px; padding: 0 12px; background: var(--purple); color: #fff; font-weight: 600; font-size: 18px; letter-spacing: .02em; text-align: center; }
.iot-home-card__title { font-size: 18px; padding: 14px 16px 6px; }
.iot-home-card__desc { padding: 0 16px; color: var(--text-muted); font-size: 14px; }
.iot-flash-station-section .center { margin-top: 28px; }

/* IoT Flash Station — Web Serial flasher (project detail page) */
.iot-flash { margin: 24px 0; }
.iot-flash__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.iot-flash__status { display: block; margin: 12px 0 0; font-size: 14px; color: var(--text-muted); }
.iot-flash__status--success { color: #2e7d32; font-weight: 600; }
.iot-flash__status--error { color: var(--red); font-weight: 600; }
.iot-flash__progress { height: 8px; margin: 12px 0 0; background: var(--border); border-radius: 4px; overflow: hidden; }
.iot-flash__bar { height: 100%; width: 0; background: var(--purple); transition: width .2s; }
.iot-flash__log { margin: 12px 0 0; max-height: 180px; overflow: auto; padding: 10px 12px; background: #1e1e1e; color: #d4d4d4; font-size: 12px; border-radius: 4px; white-space: pre-wrap; }
.iot-flash-note { margin: 12px 0 0; color: var(--text-muted); font-size: 13px; }
