.alphamikro-app {
    --am-ink: #172033;
    --am-muted: #667085;
    --am-border: #e5e9f0;
    --am-primary: #5b45e0;
    --am-primary-dark: #4632c2;
    --am-surface: #ffffff;
    --am-soft: #f6f7fb;
    color: var(--am-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 24px 0 56px;
}

html { scroll-behavior: smooth; }

/* The standalone dashboard owns its own typeface.
   It did not until 2.34.0: the font was declared on `.alphamikro-app`, a
   wrapper the app branch never renders, so the page was silently inheriting
   whatever the active theme set on `body`. Removing the theme's stylesheet
   dropped it to Times New Roman, which is how the dependency was found.
   No web font is loaded on purpose - the market is Syria, and a blocked or
   slow font request is a blank page at the counter. Tahoma and Noto Sans
   Arabic carry the Arabic; both are already on the machines that need them. */
.alphamikro-dashboard-body {
    background: #f4f6fa !important;
    margin: 0 !important;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Segoe UI Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.alphamikro-dashboard-body::before, .alphamikro-dashboard-body::after { display: none !important; }
.alphamikro-dashboard-body .alphamikro-app { margin: 0 0 56px; }
.am-app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.am-sidebar { background: #17142e; box-sizing: border-box; color: #fff; display: flex; flex-direction: column; height: 100vh; left: 0; padding: 27px 20px 22px; position: sticky; top: 0; }
.am-sidebar-brand { align-items: center; color: #fff !important; display: flex; gap: 12px; text-decoration: none !important; }
.am-sidebar-brand > span:last-child { display: grid; }
.am-sidebar-brand strong { color: #fff; font-size: 17px; line-height: 1.1; }
.am-sidebar-brand small { color: #8f89ad; font-size: 10px; letter-spacing: .07em; margin-top: 3px; text-transform: uppercase; }
.am-brand-mark { align-items: center; background: linear-gradient(135deg, #725cff, #4d37d0); border-radius: 11px; box-shadow: 0 8px 22px rgba(91,69,224,.3); color: #fff; display: inline-flex; font-size: 12px; font-weight: 900; height: 40px; justify-content: center; letter-spacing: -.03em; width: 40px; }
.am-sidebar-nav { display: grid; gap: 3px; margin-top: 28px; }
.am-sidebar-nav a { align-items: center; border-radius: 10px; color: #a8a3bf !important; display: flex; font-size: 13px; font-weight: 650; gap: 11px; padding: 9px 12px; text-decoration: none !important; transition: .15s ease; }
.am-sidebar-nav a span { color: #77708f; font-size: 18px; text-align: center; width: 20px; }
.am-sidebar-nav a:hover, .am-sidebar-nav a.is-active { background: rgba(112,91,255,.16); color: #fff !important; }
.am-sidebar-nav a.is-active span { color: #9c8cff; }
.am-sidebar-nav .am-sidebar-generate { background: linear-gradient(135deg,rgba(114,92,255,.32),rgba(77,55,208,.2)); color: #fff !important; }
.am-sidebar-nav .am-sidebar-generate span { color: #b9adff; }
/* The app draws its navigation in here. A flex child needs `min-height: 0`
   before it will scroll instead of pushing the footer off a short screen -
   twelve screens plus brand and footer is taller than a 720px laptop. */
#alphamikro-nav { min-height: 0; overflow-y: auto; scrollbar-color: rgba(255,255,255,.22) transparent; scrollbar-width: thin; }
#alphamikro-nav::-webkit-scrollbar { width: 6px; }
#alphamikro-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 6px; }
#alphamikro-nav::-webkit-scrollbar-track { background: transparent; }
.am-sidebar .am-tabs { border: 0; display: grid; gap: 3px; margin: 0; padding: 0; }
.am-sidebar .am-tab { align-items: center; background: none; border: 0; border-radius: 10px; color: #a8a3bf; cursor: pointer; display: flex; font: inherit; font-size: 13px; font-weight: 650; margin: 0; padding: 9px 12px; text-align: start; transition: background .15s ease, color .15s ease; width: 100%; }
.am-sidebar .am-tab:hover { background: rgba(112,91,255,.12); color: #fff; }
.am-sidebar .am-tab--current { background: linear-gradient(135deg, rgba(114,92,255,.34), rgba(77,55,208,.18)); color: #fff; }
/* Logical, not `inset 3px 0 0`: the rail is on the right in Arabic. */
.am-sidebar .am-tab--current { border-inline-start: 3px solid #9c8cff; padding-inline-start: 9px; }
.am-sidebar .am-tab:focus-visible { outline: 2px solid #9c8cff; outline-offset: 1px; }
.am-app-main { min-width: 0; }
.am-app-topbar { align-items: center; background: #fff; border-bottom: 1px solid #e8eaf0; box-sizing: border-box; display: flex; height: 76px; justify-content: space-between; padding: 0 34px; position: sticky; top: 0; z-index: 20; }
.am-app-topbar > div:first-child { display: grid; }
.am-app-topbar > div:first-child span { color: #98a2b3; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.am-app-topbar > div:first-child strong { color: #22283a; font-size: 15px; }
.am-user-chip { align-items: center; display: flex; gap: 10px; }
.am-user-chip > span { align-items: center; background: #eae7ff; border-radius: 50%; color: #5b45e0; display: flex; font-size: 13px; font-weight: 850; height: 36px; justify-content: center; width: 36px; }
.am-user-chip > div { display: grid; }
/* A WordPress login is lower case by convention (`alphamikro`), and printed
   raw it reads like a database row rather than a person. Capitalised in CSS
   rather than in PHP so the stored value is untouched and a display name the
   owner sets themselves is still shown exactly as they typed it. */
.am-user-chip strong { text-transform: capitalize; }
.am-user-chip strong { color: #344054; font-size: 12px; }
.am-user-chip small { color: #98a2b3; font-size: 10px; }
.am-app-content { box-sizing: border-box; margin: 0 auto; max-width: 1280px; padding: 30px 34px 60px; }
.am-app-content .alphamikro-standalone { margin-left: 0; max-width: none; transform: none; width: auto; }

.alphamikro-standalone {
    margin-left: 50%;
    max-width: 1180px;
    transform: translateX(-50%);
    width: min(1180px, calc(100vw - 32px));
}

.am-hero {
    align-items: center;
    background: linear-gradient(125deg, #1c1746 0%, #4433a5 58%, #6b51ee 100%);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(39, 31, 98, .18);
    color: #fff;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    padding: 34px 38px;
    position: relative;
}

.am-hero::after {
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    content: "";
    height: 210px;
    position: absolute;
    right: -45px;
    top: -90px;
    width: 210px;
}

.am-hero h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; margin: 7px 0 10px; }
.am-hero p { color: rgba(255,255,255,.76); font-size: 15px; margin: 0; max-width: 650px; }
.am-eyebrow { color: #c8bcff; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.am-security-pill { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 10px 15px; position: relative; z-index: 1; white-space: nowrap; }

.am-metrics { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 18px 0; }
.am-metric { background: var(--am-surface); border: 1px solid var(--am-border); border-radius: 16px; box-shadow: 0 7px 24px rgba(24, 32, 51, .05); display: grid; padding: 20px 22px; }
.am-metric > span { color: var(--am-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.am-metric strong { color: var(--am-ink); font-size: 29px; line-height: 1.2; margin: 5px 0 1px; }
.am-metric small { color: #98a2b3; font-size: 12px; }
.am-quick-generate { align-items: center; background: linear-gradient(120deg,#211a50,#5b45e0); border-radius: 17px; box-shadow: 0 10px 28px rgba(60,45,160,.16); color: #fff; display: flex; gap: 24px; justify-content: space-between; margin: 18px 0; padding: 20px 23px; scroll-margin-top: 92px; }
.am-quick-generate > div:first-child span { color: #c6bcff; font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.am-quick-generate h3 { color: #fff; font-size: 19px; margin: 4px 0; }
.am-quick-generate p { color: rgba(255,255,255,.72); font-size: 11px; margin: 0; }
.am-quick-generate-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.am-quick-generate-actions a { align-items: center; background: #fff; border-radius: 10px; color: #3f2ab6 !important; display: flex; font-size: 11px; gap: 7px; padding: 10px 13px; text-decoration: none !important; }
.am-quick-generate-actions a span { font-size: 17px; line-height: 1; }
.am-quick-generate-actions a strong { white-space: nowrap; }

.am-panel { background: var(--am-surface); border: 1px solid var(--am-border); border-radius: 18px; box-shadow: 0 8px 30px rgba(24, 32, 51, .055); margin-top: 18px; overflow: hidden; padding: 26px; }
.am-panel-heading { align-items: start; display: flex; justify-content: space-between; margin-bottom: 22px; }
.am-panel-heading h3 { color: var(--am-ink); font-size: 21px; margin: 0 0 5px; }
.am-panel-heading p { color: var(--am-muted); font-size: 13px; margin: 0; }
.am-step { color: var(--am-primary); display: block; font-size: 10px; font-weight: 800; letter-spacing: .15em; margin-bottom: 5px; }

.am-table-wrap { overflow-x: auto; }
.am-table { border: 0; border-collapse: collapse; margin: 0; width: 100%; }
.am-table th { border: 0; border-bottom: 1px solid var(--am-border); color: #98a2b3; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 11px 13px; text-align: left; text-transform: uppercase; }
.am-table td { border: 0; border-bottom: 1px solid #eef0f4; color: var(--am-ink); font-size: 13px; padding: 15px 13px; vertical-align: middle; }
.am-table tr:last-child td { border-bottom: 0; }
.am-table td strong, .am-table td small { display: block; }
.am-table td small { color: #98a2b3; margin-top: 3px; }
.am-status { background: #eef0f4; border-radius: 999px; display: inline-block; font-size: 11px; font-weight: 800; padding: 6px 10px; }
.am-status-active { background: #e8f8ef; color: #167846; }
.am-status-draft { background: #fff4da; color: #8a5a00; }
.am-status-disabled { background: #fff0f0; color: #a52828; margin-inline-start: 6px; padding: 3px 8px; }
.am-row-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.am-inline-form { display: inline; margin: 0; }
.am-small-button { background: #eeebff; border: 1px solid #ded8ff; border-radius: 8px; color: #513bcf !important; cursor: pointer; display: inline-block; font: 750 11px/1.2 Inter, sans-serif; padding: 7px 10px; text-decoration: none !important; }
.am-generate-button { background: #5b45e0; border-color: #5b45e0; color: #fff !important; }
.am-test-button { background: #5b45e0; border-color: #5b45e0; color: #fff !important; }
.am-manage-panel { border-color: #dcd6ff; box-shadow: 0 12px 35px rgba(76,57,190,.1); }
.am-close-link { color: #98a2b3 !important; font-size: 25px; line-height: 1; text-decoration: none !important; }
.am-manage-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; }
.am-manage-grid > div { background: #f7f7fb; border-radius: 11px; display: grid; padding: 14px; }
.am-manage-grid span { color: #98a2b3; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.am-manage-grid strong { color: #344054; font-size: 13px; margin-top: 3px; }
.am-management-actions { align-items: stretch; display: grid; gap: 12px; grid-template-columns: auto 1fr; }
.am-management-actions .am-inline-form .am-small-button { height: 100%; min-height: 58px; }
.am-feature-action { align-items: center; background: #f8f7ff; border: 1px solid #e5e1ff; border-radius: 11px; display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; }
.am-feature-action strong, .am-feature-action span { display: block; grid-column: 1; }
.am-feature-action strong { color: #344054; font-size: 12px; }
.am-feature-action span { color: #777f8f; font-size: 11px; margin-top: 2px; }
.am-feature-action button, .am-feature-action > a { grid-column: 2; grid-row: 1 / span 2; }
.am-feature-action .am-feature-buttons { align-items: center; display: flex; gap: 7px; grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.am-feature-action button { background: #e9e7f2; border: 0; border-radius: 7px; color: #8e879f; cursor: not-allowed; padding: 7px 10px; }
.am-setup-checklist ol { counter-reset: am-setup; display: grid; gap: 11px; list-style: none; margin: 0; padding: 0; }
.am-setup-checklist li { background: #f8f9fc; border: 1px solid #eceef3; border-radius: 11px; counter-increment: am-setup; display: grid; grid-template-columns: 30px 1fr; padding: 13px 15px; }
.am-setup-checklist li::before { align-items: center; background: #eae7ff; border-radius: 50%; color: #5b45e0; content: counter(am-setup); display: flex; font-size: 11px; font-weight: 850; grid-row: 1 / span 3; height: 24px; justify-content: center; width: 24px; }
.am-setup-checklist strong { color: #344054; font-size: 12px; }
.am-setup-checklist span { color: #777f8f; font-size: 11px; margin-top: 2px; }
.am-setup-checklist code { background: #242038; border-radius: 6px; color: #d9d3ff; font-size: 11px; margin-top: 7px; padding: 7px 9px; width: fit-content; }

.am-empty { align-items: center; background: var(--am-soft); border: 1px dashed #d8dce6; border-radius: 14px; display: flex; flex-direction: column; padding: 32px 20px; text-align: center; }
.am-empty > span { align-items: center; background: #ebe8ff; border-radius: 50%; color: var(--am-primary); display: flex; font-size: 25px; height: 44px; justify-content: center; margin-bottom: 10px; width: 44px; }
.am-empty strong { font-size: 15px; }
.am-empty p { color: var(--am-muted); font-size: 13px; margin: 4px 0 0; }

.am-notice { border: 1px solid; border-radius: 13px; font-size: 13px; margin: 16px 0; padding: 13px 16px; }
.am-notice-error { background: #fff1f1; border-color: #ffc9c9; color: #9b2020; }
.am-notice-warning { background: #fff8e8; border-color: #f2d589; color: #6e5009; }
.am-notice-success { background: #ecfaf2; border-color: #a9e4c1; color: #176b3e; }

/* Toasts — 08-UI-UX-SPEC §4.2. Appended to <body>, outside .alphamikro-app, so
   colours are literal rather than tokens. Inline-end places them bottom-left in RTL. */
.am-toasts { bottom: 20px; box-sizing: border-box; display: grid; gap: 10px; inset-inline-end: 20px; max-width: min(380px, calc(100vw - 40px)); position: fixed; width: 100%; z-index: 100000; }
.am-toast { align-items: flex-start; animation: am-toast-in .18s ease-out; background: #fff; border: 1px solid #e5e9f0; border-inline-start: 4px solid #667085; border-radius: 12px; box-shadow: 0 12px 32px rgba(23,32,51,.16); box-sizing: border-box; color: #172033; display: flex; font: 13px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; gap: 10px; padding: 12px 12px 12px 14px; }
.am-toast-success { border-inline-start-color: #1f9d5a; }
.am-toast-error { border-inline-start-color: #d92d20; }
.am-toast-info, .am-toast-progress { border-inline-start-color: #5b45e0; }
.am-toast-warning { border-inline-start-color: #dc8a06; }
.am-toast-body { flex: 1; min-width: 0; }
.am-toast-body strong { display: block; font-weight: 700; }
.am-toast-body p { color: #475467; margin: 2px 0 0; overflow-wrap: anywhere; }
.am-toast-body small { align-items: center; color: #667085; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.am-toast-body code { background: #f2f4f7; border-radius: 4px; font-size: 11px; padding: 1px 4px; }
.am-toast-copy, .am-toast-close { background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
.am-toast-copy { color: #5b45e0; font-weight: 650; }
.am-toast-close { color: #98a2b3; font-size: 18px; line-height: 1; }
.am-toast-copy:focus-visible, .am-toast-close:focus-visible { outline: 2px solid #5b45e0; outline-offset: 2px; }
.am-toast-action { background: #5b45e0; border: 0; border-radius: 8px; color: #fff; cursor: pointer; display: inline-block; font: inherit; font-weight: 650; margin-top: 8px; padding: 5px 11px; }
.am-toast-action:hover { background: #4632c2; }
.am-toast-action:focus-visible { outline: 2px solid #5b45e0; outline-offset: 2px; }
.am-toast-progress { overflow: hidden; position: relative; }
.am-toast-progress::after { animation: am-toast-progress 1.2s ease-in-out infinite; background: #5b45e0; bottom: 0; content: ""; height: 2px; inset-inline-start: 0; position: absolute; width: 35%; }
[dir="rtl"] .am-toast-progress::after { animation-direction: reverse; }
@keyframes am-toast-progress { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
label.is-invalid input, label.is-invalid select, label.is-invalid textarea { border-color: #d92d20 !important; box-shadow: 0 0 0 3px rgba(217,45,32,.12); }
@keyframes am-toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .am-toast { animation: none; } .am-toast-progress::after { animation: none; opacity: .35; width: 100%; } }
@media print { .am-toasts { display: none !important; } }

.am-router-form { margin: 0; }
.am-form-grid { display: grid; gap: 18px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-field { margin: 0; }
.am-field label { color: #344054; display: block; font-size: 12px; font-weight: 750; margin-bottom: 7px; }
/* Checkboxes and radios are excluded: they are replaced glyphs, not boxes to
   type in, and `width: 100%` + `min-height: 44px` stretched them into bars.
   This matters twice over - the app reuses the `.am-field` class name, so this
   rule reaches its fields too. The oversized checkbox fixed in 2.30.0 was only
   half fixed: the app's own padding rule was corrected, but `min-height` here
   still won, because min-height beats height. */
.am-field input:not([type="checkbox"]):not([type="radio"]), .am-field select { background: #fff; border: 1px solid #d8dce6; border-radius: 10px; box-shadow: none; box-sizing: border-box; color: var(--am-ink); font: inherit; font-size: 14px; min-height: 44px; outline: 0; padding: 10px 12px; width: 100%; }
.am-field input[type="checkbox"], .am-field input[type="radio"] { accent-color: var(--am-primary); flex: 0 0 auto; height: 18px; margin: 5px 0; width: 18px; }
.am-field input:focus, .am-field select:focus { border-color: var(--am-primary); box-shadow: 0 0 0 3px rgba(91,69,224,.12); }
.am-field small { color: #98a2b3; display: block; font-size: 11px; margin-top: 5px; }
.am-transport-choice { background: #eef7f4; border: 1px solid #cce8df; border-radius: 10px; display: grid; min-height: 44px; padding: 9px 12px; }
.am-transport-choice strong { color: #176b55; font-size: 13px; }
.am-transport-choice small { color: #5f8177; margin: 1px 0 0; }
.am-full-field { grid-column: 1 / -1; }
.am-checkbox-field { background: #fff8e8; border: 1px solid #f2d589; border-radius: 10px; padding: 12px 14px; }
.am-checkbox-field label, .am-security-mode-form label { align-items: center; display: flex; gap: 8px; margin: 0; }
.am-checkbox-field input, .am-security-mode-form input { min-height: 0; width: auto; }
.am-security-mode-form { align-items: center; background: #fff8e8; border: 1px solid #f2d589; border-radius: 11px; display: grid; gap: 5px; margin: 0 0 18px; padding: 12px 14px; }
.am-security-mode-form label { color: #6e5009; font-size: 12px; font-weight: 750; }
.am-security-mode-form small { color: #8a6b25; font-size: 11px; }
.am-security-mode-form button { justify-self: start; margin-top: 5px; }
.am-edit-connection { background: #f8f9fc; border: 1px solid #e5e9f0; border-radius: 11px; margin: 0 0 18px; padding: 13px 15px; }
.am-edit-connection summary { color: #4433a5; cursor: pointer; font-size: 12px; font-weight: 800; }
.am-edit-connection form { margin-top: 15px; }
.am-edit-connection .am-primary-button { margin-top: 14px; }
.am-form-actions { align-items: center; border-top: 1px solid var(--am-border); display: flex; gap: 20px; justify-content: space-between; margin-top: 24px; padding-top: 20px; }
.am-form-actions > span { color: var(--am-muted); font-size: 12px; max-width: 590px; }
.am-primary-button { background: var(--am-primary); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-size: 13px; font-weight: 800; padding: 12px 19px; transition: .16s ease; white-space: nowrap; }
.am-primary-button:hover { background: var(--am-primary-dark); transform: translateY(-1px); }
.am-primary-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }

.am-hotspot-metrics { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 190px)); margin-bottom: 20px; }
.am-hotspot-metrics > div { background: #f7f7fb; border-radius: 12px; display: grid; padding: 14px 17px; }
.am-hotspot-metrics strong { color: var(--am-ink); font-size: 24px; }
.am-hotspot-metrics span { color: var(--am-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.am-hotspot-grid { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.6fr); }
.am-hotspot-grid h4 { color: var(--am-ink); font-size: 16px; margin: 0 0 12px; }
.am-voucher-form { background: #f8f7ff; border: 1px solid #e5e1ff; border-radius: 14px; display: grid; gap: 14px; padding: 20px; }
.am-voucher-form > p { color: var(--am-muted); font-size: 12px; line-height: 1.55; margin: -4px 0 3px; }
.am-voucher-form label { color: #344054; display: grid; font-size: 11px; font-weight: 750; gap: 6px; }
.am-voucher-form input, .am-voucher-form select, .am-voucher-form textarea { background: #fff; border: 1px solid #d8dce6; border-radius: 9px; box-sizing: border-box; color: var(--am-ink); font: 13px Inter, sans-serif; min-height: 42px; padding: 9px 11px; width: 100%; }
.am-voucher-form textarea { min-height: 78px; resize: vertical; }
.am-print-stage { align-items: center; background: #f4f2ff; border: 1px solid #ddd7ff; border-radius: 16px; display: flex; flex-direction: column; gap: 15px; margin: 25px 0; padding: 24px; }
.am-print-preview-scroll { box-sizing: border-box; max-height: 620px; overflow: auto; padding: 8px; width: 100%; }
.am-print-controls { align-items: center; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.am-print-controls p { color: var(--am-muted); font-size: 11px; margin: 0; max-width: 620px; }
.am-voucher-card { align-items: stretch; background: #fff; border: 1px solid #e5e5e5; box-shadow: 0 10px 30px rgba(24,32,51,.12); box-sizing: border-box; color: #111; display: flex; flex-direction: column; font-family: Arial,"Noto Sans Arabic",sans-serif; height: 380px; padding: 25px 34px 24px; width: 360px; }
.am-voucher-logo { align-items: center; display: flex; height: 116px; justify-content: center; margin-bottom: 14px; }
.am-voucher-logo img { display: block; max-height: 108px; max-width: 255px; object-fit: contain; }
.am-voucher-credentials { display: grid; gap: 12px; margin: 0 auto; width: 210px; }
.am-voucher-credentials > div { align-items: baseline; display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
.am-voucher-credentials span { font-size: 14px; }
.am-voucher-credentials strong { font: 400 14px/1.2 Arial,"Noto Sans Arabic",sans-serif; text-align: center; }
.am-voucher-card blockquote { border: 0; color: #111; direction: inherit; font-size: 12px; font-style: normal; line-height: 1.55; margin: 24px 0 0; min-height: 47px; padding: 0; text-align: center; unicode-bidi: plaintext; }
.am-voucher-card time { display: block; font-size: 13px; margin-top: auto; text-align: center; }
.am-hotspot-app { background: #fff; border: 1px solid var(--am-border); border-radius: 18px; box-shadow: 0 10px 35px rgba(24,32,51,.07); overflow: hidden; }
.am-hotspot-header { align-items: center; background: linear-gradient(120deg,#191531,#3c3180); color: #fff; display: flex; justify-content: space-between; padding: 24px 28px; }
.am-hotspot-header span { color: #bdb4f5; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.am-hotspot-header h2 { color: #fff; font-size: 25px; margin: 4px 0 0; }
.am-hotspot-header a { border: 1px solid rgba(255,255,255,.25); border-radius: 9px; color: #fff !important; font-size: 11px; padding: 8px 11px; text-decoration: none !important; }
.am-hotspot-header-actions { align-items: center; display: flex; gap: 8px; }
.am-hotspot-header .am-header-generate { background: #fff; border-color: #fff; color: #4934ca !important; font-weight: 800; }
.am-hotspot-header .am-header-generate.is-current { background: rgba(255,255,255,.15); color: #fff !important; }
.am-modal-overlay { align-items: center; background: rgba(18,15,43,.66); display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 10000; }
.am-user-edit-modal { background: #fff; border-radius: 20px; box-shadow: 0 24px 80px rgba(18,15,43,.28); max-height: 90vh; max-width: 820px; overflow: auto; padding: 28px; width: 100%; }
.am-user-edit-modal h3 { margin-top: 0; }
.am-limits-dialog { border: 0; border-radius: 18px; box-shadow: 0 24px 80px rgba(18,15,43,.28); max-width: 620px; padding: 26px; width: calc(100% - 32px); }
.am-limits-dialog::backdrop { background: rgba(18,15,43,.66); }
.am-hotspot-page { padding: 26px; }
.am-page-title { align-items: center; display: flex; justify-content: space-between; margin-bottom: 17px; }
.am-page-title h3 { color: var(--am-ink); font-size: 20px; margin: 0 0 4px; }
.am-page-title p { color: var(--am-muted); font-size: 12px; margin: 0; }
.am-page-title > strong { align-items: center; background: #eeebff; border-radius: 50%; color: #513bcf; display: flex; font-size: 16px; height: 42px; justify-content: center; width: 42px; }
.am-user-scroll { border: 1px solid var(--am-border); border-radius: 12px; max-height: 520px; overflow: auto; }
.am-user-scroll .am-table thead { background: #fff; position: sticky; top: 0; z-index: 2; }
.am-router-users-table { min-width: 1180px; }
.am-router-users-table td code { background: #f1f2f6; border-radius: 5px; color: #344054; font-size: 11px; padding: 4px 6px; }
.am-select-column { text-align: center !important; width: 36px; }
.am-select-column input { height: 16px; width: 16px; }
.am-comment-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-bulk-toolbar { align-items: center; background: #f7f7fb; border: 1px solid var(--am-border); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; padding: 11px; }
.am-bulk-toolbar select { background: #fff; border: 1px solid #d8dce6; border-radius: 8px; color: var(--am-ink); font: 12px Inter,sans-serif; min-height: 36px; padding: 7px 9px; }
.am-bulk-count { color: var(--am-muted); font-size: 11px; margin-inline-start: auto; }
.am-user-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.am-user-actions form { margin: 0; }
.am-danger-button { background: #fff0f0; border: 1px solid #ffcaca; border-radius: 8px; color: #a52828; cursor: pointer; font: 750 11px Inter,sans-serif; padding: 7px 10px; }
.am-user-actions button { white-space: nowrap; }
.am-generate-strip { background: #29263f; border-radius: 10px; color: #fff !important; display: block; font-size: 13px; font-weight: 800; letter-spacing: .06em; margin-top: 15px; padding: 16px; text-align: center; text-decoration: none !important; text-transform: uppercase; }
.am-generate-strip:hover { background: #3b365a; }
.am-user-edit-form, .am-card-generator, .am-settings-form { background: #f8f9fc; border: 1px solid #e5e9f0; border-radius: 14px; margin-bottom: 24px; padding: 22px; }
.am-user-edit-form h3, .am-card-generator h3 { color: var(--am-ink); margin: 0 0 18px; }
.am-control-grid, .am-settings-grid { display: grid; gap: 15px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 19px; }
.am-control-grid label, .am-settings-grid label { color: #344054; display: grid; font-size: 11px; font-weight: 750; gap: 6px; }
.am-control-grid input, .am-control-grid select, .am-control-grid textarea, .am-settings-grid input, .am-settings-grid select, .am-settings-grid textarea { background: #fff; border: 1px solid #d8dce6; border-radius: 9px; box-sizing: border-box; font: 13px Inter,sans-serif; min-height: 42px; padding: 9px 11px; width: 100%; }
.am-control-grid textarea, .am-settings-grid textarea { min-height: 90px; resize: vertical; }
.am-settings-grid textarea { line-height: 1.6; min-height: 260px; }
.am-span-all { grid-column: 1 / -1; }
.am-check { align-items: center !important; display: flex !important; flex-direction: row; }
.am-check input { min-height: 0 !important; width: auto !important; }
.am-form-buttons { align-items: center; display: flex; gap: 9px; }
.am-logo-preview { background: #fff; border: 1px solid #ddd; border-radius: 8px; max-height: 100px; max-width: 260px; object-fit: contain; padding: 8px; }
.am-print-sheet { display: grid; gap: 12px; grid-template-columns: repeat(2,360px); justify-content: center; }
.am-print-format-thermal-80 .am-print-sheet, .am-print-format-thermal-58 .am-print-sheet { grid-template-columns: 1fr; }
.am-print-format-thermal-80 .am-voucher-card { height: 78mm; padding: 6mm 7mm 5mm; width: 72mm; }
.am-print-format-thermal-58 .am-voucher-card { height: 90mm; padding: 5mm 4mm 4mm; width: 52mm; }
.am-print-format-thermal-80 .am-voucher-logo { height: 27mm; margin-bottom: 3mm; }
.am-print-format-thermal-58 .am-voucher-logo { height: 25mm; margin-bottom: 3mm; }
.am-print-format-thermal-80 .am-voucher-logo img { max-height: 26mm; max-width: 56mm; }
.am-print-format-thermal-58 .am-voucher-logo img { max-height: 24mm; max-width: 44mm; }
.am-print-format-thermal-80 .am-voucher-credentials { gap: 3mm; width: 48mm; }
.am-print-format-thermal-58 .am-voucher-credentials { gap: 2.5mm; width: 43mm; }
.am-print-format-thermal-58 .am-voucher-credentials span, .am-print-format-thermal-58 .am-voucher-credentials strong { font-size: 11px; }
.am-print-format-thermal-80 .am-voucher-card blockquote { font-size: 11px; margin-top: 5mm; min-height: 11mm; }
.am-print-format-thermal-58 .am-voucher-card blockquote { font-size: 10px; line-height: 1.45; margin-top: 5mm; min-height: 18mm; }
.am-print-format-thermal-80 .am-voucher-card time, .am-print-format-thermal-58 .am-voucher-card time { font-size: 11px; }

@media (max-width: 720px) {
    .am-app-shell { display: block; }
    .am-sidebar { align-items: center; bottom: 0; flex-direction: row; height: 66px; justify-content: center; left: 0; padding: 8px 12px; position: fixed; right: 0; top: auto; z-index: 50; }
    .am-sidebar-brand { display: none; }
    .am-sidebar-nav { display: flex; justify-content: space-around; margin: 0; width: 100%; }
    .am-sidebar-nav a { flex-direction: column; font-size: 9px; gap: 0; padding: 5px 15px; }
    .am-sidebar-nav a span { font-size: 18px; }
    #alphamikro-nav { display: block; overflow: visible; width: 100%; }
    .am-sidebar .am-tabs { display: flex; gap: 2px; margin: 0; mask-image: none; overflow-x: auto; padding: 0; width: 100%; }
    .am-sidebar .am-tab { flex: 0 0 auto; font-size: 11px; padding: 7px 11px; white-space: nowrap; width: auto; }
    .am-sidebar .am-tab--current { padding-inline-start: 8px; }
    .am-app-topbar { height: 64px; padding: 0 18px; }
    .am-user-chip > div { display: none; }
    .am-app-content { padding: 18px 14px 90px; }
    .am-hero { align-items: flex-start; flex-direction: column; gap: 20px; padding: 28px 24px; }
    .am-metrics { grid-template-columns: 1fr; }
    .am-quick-generate { align-items: stretch; flex-direction: column; }
    .am-quick-generate-actions { justify-content: stretch; }
    .am-quick-generate-actions a { flex: 1; justify-content: center; }
    .am-form-grid { grid-template-columns: 1fr; }
    .am-manage-grid, .am-management-actions { grid-template-columns: 1fr; }
    .am-hotspot-grid { grid-template-columns: 1fr; }
    .am-control-grid, .am-settings-grid { grid-template-columns: 1fr; }
    .am-span-all { grid-column: auto; }
    .am-print-sheet { grid-template-columns: 1fr; }
    .am-form-actions { align-items: stretch; flex-direction: column; }
    .am-primary-button { width: 100%; }
    .am-panel { padding: 20px 16px; }
    /* The sidebar becomes a fixed 66px bottom bar above, so a toast pinned at
       bottom: 20px lands on top of the navigation. Same fix as the app's. */
    .am-toasts { bottom: 78px; inset-inline: 12px; max-width: none; }
}

@media print {
    body.alphamikro-dashboard-body { background: #fff !important; }
    .am-sidebar, .am-app-topbar, .am-hero, .am-metrics, .am-quick-generate, .am-notice, .am-manage-panel, #am-routers, #am-add-router, .am-hotspot-header, .am-hotspot-page > :not(.am-print-stage), .am-print-controls { display: none !important; }
    .am-app-shell, .am-app-main, .am-app-content, .alphamikro-app, .am-hotspot-app, .am-hotspot-page, .am-print-stage, .am-print-preview-scroll { display: block !important; margin: 0 !important; max-height: none !important; max-width: none !important; overflow: visible !important; padding: 0 !important; width: auto !important; }
    .am-hotspot-app { border: 0 !important; box-shadow: none !important; }
    .am-print-sheet { display: grid !important; }
    .am-voucher-card { border: 0; box-shadow: none; margin: 0 auto; break-inside: avoid; page-break-inside: avoid; }
    .am-print-format-a4 .am-print-sheet { gap: 4mm; grid-template-columns: repeat(2,86mm); }
    .am-print-format-a4 .am-voucher-card { height: 88mm; padding: 6mm 8mm 5mm; width: 86mm; }
    .am-print-format-thermal-80 .am-voucher-card, .am-print-format-thermal-58 .am-voucher-card { break-after: page; }
    .am-print-format-thermal-80 .am-voucher-card:last-child, .am-print-format-thermal-58 .am-voucher-card:last-child { break-after: auto; }
}

/* Sign in and sign up are two cards in one place, swapped by `:target` so the
   whole thing works with no JavaScript - which matters because this is the
   first screen anyone handed a link ever sees, and the bundle has not loaded
   yet when they see it. The default is sign in; `#am-signup` flips them. */
.am-signup-card { display: none; }
.am-login-screen:has(#am-signup:target) .am-login-card:not(.am-signup-card) { display: none; }
.am-login-screen:has(#am-signup:target) .am-signup-card { display: block; }
.am-login-screen:has(#am-signup:target) .am-login-swap--to-signup { display: none; }
/* The forgotten-password card is a third sibling, swapped the same way. */
.am-login-screen:has(#am-forgot:target) .am-login-card:not(.am-forgot-card) { display: none; }
.am-login-screen:has(#am-forgot:target) .am-forgot-card { display: block; }
.am-login-screen:has(#am-forgot:target) .am-login-swap--to-signup { display: none; }
.am-login-card .am-login-forgot { color: #5b6878; margin-top: 4px; }
.am-login-card .am-login-forgot a { color: #5b45e0; opacity: 1; }

.am-login-swap { color: #fff; font-size: 13px; margin: 18px 0 0; text-align: center; width: 100%; }
.am-login-swap a { color: #fff; opacity: .85; }
.am-login-swap a:hover, .am-login-swap a:focus-visible { opacity: 1; }
.am-signup-card .am-login-swap { color: #5b6878; }
.am-signup-card .am-login-swap a { color: #5b45e0; opacity: 1; }
.am-login-card small { color: #98a2b3; display: block; font-size: 11px; margin-top: 5px; }

/* The honeypot: off-screen rather than display:none, because some bots skip
   hidden fields and fill the ones they can "see". */
.am-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.am-login-screen { align-items: center; flex-wrap: wrap; background: radial-gradient(circle at 80% 10%, #6650e6 0, #2d245e 32%, #17142e 74%); box-sizing: border-box; display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.am-login-card { background: #fff; border-radius: 20px; box-shadow: 0 28px 80px rgba(0,0,0,.28); box-sizing: border-box; max-width: 430px; padding: 38px; width: 100%; }
.am-login-card .am-brand-mark { margin-bottom: 22px; }
.am-login-eyebrow { color: #6b55e4; display: block; font-size: 10px; font-weight: 850; letter-spacing: .15em; margin-bottom: 7px; }
.am-login-card h1 { color: #1d2433; font: 750 27px/1.2 Inter, sans-serif; margin: 0 0 8px; }
.am-login-card > p { color: #667085; font: 13px/1.55 Inter, sans-serif; margin: 0 0 25px; }
.am-login-card form p { margin: 0 0 15px; }
.am-login-card label { color: #344054; display: block; font: 700 12px Inter, sans-serif; margin-bottom: 7px; }
/* Every input except the controls, rather than a list of types: the email
   field was styled by nothing at all because only text and password were
   named, so it fell back to the browser default - a narrow box with a
   black border, beside a full-width password field. A list like that
   silently drops each new type somebody adds. */
.am-login-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]) { border: 1px solid #d8dce6; border-radius: 10px; box-sizing: border-box; font: 14px Inter, sans-serif; min-height: 45px; padding: 10px 12px; width: 100%; }
.am-login-card .login-remember label { align-items: center; display: flex; font-weight: 500; gap: 7px; }
.am-login-card .button-primary { background: #5b45e0; border: 0; border-radius: 10px; color: #fff; cursor: pointer; font: 800 13px Inter, sans-serif; min-height: 44px; width: 100%; }

/* Access plans */
.am-plan-editor .am-panel-heading { align-items: flex-start; }
.am-plans-panel .am-table td small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.am-plan-select select { font-weight: 600; }
.am-plan-select small a, .am-plan-empty a { color: var(--am-primary); font-weight: 700; }
.am-plan-empty { background: var(--am-soft); border: 1px dashed #d8dce6; border-radius: 9px; color: var(--am-muted); display: block; font-size: 12px; font-weight: 500; line-height: 1.5; padding: 11px 13px; }
/* A plan owns these limits, so the fields it replaces read as unavailable. */
.am-control-grid label.is-plan-owned { opacity: .45; }
.am-control-grid label.is-plan-owned input, .am-control-grid label.is-plan-owned select { background: #f4f5f8; cursor: not-allowed; }

/* ================================================================ landing */

/* The public page reuses the dashboard's typeface and tokens on purpose: the
   thing someone sees before signing up should look like the thing they get. */
.am-landing-body { background: #0f0d21 !important; color: #e8e6f3; }

.am-lp-nav { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin: 0 auto; max-width: 1080px; padding: 22px 24px; }
.am-lp-brand { align-items: center; color: #fff; display: flex; gap: 12px; text-decoration: none; }
.am-lp-brand strong { display: block; font-size: 15px; }
.am-lp-brand small { color: #9b95c4; display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.am-lp-nav-links { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.am-lp-nav-links a { color: #cdc8ea; font-size: 14px; text-decoration: none; }
.am-lp-nav-links a:hover { color: #fff; }

/* The visitor's language. A <details> so it opens with no script; the list
   is anchored to the inline end so it never runs off a phone's screen, in
   either direction. */
.am-lang-switch { position: relative; }
.am-lang-switch summary { border: 1px solid rgba(205,200,234,.35); border-radius: 8px; color: #cdc8ea; cursor: pointer; font-size: 14px; list-style: none; padding: 8px 12px; white-space: nowrap; }
.am-lang-switch summary::-webkit-details-marker { display: none; }
.am-lang-switch summary::after { content: " \25BE"; }
.am-lang-switch summary:hover, .am-lang-switch[open] summary { color: #fff; border-color: rgba(255,255,255,.6); }
.am-lang-switch ul { background: #fff; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.28); inset-inline-end: 0; list-style: none; margin: 6px 0 0; min-width: 150px; padding: 6px; position: absolute; top: 100%; z-index: 20; }
.am-lang-switch li a { border-radius: 6px; color: #1d2433 !important; display: block; font-size: 14px; padding: 7px 10px; text-align: start; text-decoration: none; }
.am-lang-switch li a:hover, .am-lang-switch li a:focus { background: #f1effc; }
.am-lang-switch li a[aria-current] { font-weight: 700; }
.am-login-language { inset-inline-end: 24px; position: absolute; top: 20px; }
/* Room above the card for the switcher, which would otherwise sit on it. */
.am-login-screen { padding-top: 84px; position: relative; }

.am-lp-cta { background: #5b45e0; border-radius: 8px; color: #fff !important; display: inline-block; font-weight: 650; padding: 10px 18px; text-decoration: none; }
.am-lp-cta:hover { background: #6d59ea; }
.am-lp-cta--big { font-size: 16px; padding: 14px 26px; }

.am-lp { margin: 0 auto; max-width: 1080px; padding: 0 24px 80px; }

.am-lp-hero { padding: 56px 0 48px; }
.am-lp-hero h1 { color: #fff; font-size: clamp(30px, 5.4vw, 50px); line-height: 1.08; margin: 0 0 18px; max-width: 18ch; }
.am-lp-lede { color: #c3bde4; font-size: 18px; line-height: 1.6; margin: 0 0 28px; max-width: 58ch; }
.am-lp-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 20px; }
.am-lp-note { color: #918ab8; font-size: 13px; }

.am-lp-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 56px; }
.am-lp-grid article { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 22px; }
.am-lp-grid h2 { color: #fff; font-size: 17px; margin: 0 0 8px; }
.am-lp-grid p { color: #b8b2da; font-size: 14.5px; line-height: 1.6; margin: 0; }

.am-lp-pricing { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 34px; text-align: center; }
.am-lp-pricing h2 { color: #fff; font-size: clamp(22px, 3.4vw, 30px); margin: 0 0 18px; }
.am-lp-price { align-items: baseline; display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.am-lp-price strong { color: #fff; font-size: 46px; line-height: 1; }
.am-lp-price span { color: #a49dcd; font-size: 14px; }
.am-lp-price-alt { color: #a49dcd; font-size: 14px; margin: -10px 0 18px; text-align: center; }
.am-lp-list { color: #c3bde4; display: inline-grid; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; text-align: start; }
.am-lp-list li { padding-inline-start: 22px; position: relative; }
.am-lp-list li::before { color: #7de0c4; content: "✓"; inset-inline-start: 0; position: absolute; }
.am-lp-argument { color: #b8b2da; font-size: 15px; line-height: 1.65; margin: 0 auto 26px; max-width: 62ch; }

/* Saying what it cannot do, in the same voice as what it can. An installer who
   finds the limit themselves on day two does not come back. */
/* The close. Centred like the pricing block above it, because both end in the
   same button and two differently-aligned run-ups to one call to action read
   as two pages. */
.am-lp-close { margin-top: 56px; text-align: center; }
.am-lp-close h2 { color: #fff; font-size: clamp(21px, 3.2vw, 28px); margin: 0 0 26px; }
.am-lp-close-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 34px; text-align: start; }
.am-lp-close-grid article { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 22px; }
.am-lp-close-grid h3 { color: #fff; font-size: 16px; margin: 0 0 8px; }
.am-lp-close-grid p { color: #b8b2da; font-size: 14.5px; line-height: 1.6; margin: 0; }
.am-lp-close .am-lp-note { display: block; margin-top: 18px; }

.am-lp-foot { border-top: 1px solid rgba(255,255,255,.09); color: #8b84b4; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin: 0 auto; max-width: 1080px; padding: 22px 24px 40px; font-size: 13px; }
.am-lp-foot a { color: #cdc8ea; }

@media (max-width: 720px) {
    .am-lp-hero { padding: 34px 0 34px; }
    .am-lp-pricing { padding: 24px 18px; }
    .am-lp-cta--big { display: block; text-align: center; }
}

/* A support session: unmistakable, and the way out in the same line. Sticky
   rather than fixed so it takes its own height instead of covering the topbar. */
.am-support-banner { align-items: center; background: #b42318; color: #fff; display: flex; font: 600 13px/1.4 Inter, sans-serif; gap: 16px; justify-content: space-between; padding: 10px 18px; position: sticky; top: 0; z-index: 100000; }
.am-support-banner a { background: #fff; border-radius: 8px; color: #b42318; flex: none; font-weight: 800; padding: 6px 12px; text-decoration: none; }

/* The manual, read inside the dashboard. Prose first: a comfortable measure,
   tables that scroll inside themselves rather than the page. */
.am-manual { background: #fff; border-radius: 16px; box-sizing: border-box; color: #2f2b47; font: 15px/1.7 Inter, sans-serif; margin: 0 auto; max-width: 820px; padding: 32px 36px; }
.am-manual h1 { font-size: 28px; margin: 0 0 12px; }
.am-manual h2 { border-top: 1px solid #ececf4; font-size: 22px; margin: 36px 0 12px; padding-top: 24px; scroll-margin-top: 72px; }
.am-manual h3 { font-size: 17px; margin: 26px 0 8px; scroll-margin-top: 72px; }
.am-manual p, .am-manual ul, .am-manual ol { margin: 0 0 14px; }
.am-manual li { margin: 0 0 6px; }
.am-manual a { color: #5b45e0; }
.am-manual code { background: #f4f6fa; border-radius: 5px; font: 13px ui-monospace, Consolas, monospace; padding: 1px 5px; unicode-bidi: isolate; }
.am-manual pre { background: #f4f6fa; border-radius: 10px; overflow-x: auto; padding: 14px; }
.am-manual pre code { background: none; padding: 0; }
.am-manual blockquote { background: #f6f4ff; border-inline-start: 4px solid #5b45e0; border-radius: 8px; margin: 0 0 16px; padding: 12px 16px; }
.am-manual blockquote > :last-child { margin-bottom: 0; }
.am-manual hr { border: 0; border-top: 1px solid #ececf4; margin: 28px 0; }
.am-manual-table { margin: 0 0 16px; overflow-x: auto; }
.am-manual table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.am-manual th, .am-manual td { border: 1px solid #ececf4; padding: 8px 12px; text-align: start; vertical-align: top; }
.am-manual th { background: #f4f6fa; }
@media (max-width: 640px) { .am-manual { border-radius: 0; padding: 22px 16px; } }

/* The real mark where "AM" used to stand in for it. The element keeps its size
   and shadow; the picture fills it and brings its own gradient. */
.am-brand-mark { background: none; padding: 0; overflow: hidden; }
.am-brand-mark img { border-radius: inherit; display: block; height: 100%; width: 100%; }

/* The counter page has no shell around it. */
body.alphamikro-counter-body { background: #f4f6fa; margin: 0; }

/* The account menu: the name in the topbar, opening onto the manual and sign-out. */
.am-account-menu { position: relative; }
.am-account-menu > summary { cursor: pointer; list-style: none; }
.am-account-menu > summary::-webkit-details-marker { display: none; }
.am-account-menu .am-user-chip { border-radius: 12px; padding: 4px 8px; }
.am-account-menu .am-user-chip:hover, .am-account-menu[open] .am-user-chip { background: #f4f2ff; }
.am-account-menu__caret { border: solid #98a2b3; border-width: 0 2px 2px 0; display: inline-block; height: 6px; margin-inline-start: 2px; transform: rotate(45deg) translateY(-2px); width: 6px; }
.am-account-menu[open] .am-account-menu__caret { transform: rotate(-135deg); }
.am-account-menu__panel { background: #fff; border: 1px solid #e8eaf0; border-radius: 14px; box-shadow: 0 18px 44px rgba(23,20,46,.18); display: grid; inset-inline-end: 0; min-width: 230px; overflow: hidden; position: absolute; top: calc(100% + 8px); z-index: 60; }
.am-account-menu__who { border-bottom: 1px solid #ececf4; display: grid; gap: 2px; padding: 12px 16px; }
.am-account-menu__who small { color: #98a2b3; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.am-account-menu__who strong { color: #22283a; font-size: 13px; overflow-wrap: anywhere; text-transform: none; }
.am-account-menu__panel a { color: #344054; font-size: 14px; padding: 11px 16px; text-decoration: none; }
.am-account-menu__panel a:hover, .am-account-menu__panel a:focus-visible { background: #f4f2ff; color: #5b45e0; }
@media (max-width: 760px) { .am-user-chip > div { display: none; } }
