/* ===========================================================================
   MIRA REDESIGN — content + account (Phase 4)

   The `casual` theme's fourth Mira layer: journal index, post, about, contact,
   FAQ, auth (login/register), account dashboard, sale. Loaded after mira.css,
   mira-shop.css and mira-flow.css, so tokens and atoms already exist and are
   never redeclared.

   ⚠️ NO BLOCK NAME DECLARED HERE MAY EXIST IN AN EARLIER LAYER. The later
   sheet silently wins everywhere. Gated by checks/mira_layer_check.py.

   Blocks owned by this file:
     .mira-jn       journal index          (SF:1032-1066)
     .mira-post     single post            (SF:1346-1376)
     .mira-about    about                  (SF:1070-1097)
     .mira-contact  contact                (SF:1101-1127)
     .mira-faq      FAQ                    (SF:1417-1440)
     .mira-auth     login / register       (SF:1132-1167)
     .mira-dash     account dashboard      (SF:1483-1524)
     .mira-sale     sale                   (SF:1444-1479)

   ---------------------------------------------------------------------------
   HOW THESE SCREENS REACH THE THEME, which is different from every earlier
   phase and is the thing to understand before editing:

   Phases 2 and 3 owned their blades outright — the shop and cart templates live
   under themes/casual/. These do NOT. Auth and the dashboard live in
   `tenant/frontend/user/`, which is SHARED by all eight themes, and about /
   contact / FAQ are tenant-authored PageBuilder pages with no fixed template at
   all.

   The platform's own answer, established by Orchid, is a branch:

       @if(getSelectedThemeSlug() === 'aromatic')
           @include('themes.aromatic.frontend.user._login')
       @else
           ... the original markup, untouched ...
       @endif

   Phase 4 widens those twelve branches to accept `casual` too and adds Mira
   partials beside Orchid's. NOTHING in the else-branch is edited: seven other
   themes render from it.

   The eyebrow rule (a hairline + tracked caps) is the one thing repeated across
   four of these screens, so it is declared once at the top.
   =========================================================================== */


/* ---------------------------------------------------------------------------
   1. The eyebrow — SF:1034, 1072, 1104, 1419.

   Two variants: a single leading rule (journal, contact) and a rule on BOTH
   sides for centred headings (about, FAQ). The design uses both, so both ship.
   --------------------------------------------------------------------------- */

.mira-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--mira-acc);
}

.mira:not([dir="rtl"]) .mira-eyebrow {
    letter-spacing: .26em;
}

.mira-eyebrow::before,
.mira-eyebrow--both::after {
    content: "";
    inline-size: 26px;
    block-size: 1px;
    background: var(--mira-acc);
    flex: none;
}

.mira-eyebrow--center {
    justify-content: center;
}


/* ---------------------------------------------------------------------------
   2. Journal index — SF:1032-1066.

   Head + category chips, one featured split, then a Pattern A grid at 250px.
   --------------------------------------------------------------------------- */

.mira-jn__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-block-end: clamp(22px, 3cqi, 38px);
}

/* A PageBuilder band. Unlike a theme screen, this element IS the wrapper — a
   builder page is assembled from independent addons, so each one carries its
   own `.mira` and its own padding rather than inheriting a page shell. */
.mira-band {
    display: block;
    padding-block: clamp(38px, 5cqi, 76px);
    padding-inline: clamp(18px, 4.2cqi, 64px);
}

/* Title beside its "see all" link. */
.mira-band__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.mira-jn__title {
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: clamp(32px, 4.4cqi, 58px);
    line-height: 1.05;
    color: var(--mira-ink);
}

.mira-jn__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-block-start: 8px;
}

.mira-jn__chip {
    padding: 8px 17px;
    border: 1px solid var(--mira-ln);
    border-radius: 999px;
    background: transparent;
    color: var(--mira-ink);
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.mira-jn__chip:hover {
    border-color: var(--mira-ink);
}

.mira-jn__chip.is-active {
    background: var(--mira-acc);
    border-color: var(--mira-acc);
    color: var(--mira-oac);
}

/* The featured post — SF:1042-1053. */
.mira-jn__feat {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 3cqi, 40px);
    align-items: center;
    margin-block-end: clamp(28px, 3.6cqi, 50px);
}

.mira-jn__feat-media {
    flex: 1.3 1 min(360px, 100%);
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    overflow: hidden;
    background: var(--mira-sf);
}

.mira-jn__feat-media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.mira-jn__feat-media:hover img {
    transform: scale(1.04);
}

.mira-jn__feat-body {
    flex: 1 1 min(300px, 100%);
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-inline-size: 0;
}

.mira-jn__badge {
    align-self: flex-start;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--mira-sf);
    color: var(--mira-acd);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 10.5px;
    line-height: 1;
}

.mira-jn__feat-title {
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: clamp(24px, 3cqi, 40px);
    line-height: 1.2;
    color: var(--mira-ink);
    transition: color .2s ease;
}

.mira-jn__feat-title:hover {
    color: var(--mira-acc);
}

.mira-jn__feat-sub {
    max-inline-size: 52ch;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--mira-sub);
}

.mira-jn__meta {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 11px;
    line-height: 1.5;
    color: var(--mira-sub);
}

/* The underlined read-more link — SF:1051. */
.mira-jn__more {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding-block-end: 4px;
    border-block-end: 1px solid var(--mira-ink);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1;
    color: var(--mira-ink);
    transition: color .2s ease, border-color .2s ease;
}

.mira-jn__more:hover {
    color: var(--mira-acc);
    border-color: var(--mira-acc);
}

.mira-jn__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: clamp(14px, 1.8cqi, 22px);
}

.mira-jn__card {
    display: flex;
    flex-direction: column;
    gap: 13px;
    color: var(--mira-ink);
    min-inline-size: 0;
}

.mira-jn__card-media {
    position: relative;
    aspect-ratio: 16 / 11;
    border-radius: 16px;
    overflow: hidden;
    background: var(--mira-sf);
}

.mira-jn__card-media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.mira-jn__card:hover .mira-jn__card-media img {
    transform: scale(1.06);
}

/* On the photograph, so a fixed white — see the scrim note in mira.css. */
.mira-jn__card-chip {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--mira-onwhite);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 10.5px;
    line-height: 1;
}

.mira-jn__card-title {
    font-family: var(--mira-display);
    font-weight: 600;
    font-size: clamp(17px, 1.6cqi, 21px);
    line-height: 1.35;
    transition: color .2s ease;
}

.mira-jn__card:hover .mira-jn__card-title {
    color: var(--mira-acc);
}


/* ---------------------------------------------------------------------------
   3. Single post — SF:1346-1376.
   --------------------------------------------------------------------------- */

.mira-post__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding-block-start: clamp(26px, 3.4cqi, 48px);
    padding-inline: clamp(18px, 4.2cqi, 64px);
}

.mira-post__title {
    max-inline-size: 24ch;
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: clamp(30px, 4.4cqi, 58px);
    line-height: 1.15;
    color: var(--mira-ink);
    text-wrap: pretty;
}

.mira-post__hero {
    padding-block: clamp(22px, 3cqi, 40px);
    padding-inline: clamp(18px, 4.2cqi, 64px);
}

.mira-post__hero-inner {
    block-size: clamp(260px, 38cqi, 480px);
    border-radius: 22px;
    overflow: hidden;
    background: var(--mira-sf);
}

.mira-post__hero-inner img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.mira-post__body {
    padding-inline: clamp(18px, 4.2cqi, 64px);
    padding-block-end: clamp(46px, 6cqi, 84px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

/* The measure. Everything the author wrote is inside this column. */
.mira-post__col {
    inline-size: min(680px, 100%);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ⚠️ Post content is tenant HTML from a rich-text editor, so it is styled by
   ELEMENT, not by class — there are no hooks to add. This is the one place in
   the theme where bare element selectors are correct.

   `:where()` keeps them at zero specificity so a tenant's own inline style or
   a pasted class still wins, which is what an editor's output should do. */
.mira-post__col :where(p) {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 14px;
    line-height: 2;
    color: var(--mira-ink);
    text-wrap: pretty;
}

.mira-post__col :where(h2, h3, h4) {
    font-family: var(--mira-display);
    font-weight: 500;
    line-height: 1.25;
    color: var(--mira-ink);
    margin-block-start: 12px;
}

.mira-post__col :where(h2) { font-size: clamp(24px, 2.8cqi, 34px); }
.mira-post__col :where(h3) { font-size: clamp(20px, 2.2cqi, 27px); }
.mira-post__col :where(h4) { font-size: clamp(17px, 1.8cqi, 22px); }

.mira-post__col :where(ul, ol) {
    padding-inline-start: 22px;
    list-style: revert;
    font-family: var(--mira-ui);
    font-size: 14px;
    line-height: 2;
    color: var(--mira-ink);
}

.mira-post__col :where(a) {
    color: var(--mira-acd);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mira-post__col :where(img) {
    inline-size: 100%;
    block-size: auto;
    border-radius: 16px;
}

/* Pull quote — SF:1360. The border is INLINE-start, so it flips under RTL
   without a second rule. */
.mira-post__col :where(blockquote) {
    margin-block: 8px;
    padding-block: 4px;
    padding-inline: clamp(18px, 3cqi, 30px);
    border-inline-start: 3px solid var(--mira-acc);
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: clamp(19px, 2.2cqi, 26px);
    line-height: 1.6;
    font-style: italic;
    color: var(--mira-acd);
}

.mira-post__tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.mira-post__tag {
    padding: 7px 14px;
    border: 1px solid var(--mira-ln);
    border-radius: 999px;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 11px;
    line-height: 1;
    color: var(--mira-sub);
    transition: border-color .2s ease, color .2s ease;
}

.mira-post__tag:hover {
    border-color: var(--mira-acc);
    color: var(--mira-acc);
}

/* Share row. ⚠️ `single_post_share()` emits bare `<li>` with an `<a><i>` inside
   and NO wrapping `<ul>` — the caller supplies that. The list-style reset is
   what stops the bullets showing; Phase 2 shipped that bug once already. */
.mira-post__share {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-block: 4px;
}

.mira-post__share-l {
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    color: var(--mira-sub);
}

.mira-post__share-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mira-post__share-list li {
    list-style: none;
}

.mira-post__share-list a {
    inline-size: 34px;
    block-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mira-ln);
    border-radius: 50%;
    color: var(--mira-ink);
    font-size: 14px;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.mira-post__share-list a:hover {
    background: var(--mira-acc);
    border-color: var(--mira-acc);
    color: var(--mira-oac);
}

/* Author card — SF:1366-1373. */
.mira-post__author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--mira-ln);
    border-radius: 18px;
    background: var(--mira-pp);
    flex-wrap: wrap;
}

.mira-post__author img {
    inline-size: 52px;
    block-size: 52px;
    object-fit: cover;
    border-radius: 50%;
    flex: none;
}

.mira-post__author-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-inline-size: 0;
}

.mira-post__author-n {
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    color: var(--mira-ink);
}

.mira-post__author-s {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--mira-sub);
}

.mira-post__author-cta {
    margin-inline-start: auto;
    padding: 11px 20px;
    border: 1px solid var(--mira-ln);
    border-radius: 999px;
    background: transparent;
    color: var(--mira-ink);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 11.5px;
    line-height: 1;
    white-space: nowrap;
    transition: background .25s ease;
}

.mira-post__author-cta:hover {
    background: var(--mira-sf);
    color: var(--mira-ink);
}


/* ---------------------------------------------------------------------------
   4. About — SF:1070-1097.
   --------------------------------------------------------------------------- */

.mira-about__hero {
    padding-block: clamp(40px, 5.4cqi, 80px);
    padding-inline: clamp(18px, 4.2cqi, 64px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mira-about__title {
    max-inline-size: 22ch;
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: clamp(30px, 4.4cqi, 58px);
    line-height: 1.2;
    color: var(--mira-ink);
    text-wrap: pretty;
}

.mira-about__sub {
    max-inline-size: 58ch;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.9;
    color: var(--mira-sub);
}

/* Two images of DIFFERENT heights, bottom-aligned — SF:1076-1079. The
   mismatch is the composition, not a bug. */
.mira-about__pair {
    display: flex;
    gap: clamp(14px, 2cqi, 26px);
    padding-inline: clamp(18px, 4.2cqi, 64px);
    align-items: flex-end;
    flex-wrap: wrap;
}

.mira-about__img1 {
    flex: 1.4 1 min(320px, 100%);
    block-size: clamp(260px, 34cqi, 420px);
    border-radius: 22px;
    overflow: hidden;
    background: var(--mira-sf);
}

.mira-about__img2 {
    flex: 1 1 min(240px, 100%);
    block-size: clamp(300px, 40cqi, 500px);
    border-radius: 18px;
    overflow: hidden;
    background: var(--mira-sf);
}

.mira-about__pair img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.mira-about__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    gap: clamp(16px, 2.4cqi, 30px);
    padding-block: clamp(36px, 4.6cqi, 64px);
    padding-inline: clamp(18px, 4.2cqi, 64px);
}

.mira-about__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.mira-about__stat-v {
    font-family: var(--mira-display);
    font-weight: 600;
    font-size: clamp(28px, 3.4cqi, 46px);
    line-height: 1;
    color: var(--mira-acd);
}

.mira-about__stat-l {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: var(--mira-sub);
}

.mira-about__vals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: clamp(14px, 1.8cqi, 22px);
    padding-inline: clamp(18px, 4.2cqi, 64px);
    padding-block-end: clamp(46px, 6cqi, 84px);
}

.mira-about__val {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: clamp(20px, 2.6cqi, 30px);
    border: 1px solid var(--mira-ln);
    border-radius: 18px;
    background: var(--mira-pp);
}

/* The round icon medallion, shared with contact — SF:1091, SF:1110. */
.mira-medallion {
    inline-size: 44px;
    block-size: 44px;
    border-radius: 50%;
    background: var(--mira-sf);
    color: var(--mira-acc);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.mira-medallion .o-i {
    font-size: 21px;
}

.mira-about__val-h {
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    color: var(--mira-ink);
}

.mira-about__val-p {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.8;
    color: var(--mira-sub);
}


/* ---------------------------------------------------------------------------
   5. Contact — SF:1101-1127.
   --------------------------------------------------------------------------- */

.mira-contact {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 3.4cqi, 54px);
    align-items: flex-start;
}

.mira-contact__side {
    flex: 1 1 min(320px, 100%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-inline-size: 0;
}

.mira-contact__title {
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: clamp(30px, 4.2cqi, 54px);
    line-height: 1.1;
    color: var(--mira-ink);
}

.mira-contact__sub {
    max-inline-size: 48ch;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.85;
    color: var(--mira-sub);
}

.mira-contact__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-block-start: 8px;
}

.mira-contact__row {
    display: flex;
    gap: 13px;
    align-items: center;
}

.mira-contact__row-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-inline-size: 0;
}

.mira-contact__row-h {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 10.5px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--mira-sub);
}

.mira:not([dir="rtl"]) .mira-contact__row-h {
    letter-spacing: .14em;
}

.mira-contact__row-v {
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--mira-ink);
    word-break: break-word;
}

/* The form card. Its fields sit on --mira-bg, not --mira-pp: the card IS the
   paper, so a paper field on paper would vanish — SF:1119. */
.mira-contact__card {
    flex: 1.2 1 min(340px, 100%);
    background: var(--mira-pp);
    border: 1px solid var(--mira-ln);
    border-radius: 20px;
    padding: clamp(22px, 3cqi, 34px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-inline-size: 0;
}

.mira-contact__form-t {
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    color: var(--mira-ink);
}

.mira-contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 10px;
}

.mira-contact__card input,
.mira-contact__card textarea,
.mira-contact__card select,
.mira-contact__card .form--control {
    inline-size: 100%;
    border: 1px solid var(--mira-ln);
    border-radius: 12px;
    background: var(--mira-bg);
    padding: 13px 16px;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--mira-ink);
    outline: none;
    transition: border-color .2s ease;
}

.mira-contact__card input:focus,
.mira-contact__card textarea:focus,
.mira-contact__card .form--control:focus {
    border-color: var(--mira-acc);
}

.mira-contact__card textarea {
    min-block-size: 120px;
    resize: vertical;
}

.mira-contact__send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px;
    border: 0;
    border-radius: 999px;
    background: var(--mira-acc);
    color: var(--mira-oac);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease;
}

.mira-contact__send:hover {
    background: var(--mira-acd);
    color: var(--mira-oac);
}

.mira-contact__send .o-i {
    font-size: 17px;
}


/* ---------------------------------------------------------------------------
   6. FAQ — SF:1417-1440.
   --------------------------------------------------------------------------- */

.mira-faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.mira-faq__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.mira-faq__title {
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: clamp(30px, 4cqi, 52px);
    line-height: 1.05;
    color: var(--mira-ink);
}

.mira-faq__sub {
    max-inline-size: 52ch;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--mira-sub);
}

.mira-faq__list {
    inline-size: min(760px, 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mira-faq__item {
    border: 1px solid var(--mira-ln);
    border-radius: 16px;
    background: var(--mira-pp);
    overflow: hidden;
    transition: border-color .3s ease;
}

.mira-faq__item.is-open {
    border-color: var(--mira-acc);
}

.mira-faq__q {
    inline-size: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 20px;
    border: 0;
    background: transparent;
    color: var(--mira-ink);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.4;
    text-align: start;
    cursor: pointer;
}

.mira-faq__mark {
    inline-size: 28px;
    block-size: 28px;
    border-radius: 50%;
    background: var(--mira-sf);
    color: var(--mira-acc);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: transform .3s ease;
}

.mira-faq__item.is-open .mira-faq__mark {
    transform: rotate(180deg);
}

.mira-faq__mark .o-i {
    font-size: 17px;
}

.mira-faq__a {
    display: none;
    padding-inline: 20px;
    padding-block-end: 18px;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--mira-sub);
}

.mira-faq__item.is-open .mira-faq__a {
    display: block;
    animation: mira-fade .3s ease;
}

/* The "still need help" pill — SF:1436-1439. */
.mira-faq__cta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-radius: 999px;
    background: var(--mira-sf);
    flex-wrap: wrap;
    justify-content: center;
}

.mira-faq__cta-t {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1;
    color: var(--mira-sub);
}

.mira-faq__cta-btn {
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--mira-acc);
    color: var(--mira-oac);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    transition: background .25s ease;
}

.mira-faq__cta-btn:hover {
    background: var(--mira-acd);
    color: var(--mira-oac);
}


/* ---------------------------------------------------------------------------
   7. Auth — SF:1132-1167.

   One bordered card, split: image panel beside the form. Login and register are
   the same panel with one extra field, exactly as the design has it.
   --------------------------------------------------------------------------- */

.mira-auth {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
    border: 1px solid var(--mira-ln);
    border-radius: 24px;
    overflow: hidden;
    background: var(--mira-pp);
}

.mira-auth__aside {
    flex: 1 1 min(300px, 100%);
    min-block-size: 340px;
    position: relative;
    background: var(--mira-sf);
}

.mira-auth__aside img {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

/* A fixed dark gradient, not a token: it sits on photography. See the scrim
   note in mira.css. */
.mira-auth__aside-body {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 16, 20, .62), transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    gap: 6px;
}

.mira-auth__aside-t {
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.2;
    color: #FFF;
}

/* Optional kicker above the title — the hub offers one, the design does not
   draw one, so it only renders when a shop has set it. */
.mira-auth__aside-k {
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 10.5px;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.mira:not([dir="rtl"]) .mira-auth__aside-k {
    letter-spacing: .22em;
}

.mira-auth__aside-s {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .8);
}

.mira-auth__form {
    flex: 1.2 1 min(320px, 100%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(24px, 3.4cqi, 44px);
    min-inline-size: 0;
}

/* The login / register tab pair — SF:1141-1144. These are real links (they
   navigate between two routes), styled as tabs. */
.mira-auth__tabs {
    display: flex;
    gap: 22px;
    border-block-end: 1px solid var(--mira-ln);
}

.mira-auth__tab {
    padding: 0 2px 13px;
    border: 0;
    border-block-end: 2px solid transparent;
    background: transparent;
    color: var(--mira-sub);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    transition: color .2s ease, border-color .2s ease;
}

.mira-auth__tab:hover {
    color: var(--mira-ink);
}

.mira-auth__tab.is-active {
    border-block-end-color: var(--mira-acc);
    color: var(--mira-ink);
}

.mira-auth__fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The design has no labels — placeholders carry the meaning — but the platform
   emits them and they are an accessibility win, so they are hidden rather than
   removed. */
.mira-auth__label,
.mira-auth .label-title {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.mira-auth input[type="text"],
.mira-auth input[type="email"],
.mira-auth input[type="password"],
.mira-auth input[type="tel"],
.mira-auth .form-control,
.mira-auth .form--control {
    inline-size: 100%;
    border: 1px solid var(--mira-ln);
    border-radius: 12px;
    background: var(--mira-bg);
    padding: 14px 16px;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--mira-ink);
    outline: none;
    transition: border-color .2s ease;
}

.mira-auth input:focus,
.mira-auth .form-control:focus,
.mira-auth .form--control:focus {
    border-color: var(--mira-acc);
}

/* The password field wraps a reveal toggle. `.auth-input-wrapper` is the
   platform's hook — the toggle script does a `closest()` on it — so the
   wrapper stays and is made relative here. */
.mira-auth__wrap {
    position: relative;
    display: block;
}

.mira-auth__wrap .toggle-password-btn {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--mira-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mira-auth__wrap .toggle-password-btn:hover {
    color: var(--mira-acc);
}

.mira-auth__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mira-auth__remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 11.5px;
    line-height: 1;
    color: var(--mira-sub);
    cursor: pointer;
}

.mira-auth__remember input[type="checkbox"] {
    inline-size: 15px;
    block-size: 15px;
    accent-color: var(--mira-acc);
    flex: none;
}

.mira-auth__forgot {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 11.5px;
    line-height: 1;
    color: var(--mira-acc);
}

.mira-auth__forgot:hover {
    color: var(--mira-acd);
}

/* ⚠️ PLAIN TEXT ONLY inside this button. The ajax-login component replaces its
   whole contents with `el.text('...')` while the request is in flight, so a
   nested <span> or icon is destroyed on first click and never comes back. */
.mira-auth__submit {
    padding: 15px;
    border: 0;
    border-radius: 999px;
    background: var(--mira-acc);
    color: var(--mira-oac);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease;
}

.mira-auth__submit:hover {
    background: var(--mira-acd);
    color: var(--mira-oac);
}

.mira-auth__or {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mira-auth__or::before,
.mira-auth__or::after {
    content: "";
    flex: 1;
    block-size: 1px;
    background: var(--mira-ln);
}

.mira-auth__or span {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 11px;
    line-height: 1;
    color: var(--mira-sub);
}

.mira-auth__socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mira-auth__social {
    flex: 1;
    min-inline-size: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border: 1px solid var(--mira-ln);
    border-radius: 999px;
    background: transparent;
    color: var(--mira-ink);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    transition: background .25s ease;
}

.mira-auth__social:hover {
    background: var(--mira-sf);
    color: var(--mira-ink);
}

.mira-auth__perks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-block-start: 6px;
}

.mira-auth__perk {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: var(--mira-sub);
}

.mira-auth__perk .o-i {
    font-size: 16px;
    color: var(--mira-acc);
    flex: none;
}

.mira-auth .error-wrap:empty {
    display: none;
}

/* "More details" — the register form's collapsible. The design draws three
   fields; the platform needs nine, so the rest fold away rather than being
   dropped (which would break validation) or shown (which would not be the
   design). */
.mira-auth__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: var(--mira-sub);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease;
}

.mira-auth__more:hover {
    color: var(--mira-acc);
}

/* "(Optional)" on the collapsible trigger. It sits beside the trigger label
   rather than after the chevron, so `margin-inline-end: auto` pushes the
   chevron to the far edge and keeps the qualifier tied to the words it
   qualifies. Lighter weight: it is a qualifier, not a second label.

   It earns its place: the three fields inside really ARE optional, and saying
   so is what stops a shopper hunting for a required field in there. */
.mira-auth__more-opt {
    margin-inline-end: auto;
    font-weight: 400;
    font-size: 11px;
    color: var(--mira-sub);
    opacity: .8;
}

.mira-auth__more .o-i {
    font-size: 18px;
    transition: transform .3s ease;
}

/* ⚠️ The platform's toggle is `slideToggle()`, which writes an INLINE
   `display` onto the element — it does not add a class. So this block must NOT
   set `display:none` in CSS: jQuery would then animate to `display:block` and
   fight a stylesheet rule it cannot see, and on first paint the block would be
   visible because slideToggle has not run yet.

   `hidden` on the ELEMENT is the honest way to start closed: jQuery's
   slideToggle removes it on the first open and owns the property from then on.

   The chevron is rotated off `.auth-collapse-icon.rotated`, the class the
   script actually toggles — not a class on the button. */
.mira-auth__extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-block-end: 4px;
}

.mira-auth__extra[hidden] {
    display: none;
}

.mira-auth__more .auth-collapse-icon.rotated {
    transform: rotate(180deg);
}

/* The live state/city autocomplete. The <ul> is positioned against
   `.mira-auth__wrap`, which is why that wrapper is `position:relative`. */
.mira-auth .auth-dropdown {
    position: absolute;
    inset-block-start: calc(100% + 4px);
    inset-inline: 0;
    z-index: 20;
    margin: 0;
    padding: 6px;
    max-block-size: 220px;
    overflow-y: auto;
    list-style: none;
    background: var(--mira-pp);
    border: 1px solid var(--mira-ln);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(var(--mira-ink-rgb), .12);
}

.mira-auth .auth-dropdown li {
    padding: 9px 12px;
    border-radius: 8px;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--mira-ink);
    cursor: pointer;
    border: 0;
    background: transparent;
}

.mira-auth .auth-dropdown li:hover {
    background: var(--mira-sf);
    color: var(--mira-acc);
}


/* ---------------------------------------------------------------------------
   8. Account dashboard — SF:1483-1524.
   --------------------------------------------------------------------------- */

.mira-dash {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 3cqi, 40px);
    align-items: flex-start;
}

.mira-dash__side {
    flex: 0 1 240px;
    min-inline-size: min(240px, 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mira-dash__who {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--mira-ln);
    border-radius: 18px;
    background: var(--mira-pp);
    margin-block-end: 10px;
}

.mira-dash__avatar {
    inline-size: 48px;
    block-size: 48px;
    object-fit: cover;
    border-radius: 50%;
    flex: none;
    background: var(--mira-sf);
}

/* No uploaded photo. The design always draws one, so rather than an empty grey
   circle this is the accent-tinted placeholder the rest of the theme uses for
   a missing image. */
.mira-dash__avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mira-acc);
}

.mira-dash__avatar--empty .o-i {
    font-size: 24px;
}

/* `render_image_markup_by_attachment_id()` emits a bare <img> with no class of
   ours, so the avatar sizing is applied to whatever image lands in the card. */
.mira-dash__who > img {
    inline-size: 48px;
    block-size: 48px;
    object-fit: cover;
    border-radius: 50%;
    flex: none;
    background: var(--mira-sf);
}

.mira-dash__who-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-inline-size: 0;
}

.mira-dash__who-n {
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1;
    color: var(--mira-ink);
}

.mira-dash__who-t {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 11px;
    line-height: 1;
    color: var(--mira-sub);
}

.mira-dash__nav {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    border-radius: 999px;
    background: transparent;
    color: var(--mira-sub);
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 13px;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
}

.mira-dash__nav:hover {
    background: var(--mira-sf);
    color: var(--mira-ink);
}

.mira-dash__nav.is-active {
    background: var(--mira-acc);
    color: var(--mira-oac);
}

.mira-dash__nav .o-i {
    font-size: 18px;
}

.mira-dash__main {
    flex: 1 1 min(400px, 100%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-inline-size: 0;
}

.mira-dash__hi {
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: clamp(26px, 3.4cqi, 42px);
    line-height: 1.1;
    color: var(--mira-ink);
}

.mira-dash__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    gap: 12px;
}

.mira-dash__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--mira-ln);
    border-radius: 16px;
    background: var(--mira-pp);
}

.mira-dash__stat-v {
    font-family: var(--mira-display);
    font-weight: 600;
    font-size: 26px;
    line-height: 1;
    color: var(--mira-acd);
}

.mira-dash__stat-l {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--mira-sub);
}

.mira-dash__panel {
    border: 1px solid var(--mira-ln);
    border-radius: 18px;
    background: var(--mira-pp);
    overflow: hidden;
}

.mira-dash__panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-block-end: 1px solid var(--mira-ln);
    flex-wrap: wrap;
}

.mira-dash__panel-t {
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    color: var(--mira-ink);
}

.mira-dash__seeall {
    margin-inline-start: auto;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 11.5px;
    line-height: 1;
    color: var(--mira-acc);
}

.mira-dash__seeall:hover {
    color: var(--mira-acd);
}

.mira-dash__order {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-block-end: 1px solid var(--mira-ln);
    flex-wrap: wrap;
}

.mira-dash__order:last-child {
    border-block-end: 0;
}

.mira-dash__order-no {
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1;
    color: var(--mira-ink);
    min-inline-size: 88px;
}

.mira-dash__order-d {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 11.5px;
    line-height: 1;
    color: var(--mira-sub);
}

.mira-dash__pill {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--mira-sf);
    color: var(--mira-acd);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
}

/* A completed order is the one status the design fills with the accent. */
.mira-dash__pill--done {
    background: var(--mira-acc);
    color: var(--mira-oac);
}

.mira-dash__order-total {
    margin-inline-start: auto;
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1;
    color: var(--mira-acd);
    white-space: nowrap;
}

.mira-dash__order-go {
    inline-size: 32px;
    block-size: 32px;
    border: 1px solid var(--mira-ln);
    border-radius: 50%;
    background: transparent;
    color: var(--mira-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: background .2s ease, border-color .2s ease;
}

.mira-dash__order-go:hover {
    background: var(--mira-sf);
    border-color: var(--mira-acc);
}

.mira-dash__order-go .o-i {
    font-size: 15px;
}

.mira-dash__empty {
    padding: 26px 20px;
    text-align: center;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--mira-sub);
}

/* Cancel — destructive, so it reads as a quiet link rather than competing with
   the row's chevron. */
.mira-dash__cancel {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--mira-sub);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 11.5px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease;
}

.mira-dash__cancel:hover {
    color: var(--mira-acd);
}

.mira-dash__order .order-cancel-form {
    margin: 0;
}

/* Paginator. The platform emits Bootstrap's `ul.pagination`, which is styled
   here to the chips the rest of the theme uses rather than left as bootstrap
   blue. */
.mira-dash__pager {
    display: flex;
    justify-content: center;
}

.mira-dash__pager .pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mira-dash__pager .page-link,
.mira-dash__pager .page-item > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 34px;
    block-size: 34px;
    padding: 0 10px;
    border: 1px solid var(--mira-ln);
    border-radius: 999px;
    background: transparent;
    color: var(--mira-ink);
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.mira-dash__pager .page-link:hover {
    border-color: var(--mira-acc);
    color: var(--mira-acc);
}

.mira-dash__pager .page-item.active > span,
.mira-dash__pager .page-item.active .page-link {
    background: var(--mira-acc);
    border-color: var(--mira-acc);
    color: var(--mira-oac);
}

.mira-dash__pager .page-item.disabled > span,
.mira-dash__pager .page-item.disabled .page-link {
    opacity: .45;
}

/* Back to the order list. */
.mira-dash__back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    color: var(--mira-sub);
    transition: color .2s ease;
}

.mira-dash__back:hover {
    color: var(--mira-acc);
}

.mira-dash__back .o-i {
    font-size: 17px;
}

/* The invoice sheet's status pill is an accent FILL, which is right for a
   completed order and too loud for one still in progress. The soft variant is
   the same pill on the surface tint. Declared here rather than in mira-flow.css
   because this is the screen that needs it — the invoice itself only ever shows
   a finished order. */
.mira-inv__status--soft {
    background: var(--mira-sf);
    color: var(--mira-acd);
}


/* ---------------------------------------------------------------------------
   9. Sale — SF:1444-1479.

   An ink hero with a countdown, then the shop's own product grid. The card is
   NOT redeclared here: `.mira-pcard` from mira-shop.css already draws it, and
   a second copy is exactly the cross-layer collision the layer check exists to
   catch.
   --------------------------------------------------------------------------- */

.mira-sale__hero {
    background: var(--mira-ink);
    color: var(--mira-bg);
    padding-block: clamp(36px, 4.6cqi, 64px);
    padding-inline: clamp(18px, 4.2cqi, 64px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: background .5s ease, color .5s ease;
}

.mira-sale__eyebrow {
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--mira-acc);
}

.mira:not([dir="rtl"]) .mira-sale__eyebrow {
    letter-spacing: .26em;
}

.mira-sale__title {
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: clamp(34px, 4.8cqi, 64px);
    line-height: 1.05;
}

.mira-sale__sub {
    max-inline-size: 50ch;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.8;
    opacity: .75;
}

.mira-sale__cd {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ⚠️ A NEUTRAL grey border, not a token. The hero ground is --mira-ink, which
   INVERTS in Noir & gold — a --mira-ln border would be invisible on one
   palette and glaring on another. The design writes rgba(128,128,128,.35)
   here for exactly that reason. */
.mira-sale__cd-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-inline-size: 64px;
    padding: 12px 10px;
    border: 1px solid rgba(128, 128, 128, .35);
    border-radius: 13px;
}

.mira-sale__cd-v {
    font-family: var(--mira-display);
    font-weight: 600;
    font-size: 26px;
    line-height: 1;
}

.mira-sale__cd-l {
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 9.5px;
    line-height: 1;
    text-transform: uppercase;
    opacity: .6;
}

.mira:not([dir="rtl"]) .mira-sale__cd-l {
    letter-spacing: .18em;
}

.mira-sale__body {
    padding-block: clamp(26px, 3.4cqi, 46px) clamp(46px, 6cqi, 84px);
    padding-inline: clamp(18px, 4.2cqi, 64px);
}


/* ---------------------------------------------------------------------------
   9b. Account panes — the mira-dash adoption layer.

   Nine account screens (change password, manage account, edit profile,
   downloads, package orders, support tickets, and the three refund screens)
   are SHARED blades: the other seven themes render the exact same files. They
   are therefore NOT edited. Instead Mira restyles the platform's own class
   names, scoped inside `.mira-dash__main` so nothing leaks to other themes.

   Selectors below were taken from an inventory of what those nine files
   actually emit, not guessed: form-group, form-control, btn (+ -primary
   /-danger/-info/-default/-sm/-xs), table/thead/tbody/tr/th/td, alert
   (+ -warning/-sm/-small), nav-item/nav-link/tab-pane, badge, title,
   single-order-summery, blog-pagination, dropdown-item.

   âš ï¸ Everything here is scoped to `.mira-dash__main`. Bootstrap's own
   `.btn`/`.table` rules still load on these pages, so each rule must be at
   least as specific as Bootstrap's — the `.mira-dash__main` prefix guarantees
   that without a single `!important`.
   --------------------------------------------------------------------------- */

/* --- headings the shared blades print ------------------------------------- */
.mira-dash__main .title,
.mira-dash__main h2,
.mira-dash__main h4,
.mira-dash__main h5 {
    font-family: var(--mira-display);
    font-weight: 500;
    font-size: 19px;
    line-height: 1.3;
    color: var(--mira-ink);
    margin-block-end: 14px;
}

.mira-dash__main .parent {
    margin-block: 0 !important;
}

/* --- forms ---------------------------------------------------------------- */
.mira-dash__main .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-block-end: 14px;
}

.mira-dash__main label {
    font-family: var(--mira-ui);
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mira-sub);
}

.mira-dash__main .form-control,
.mira-dash__main input[type="text"],
.mira-dash__main input[type="email"],
.mira-dash__main input[type="password"],
.mira-dash__main input[type="tel"],
.mira-dash__main input[type="number"],
.mira-dash__main select,
.mira-dash__main textarea {
    inline-size: 100%;
    border: 1px solid var(--mira-ln);
    border-radius: 12px;
    background: var(--mira-bg);
    padding: 13px 15px;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--mira-ink);
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease;
}

.mira-dash__main .form-control:focus,
.mira-dash__main select:focus,
.mira-dash__main textarea:focus {
    border-color: var(--mira-acc);
    box-shadow: none;
}

.mira-dash__main textarea {
    min-block-size: 120px;
    resize: vertical;
}

/* --- buttons -------------------------------------------------------------- */
.mira-dash__main .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: var(--mira-acc);
    color: var(--mira-oac);
    padding: 12px 22px;
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.mira-dash__main .btn:hover {
    background: var(--mira-acd);
    color: var(--mira-oac);
}

/* A secondary action reads as an outline, so the pane has one clear primary. */
.mira-dash__main .btn-default,
.mira-dash__main .btn-info {
    background: transparent;
    border: 1px solid var(--mira-ln);
    color: var(--mira-ink);
}

.mira-dash__main .btn-default:hover,
.mira-dash__main .btn-info:hover {
    background: var(--mira-sf);
    border-color: var(--mira-acc);
    color: var(--mira-ink);
}

/* Destructive keeps a real warning colour — it is the one place the palette
   must not soften the message. */
.mira-dash__main .btn-danger {
    background: var(--mira-neg-st);
    color: var(--mira-on-neg);
}

.mira-dash__main .btn-danger:hover {
    background: var(--mira-neg);
    color: var(--mira-on-neg);
}

.mira-dash__main .btn-sm,
.mira-dash__main .btn-xs {
    padding: 8px 15px;
    font-size: 11.5px;
}

.mira-dash__main .btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-start: 4px;
}

/* --- tables --------------------------------------------------------------- */
.mira-dash__main .table-responsive {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--mira-ln);
    background: var(--mira-pp);
}

.mira-dash__main table {
    inline-size: 100%;
    border-collapse: collapse;
    margin: 0;
}

.mira-dash__main thead th {
    background: var(--mira-sf);
    border: 0;
    padding: 14px 16px;
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mira-ink);
    white-space: nowrap;
    text-align: start;
}

.mira-dash__main tbody td {
    border: 0;
    border-block-start: 1px solid var(--mira-ln);
    padding: 15px 16px;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--mira-ink);
    vertical-align: middle;
}

/* The shared blades use `.table-striped`; the design's rows are plain, so the
   stripe is removed rather than recoloured. */
.mira-dash__main .table-striped tbody tr:nth-of-type(odd) > * {
    background: transparent;
    box-shadow: none;
}

.mira-dash__main tbody tr:hover > td {
    background: var(--mira-bg);
}

.mira-dash__main table img,
.mira-dash__main .product-img {
    max-inline-size: 64px;
    border-radius: 10px;
}

/* --- status pills, badges ------------------------------------------------- */
.mira-dash__main .badge,
.mira-dash__main button.status-open,
.mira-dash__main button.status-close,
.mira-dash__main button.low,
.mira-dash__main button.high {
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 999px;
    padding: 5px 12px;
    font-family: var(--mira-ui);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
}

.mira-dash__main .badge {
    background: var(--mira-sf);
    color: var(--mira-acd);
}

.mira-dash__main button.status-open,
.mira-dash__main button.low {
    background: var(--mira-pos-bg);
    color: var(--mira-pos);
}

.mira-dash__main button.status-close,
.mira-dash__main button.high {
    background: var(--mira-neg-bg);
    color: var(--mira-neg);
}

/* --- alerts --------------------------------------------------------------- */
.mira-dash__main .alert {
    border: 1px solid var(--mira-ln);
    border-radius: 14px;
    background: var(--mira-sf);
    padding: 14px 16px;
    font-family: var(--mira-ui);
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--mira-ink);
}

.mira-dash__main .alert-warning {
    background: var(--mira-cau-bg);
    border-color: var(--mira-cau-ln);
    color: var(--mira-cau);
}

.mira-dash__main .alert-sm,
.mira-dash__main .alert-small {
    padding: 9px 12px;
    font-size: 11.5px;
}

/* --- tabs (manage account) ------------------------------------------------ */
.mira-dash__main .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border: 0;
    border-block-end: 1px solid var(--mira-ln);
    margin-block-end: 20px;
}

.mira-dash__main .nav-item {
    margin: 0;
}

.mira-dash__main .nav-link {
    border: 0;
    border-block-end: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    padding: 11px 16px;
    font-family: var(--mira-ui);
    font-weight: 600;
    font-size: 12.5px;
    color: var(--mira-sub);
    transition: color .2s ease, border-color .2s ease;
}

.mira-dash__main .nav-link:hover {
    color: var(--mira-ink);
}

.mira-dash__main .nav-link.active {
    background: transparent;
    border-block-end-color: var(--mira-acc);
    color: var(--mira-ink);
}

/* --- order summary blocks (refunds, downloads) ---------------------------- */
.mira-dash__main .single-order-summery {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    border: 1px solid var(--mira-ln);
    border-radius: 14px;
    background: var(--mira-pp);
    padding: 14px 16px;
    margin-block-end: 12px;
    font-family: var(--mira-ui);
    font-size: 12.5px;
    color: var(--mira-ink);
}

.mira-dash__main .user-dahsboard-order-info-wrap small {
    display: block;
    font-family: var(--mira-ui);
    font-size: 12px;
    line-height: 1.7;
    color: var(--mira-sub);
}

.mira-dash__main .user-dahsboard-order-info-wrap strong {
    font-weight: 600;
    color: var(--mira-ink);
}

/* --- pagination the shared blades print ----------------------------------- */
.mira-dash__main .blog-pagination ul,
.mira-dash__main .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin-block-start: 18px;
    list-style: none;
}

.mira-dash__main .blog-pagination a,
.mira-dash__main .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 36px;
    block-size: 36px;
    border: 1px solid var(--mira-ln);
    border-radius: 999px;
    background: var(--mira-pp);
    padding-inline: 12px;
    font-family: var(--mira-ui);
    font-weight: 600;
    font-size: 12px;
    color: var(--mira-ink);
}

.mira-dash__main .blog-pagination .active a,
.mira-dash__main .page-item.active .page-link {
    background: var(--mira-acc);
    border-color: var(--mira-acc);
    color: var(--mira-oac);
}

/* --- misc ----------------------------------------------------------------- */
.mira-dash__main .dropdown-item {
    font-family: var(--mira-ui);
    font-size: 12.5px;
    color: var(--mira-ink);
}

.mira-dash__main .dropdown-item:hover {
    background: var(--mira-sf);
}

.mira-dash__main .text-deep {
    color: var(--mira-ink);
}

.mira-dash__main .border-bottom {
    border-block-end: 1px solid var(--mira-ln) !important;
}

/* The shared blades ship inline <style> blocks that hard-code a media upload
   button to `--main-color-one`, a legacy token Mira does not define. Rebind it
   locally so the widget picks up the palette instead of rendering unstyled. */
.mira-dash__main {
    --main-color-one: var(--mira-acc);
}

.mira-dash__main .media-upload-btn-wrapper .btn-info {
    border-radius: 999px !important;
    inline-size: auto !important;
}

/* ---------------------------------------------------------------------------
   10. Structural switch — 768px. The design has zero media queries; this is the
   one break, same as every earlier phase.
   --------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    /* The about pair stops being a composition and becomes two stacked images
       of equal height — the height difference only reads as intentional when
       they are side by side.

       A fixed height rather than a viewport-relative one: this rule lives
       inside a media query, where `cqi` would resolve against the container and
       `vw` against the viewport, and the two disagree once the page has
       padding. A plain value is honest at every width below the break. */
    .mira-about__img1,
    .mira-about__img2 {
        block-size: 300px;
        flex-basis: 100%;
    }

    /* The dashboard sidebar becomes a horizontal scroller above the content,
       rather than a 240px column squeezed against a phone edge. */
    .mira-dash__side {
        flex-basis: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-block-end: 4px;
        scrollbar-width: none;
    }

    .mira-dash__side::-webkit-scrollbar {
        display: none;
    }

    .mira-dash__who {
        display: none;
    }

    .mira-dash__nav {
        white-space: nowrap;
        flex: none;
    }

    /* The order row wraps to two lines; the total keeps its own line so it is
       never crushed against the status pill. */
    .mira-dash__order-total {
        margin-inline-start: 0;
    }

    .mira-auth__aside {
        min-block-size: 200px;
    }
}
