/* All About Material 1.0.53 — brand cards (cover + logo tile), infinite scroll, AI assistant */

/* ---------- Brand grid ---------- */
.aam-site .aam-bcard-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important}
.aam-site .aam-bcard-grid[data-columns="2"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.aam-site .aam-bcard-grid[data-columns="3"]{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.aam-site .aam-bcard-grid[data-columns="6"]{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:16px!important}
@media (max-width:1100px){.aam-site .aam-bcard-grid,.aam-site .aam-bcard-grid[data-columns="4"],.aam-site .aam-bcard-grid[data-columns="6"]{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:860px){.aam-site .aam-bcard-grid,.aam-site .aam-bcard-grid[data-columns]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}}
@media (max-width:560px){.aam-site .aam-bcard-grid,.aam-site .aam-bcard-grid[data-columns]{grid-template-columns:1fr!important}}

.aam-site .aam-bcard{--logo:96px;position:relative;display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e7e8ea;border-radius:14px;overflow:hidden;color:var(--aam-ink,#101828)!important;text-decoration:none;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.aam-site .aam-bcard:hover{transform:translateY(-3px);border-color:#d7d9dd;box-shadow:0 18px 40px -18px rgba(16,24,40,.28)}
.aam-site .aam-bcard:focus-visible{outline:3px solid var(--brand,#940000);outline-offset:3px}

/* cover */
.aam-bcard-cover{position:relative;display:grid;aspect-ratio:16/7;overflow:hidden;background:#eef0f2}
.aam-bcard-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.aam-bcard:hover .aam-bcard-cover img{transform:scale(1.04)}
.aam-bcard-cover.is-count-2{grid-template-columns:1fr 1fr;gap:2px}
.aam-bcard-cover.is-count-3{grid-template-columns:1.4fr 1fr;grid-template-rows:1fr 1fr;gap:2px}
.aam-bcard-cover.is-count-3 img:first-child{grid-row:1/3}
.aam-bcard-cover.is-colour{background:linear-gradient(135deg,color-mix(in srgb,var(--brand,#940000) 78%,#000) 0%,var(--brand,#940000) 55%,color-mix(in srgb,var(--brand,#940000) 62%,#fff) 100%)}
.aam-bcard-cover.is-colour::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(115deg,rgba(255,255,255,.07) 0 1px,transparent 1px 22px)}
.aam-bcard-word{position:absolute;left:-4px;bottom:-.18em;font:800 clamp(56px,7vw,92px)/1 "Poppins",sans-serif;letter-spacing:-.03em;color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.32);white-space:nowrap;text-transform:uppercase}

/* logo tile sitting on the bottom edge of the cover */
.aam-bcard-logo{position:relative;z-index:2;display:grid;place-items:center;width:var(--logo);height:var(--logo);margin:calc(var(--logo) * -1) auto 0;background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.aam-site .aam-bcard-logo img{width:100%;height:100%;object-fit:contain;padding:10%;box-sizing:border-box}
.aam-bcard-logo.is-initials b{font:700 30px/1 "Poppins",sans-serif;color:var(--brand,#940000);letter-spacing:-.02em}

/* text */
.aam-bcard-body{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 18px 24px;text-align:center}
.aam-bcard-name{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;font:600 19px/1.3 "Poppins",sans-serif;color:var(--aam-ink,#101828)}
.aam-bcard-name span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.aam-bcard-tick{flex:none;width:20px;height:20px;fill:var(--aam-primary,#940000)}
.aam-bcard-tick .aam-bcard-tick-mark{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.aam-bcard-segment,.aam-bcard-meta{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;color:#8b9098}
.aam-bcard-segment{font:600 12.5px/1.35 "DM Sans",sans-serif;letter-spacing:.09em;text-transform:uppercase}
.aam-bcard-meta{font-size:14.5px;line-height:1.35}
.aam-bcard-segment svg,.aam-bcard-meta svg{flex:none;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.aam-bcard.is-listing .aam-bcard-meta:last-child{color:#a2a6ad}

/* denser columns */
.aam-bcard-grid[data-columns="6"] .aam-bcard{--logo:72px}
.aam-bcard-grid[data-columns="6"] .aam-bcard-name{font-size:16px}
.aam-bcard-grid[data-columns="6"] .aam-bcard-segment{font-size:11px}
@media (max-width:560px){.aam-site .aam-bcard{--logo:84px}.aam-bcard-name{font-size:18px}}

/* homepage heading copy */
.aam-featured-brands-heading p{margin:8px 0 0;color:var(--aam-muted)}

/* ---------- Infinite scroll ---------- */
.aam-infinite-on [data-aam-infinite-pager]{display:none!important}
.aam-infinite-status{display:flex;align-items:center;justify-content:center;gap:12px;margin:34px 0 0;color:var(--aam-muted);font-size:14px}
.aam-infinite-dots{display:inline-flex;gap:5px}
.aam-infinite-dots i{width:7px;height:7px;border-radius:50%;background:var(--aam-primary,#940000);opacity:.25;animation:aam-dot 1s infinite ease-in-out}
.aam-infinite-dots i:nth-child(2){animation-delay:.15s}.aam-infinite-dots i:nth-child(3){animation-delay:.3s}
.aam-infinite-status.is-done .aam-infinite-dots{display:none}
@keyframes aam-dot{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
.aam-bcard.is-arriving{animation:aam-arrive .45s ease both}
@keyframes aam-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.aam-bcard,.aam-bcard-cover img,.aam-bcard.is-arriving{transition:none;animation:none}}
/* keep icons inline with text when a line wraps */
.aam-site .aam-bcard-name,.aam-site .aam-bcard-segment,.aam-site .aam-bcard-meta{display:block;text-align:center}
.aam-site .aam-bcard-name span{display:inline;-webkit-line-clamp:unset}
.aam-site .aam-bcard-tick,.aam-site .aam-bcard-segment svg,.aam-site .aam-bcard-meta svg{display:inline-block;vertical-align:-3px;margin-right:6px}
.aam-site .aam-bcard-tick{vertical-align:-2px}
.aam-site .aam-bcard-body{gap:8px}

/* ---------- Mira — AI material concierge ---------- */
.aam-ai-launcher{position:fixed;right:22px;bottom:22px;z-index:900;display:inline-flex;align-items:center;gap:10px;padding:8px 18px 8px 8px;border:0;border-radius:999px;background:#111827;color:#fff;font:600 14.5px/1 "DM Sans",sans-serif;box-shadow:0 14px 34px -10px rgba(17,24,39,.55);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,opacity .2s}
.aam-ai-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 40px -10px rgba(17,24,39,.6)}
.aam-ai-launcher:focus-visible{outline:3px solid var(--aam-primary,#940000);outline-offset:3px}
.aam-ai-is-open .aam-ai-launcher,.aam-search-open .aam-ai-launcher,.aam-sheet-locked .aam-ai-launcher,.aam-modal-open .aam-ai-launcher{opacity:0;pointer-events:none}
.aam-ai-orb{position:relative;flex:none;width:34px;height:34px;border-radius:50%;background:conic-gradient(from 200deg,#ff7a59,#940000,#6d28d9,#0ea5e9,#ff7a59);animation:aam-orb 6s linear infinite}
.aam-ai-orb::after{content:"";position:absolute;inset:3px;border-radius:50%;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.95),rgba(255,255,255,.25) 38%,rgba(17,24,39,.15) 70%)}
.aam-ai-orb i{position:absolute;inset:-4px;border-radius:50%;background:inherit;filter:blur(8px);opacity:.45;z-index:-1}
.aam-ai-orb.is-large{width:42px;height:42px}
@keyframes aam-orb{to{transform:rotate(360deg)}}

.aam-ai-panel{position:fixed;right:22px;bottom:22px;z-index:1000;display:flex;flex-direction:column;width:min(410px,calc(100vw - 32px));height:min(640px,calc(100vh - 44px));background:#fff;border:1px solid #e6e7ea;border-radius:22px;box-shadow:0 30px 80px -20px rgba(16,24,40,.45);overflow:hidden;opacity:0;transform:translateY(16px) scale(.98);transform-origin:bottom right;pointer-events:none;visibility:hidden;transition:opacity .22s ease,transform .22s ease,visibility 0s .22s}
.aam-ai-panel.is-open{opacity:1;transform:none;pointer-events:auto;visibility:visible;transition:opacity .22s ease,transform .22s ease}
.aam-ai-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:linear-gradient(180deg,#fff,#fafafa);border-bottom:1px solid #eef0f2}
.aam-ai-head div{flex:1;min-width:0}
.aam-ai-head strong{display:block;font:700 16px/1.2 "Poppins",sans-serif;color:#111827}
.aam-ai-head small{display:block;color:#667085;font-size:12.5px;margin-top:2px}
.aam-ai-icon-btn{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:#475467;cursor:pointer}
.aam-ai-icon-btn:hover{background:#f2f4f7}
.aam-ai-icon-btn svg,.aam-ai-send svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.aam-ai-log{flex:1;overflow-y:auto;padding:18px 16px 8px;background:#f8f9fb;scroll-behavior:smooth}
.aam-ai-msg{display:flex;flex-direction:column;margin:0 0 12px}
.aam-ai-msg.is-user{align-items:flex-end}
.aam-ai-bubble{max-width:88%;padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.55;color:#1d2939;background:#fff;border:1px solid #eceef1;border-top-left-radius:6px}
.aam-ai-msg.is-user .aam-ai-bubble{background:#111827;color:#fff;border-color:#111827;border-radius:16px;border-top-right-radius:6px;white-space:pre-wrap}
.aam-ai-msg.is-error .aam-ai-bubble{background:#fff6f5;border-color:#fde2df;color:#912018}
.aam-ai-bubble p{margin:0 0 8px}.aam-ai-bubble p:last-child{margin:0}
.aam-ai-bubble ul{margin:4px 0 8px;padding-left:18px}.aam-ai-bubble li{margin:3px 0}
.aam-ai-bubble a{color:var(--aam-primary,#940000);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.aam-ai-dots{display:inline-flex;gap:4px;padding:3px 0}
.aam-ai-dots i{width:7px;height:7px;border-radius:50%;background:#98a2b3;animation:aam-dot 1s infinite ease-in-out}
.aam-ai-dots i:nth-child(2){animation-delay:.15s}.aam-ai-dots i:nth-child(3){animation-delay:.3s}
.aam-ai-chips{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 12px}
.aam-ai-chips[hidden]{display:none}
.aam-ai-chips button{padding:8px 12px;border:1px solid #e1e4e8;border-radius:999px;background:#fff;color:#344054;font:500 13px/1.2 "DM Sans",sans-serif;cursor:pointer;text-align:left}
.aam-ai-chips button:hover{border-color:var(--aam-primary,#940000);color:var(--aam-primary,#940000)}

.aam-ai-cards{display:grid;gap:8px;width:100%;margin-top:8px}
.aam-ai-card{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #eceef1;border-radius:14px;background:#fff}
.aam-ai-card-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.aam-ai-card-thumb{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:10px;overflow:hidden;background:#fff;border:1px solid #eef0f2}
.aam-ai-card-thumb img{width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box}
.aam-ai-card.is-material .aam-ai-card-thumb img{object-fit:cover;padding:0}
.aam-ai-card-thumb.is-initials{background:var(--brand,#940000);color:#fff;font:700 15px "Poppins",sans-serif;border:0}
.aam-ai-card-text{min-width:0;display:flex;flex-direction:column}
.aam-ai-card-text strong{display:flex;align-items:center;gap:5px;font-size:14px;line-height:1.3;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aam-ai-card-text small{color:#667085;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aam-ai-card-text em{font-style:normal;color:#98a2b3;font-size:12px}
.aam-ai-tick{flex:none;width:14px;height:14px;border-radius:50%;background:var(--aam-primary,#940000) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/10px no-repeat}
.aam-ai-card-ask{flex:none;padding:8px 12px;border:1px solid #e1e4e8;border-radius:10px;background:#fff;color:#344054;font:600 12.5px/1 "DM Sans",sans-serif;cursor:pointer}
.aam-ai-card-ask:hover{border-color:var(--brand,#940000);color:var(--brand,#940000)}

.aam-ai-form{display:flex;align-items:flex-end;gap:8px;padding:12px 12px 6px;background:#fff;border-top:1px solid #eef0f2}
.aam-ai-form textarea{flex:1;min-height:44px;max-height:120px;margin:0;padding:11px 14px;border:1px solid #d9dde3;border-radius:14px;background:#fff;color:#101828;font:400 15px/1.4 "DM Sans",sans-serif;resize:none;box-shadow:none}
.aam-ai-form textarea:focus{outline:0;border-color:var(--aam-primary,#940000);box-shadow:0 0 0 3px rgba(148,0,0,.1)}
.aam-ai-send{flex:none;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:14px;background:var(--aam-primary,#940000);color:#fff;cursor:pointer}
.aam-ai-send:hover{filter:brightness(1.08)}
.aam-ai-foot{margin:0;padding:0 14px 10px;background:#fff;color:#98a2b3;font-size:11.5px;text-align:center}

/* phones: launcher above the tab bar, chat as a full-screen sheet */
@media (max-width:780px){
  .aam-has-tabbar .aam-ai-launcher{bottom:calc(76px + env(safe-area-inset-bottom,0px));right:14px}
  .aam-ai-launcher{padding:6px 14px 6px 6px;font-size:13.5px}
  .aam-ai-launcher .aam-ai-orb{width:30px;height:30px}
  .aam-typing .aam-ai-launcher{opacity:0;pointer-events:none}
  .aam-ai-panel{inset:0;right:0;bottom:0;width:100%;height:100%;height:100dvh;border-radius:0;border:0;transform:translateY(24px)}
  .aam-ai-is-open,.aam-ai-is-open body{overflow:hidden}
  .aam-ai-is-open .aam-tabbar{display:none}
  .aam-ai-form{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:reduce){.aam-ai-orb{animation:none}.aam-ai-panel{transition:none}}

/* ---------- 1.0.54 account tools ---------- */
.aam-site .aam-btn-team-edit{border-style:dashed}
.aam-enquiry-email-field small,.aam-limit-override small,.aam-email-change-note{display:block;margin-top:6px;color:var(--aam-muted);font-size:12.5px;line-height:1.5;font-weight:400}
.aam-limit-override-row{display:flex;gap:8px;flex-wrap:wrap}
.aam-limit-override-row select{flex:1 1 220px}.aam-limit-override-row input{flex:0 1 140px}
.aam-upload-warning{grid-column:1/-1;margin:10px 0 0;padding:10px 12px;border-radius:10px;background:#fff4f2;border:1px solid #fbd5cf;color:#912018;font-size:13.5px}
.aam-inline-check{display:flex!important;align-items:center;gap:8px;margin-top:8px!important;font-weight:500!important;font-size:13px!important;color:#475467!important}
.aam-inline-check input{width:auto!important;min-height:0!important}

/* account email */
.aam-email-change-panel{margin-top:24px}
.aam-email-change-body{padding:20px 22px 22px}
.aam-email-current{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin:0 0 14px}
.aam-email-current span{color:var(--aam-muted);font-size:13px}
.aam-email-current strong{font-size:15px}
.aam-email-pending{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:12px 14px;border-radius:12px;background:#eef6ff;border:1px solid #cfe2fb}
.aam-email-pending .dashicons{color:#1d4ed8;width:20px;height:20px;flex:none}
.aam-email-pending div{flex:1}.aam-email-pending small{display:block;color:#475467}
.aam-email-pending form{margin:0}
.aam-email-change-form{padding:0!important}
.aam-email-change-section{padding-top:0!important}

/* directory listings editor */
.aam-admin-listings-panel{margin-top:24px}
.aam-listings-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:16px 22px;border-bottom:1px solid var(--aam-line,#e7e8ea)}
.aam-listings-toolbar .aam-filter-search{flex:1 1 260px}
.aam-listings-toolbar .aam-filter-search input{width:100%;height:44px;padding-left:40px;border:1px solid #d8dde3;border-radius:10px}
.aam-listings-filters{display:flex;flex-wrap:wrap;gap:6px}
.aam-listings-filters button{padding:8px 12px;border:1px solid #e1e4e8;border-radius:999px;background:#fff;font:600 13px "DM Sans",sans-serif;color:#475467;cursor:pointer}
.aam-listings-filters button b{margin-left:4px;color:#98a2b3;font-weight:600}
.aam-listings-filters button.is-active{background:#111827;border-color:#111827;color:#fff}.aam-listings-filters button.is-active b{color:#cbd5e1}
.aam-listings-results[aria-busy=true]{opacity:.55}
.aam-listing-row{display:flex;align-items:center;gap:14px;padding:12px 22px;border-bottom:1px solid #f0f1f3}
.aam-listing-logo{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:10px;border:1px solid #eceef1;background:#fff;overflow:hidden}
.aam-listing-logo img{width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box}
.aam-listing-logo b{width:100%;height:100%;display:grid;place-items:center;background:var(--brand,#940000);color:#fff;font:700 15px "Poppins",sans-serif}
.aam-listing-info{flex:1;min-width:0}
.aam-listing-info strong{display:block;font-size:15px}
.aam-listing-info small{display:block;color:var(--aam-muted);font-size:12.5px}
.aam-listing-flags{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.aam-listing-flags em{padding:2px 8px;border-radius:999px;background:#f2f4f7;color:#667085;font:600 11px/1.6 "DM Sans",sans-serif;font-style:normal}
.aam-listing-flags em.is-hidden{background:#fff4e5;color:#a35a00}.aam-listing-flags em.is-ok{background:#e8f8f2;color:#087453}
.aam-listing-actions{display:flex;gap:6px}
.aam-listing-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:14px 22px;color:var(--aam-muted);font-size:13px}
.aam-listing-pager span{margin-right:auto}
.aam-listing-dialog{width:min(820px,calc(100vw - 24px))!important;max-height:calc(100vh - 40px);overflow:auto}
.aam-listing-form-head h3{margin:2px 0 4px;font-size:22px}.aam-listing-form-head p{margin:0;color:var(--aam-muted)}
.aam-listing-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.aam-listing-terms details{border:1px solid #e7e8ea;border-radius:10px;padding:8px 12px}
.aam-listing-terms summary{cursor:pointer;font-weight:600;font-size:13.5px}
.aam-listing-terms details div{display:grid;gap:4px;margin-top:8px}
.aam-listing-terms label{display:flex!important;align-items:center;gap:8px;font-weight:500!important;font-size:13px!important}
.aam-listing-terms input{width:auto!important;min-height:0!important}
.aam-listing-form-actions{display:flex;flex-wrap:wrap;gap:8px}
.aam-listing-form-actions .aam-listing-delete{margin-left:auto}
@media (max-width:780px){
  .aam-listing-row{flex-wrap:wrap;padding:12px 16px}.aam-listing-actions{width:100%}.aam-listing-actions .aam-btn{flex:1}
  .aam-listing-terms{grid-template-columns:1fr}
  .aam-listing-form-actions .aam-listing-delete{margin-left:0}
}
.aam-admin-dashboard #admin-listings:not(.is-active){display:none!important}

/* Initial avatars (no uploaded photo/logo) — same look as the dashboard */
.aam-avatar-initial{display:inline-grid!important;place-items:center;flex:none;border-radius:50%;background:var(--aam-primary,#940000);color:#fff;font-family:"DM Sans",sans-serif;font-weight:700;line-height:1;text-transform:uppercase;box-sizing:border-box}
.aam-profile-toggle .aam-avatar-initial{width:44px!important;height:44px!important;font-size:18px!important;box-shadow:0 0 0 3px #fff,0 6px 16px -6px rgba(16,24,40,.35)}

/* ===== 1.0.59 — dashboard-set prices, client discounts, yearly renewal ===== */
.aam-client-price-tag{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;background:#ecfdf3;border:1px solid #abefc6;color:#067647;font:700 11.5px/1.4 "DM Sans",sans-serif;letter-spacing:.02em;vertical-align:middle}
.aam-client-price-tag::before{content:"";width:6px;height:6px;border-radius:50%;background:#17b26a}
.aam-pricing-price.is-client-price .aam-pricing-was{flex-wrap:wrap;row-gap:6px}
.aam-renew-box{display:grid;gap:10px;width:100%}
.aam-renew-sum{margin:0;font-size:14px;color:var(--aam-muted)}.aam-renew-sum strong{color:var(--aam-text,#101828)}
.aam-renew-note{color:var(--aam-muted);font-size:12.5px;line-height:1.45}

/* Billing: plan status */
.aam-plan-status{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.6fr) auto;gap:20px;align-items:center;margin:0 0 18px;padding:18px 20px;border:1px solid #e4e7ec;border-radius:16px;background:#fff}
.aam-plan-status h3{margin:2px 0 4px;font-size:20px}.aam-plan-status p{margin:0;color:var(--aam-muted);font-size:14px}
.aam-plan-status dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.aam-plan-status dt{font-size:12px;color:var(--aam-muted)}.aam-plan-status dd{margin:2px 0 0;font-weight:700;font-size:15px}
.aam-plan-status-note{max-width:220px;color:var(--aam-muted);font-size:12.5px;line-height:1.45}
.aam-plan-status.is-due{border-color:#fedf89;background:linear-gradient(0deg,#fffcf5,#fffcf5)}
.aam-plan-status.is-urgent{border-color:#fda29b;background:#fffbfa}
.aam-plan-status.is-urgent dl>div:first-child dd{color:#b42318}
@media (max-width:900px){.aam-plan-status{grid-template-columns:1fr}.aam-plan-status .aam-btn{justify-self:start}}

/* Team dashboard: prices + client discounts */
.aam-pricing-admin{display:grid;gap:18px;margin:18px 0 22px}
.aam-pa-card{border:1px solid #e4e7ec;border-radius:16px;background:#fff;padding:18px 20px}
.aam-pa-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}
.aam-pa-head h3{margin:0 0 4px;font-size:17px}.aam-pa-head p{margin:0;color:var(--aam-muted);font-size:13.5px}
.aam-pa-count{padding:4px 10px;border-radius:999px;background:#f2f4f7;font-size:12.5px;font-weight:600;white-space:nowrap}
.aam-pa-discount{display:grid;grid-template-columns:auto auto 1fr;gap:4px 12px;align-items:center;margin-bottom:12px}
.aam-pa-discount>span:first-child{font-weight:600;font-size:14px}.aam-pa-discount small{color:var(--aam-muted)}
.aam-pa-input{display:inline-flex;align-items:center;gap:6px;border:1px solid #d0d5dd;border-radius:10px;padding:0 10px;background:#fff}
.aam-pa-input input{border:0!important;box-shadow:none!important;padding:8px 0!important;width:110px;min-height:0!important;background:transparent!important}
.aam-pa-input em{font-style:normal;color:var(--aam-muted);font-size:13px}
.aam-pa-discount .aam-pa-input input{width:56px}
.aam-pa-table{width:100%;border-collapse:collapse}.aam-pa-table th{font-size:12.5px;text-align:left;color:var(--aam-muted);font-weight:600;padding:8px 10px;border-bottom:1px solid #eaecf0}
.aam-pa-table th small{font-weight:400}.aam-pa-table td{padding:10px;border-bottom:1px solid #f2f4f7;vertical-align:middle}
.aam-pa-foot{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:12px 0 0}.aam-pa-foot small{color:var(--aam-muted);max-width:620px;line-height:1.5}
.aam-cd-prices span{display:block;font-size:13px;white-space:nowrap}.aam-cd-prices s{color:#98a2b3}
.aam-cd-actions{display:flex;gap:6px;align-items:flex-start;justify-content:flex-end}
.aam-cd-edit,.aam-cd-add{position:relative}
.aam-cd-edit>summary,.aam-cd-add>summary{list-style:none;cursor:pointer}.aam-cd-edit>summary::-webkit-details-marker,.aam-cd-add>summary::-webkit-details-marker{display:none}
.aam-cd-edit[open]>form{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:min(560px,86vw);padding:16px;border:1px solid #e4e7ec;border-radius:14px;background:#fff;box-shadow:0 20px 40px -16px rgba(16,24,40,.25)}
.aam-cd-add{margin-top:14px}.aam-cd-add[open]>form{margin-top:12px;padding:16px;border:1px dashed #d0d5dd;border-radius:14px;background:#fcfcfd}
.aam-cd-brand{display:grid;gap:4px;margin-bottom:10px}.aam-cd-brand span{font-weight:600;font-size:13.5px}
.aam-cd-fields{display:grid;gap:10px;margin-bottom:12px}
.aam-cd-row{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end}
.aam-cd-row>label{display:grid;gap:4px;flex:1 1 160px}.aam-cd-row>label>span{font-size:12.5px;font-weight:600;color:var(--aam-text-2,#344054)}
.aam-cd-row>label small{font-weight:400;color:var(--aam-muted)}
.aam-cd-row input,.aam-cd-row select{width:100%}
.aam-cd-row [hidden]{display:none!important}
.aam-cd-plans{flex:2 1 260px;display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;border:0}
.aam-cd-plans legend{font-size:12.5px;font-weight:600;margin-bottom:4px;padding:0}
.aam-cd-plans label{display:inline-flex;gap:6px;align-items:center;font-size:13.5px}.aam-cd-plans label small{color:var(--aam-muted)}
.aam-cd-hint{flex-basis:100%;color:var(--aam-muted);font-size:12px}
.aam-cd-note{flex:2 1 240px}
.aam-cd-preview{display:flex;flex-wrap:wrap;gap:6px 14px;margin:8px 0 2px;font-size:13px}.aam-cd-preview s{color:#98a2b3}
.aam-client-pricing-field{padding:14px;border:1px solid #d1fadf;border-radius:14px;background:#f6fef9}
@media (max-width:700px){.aam-pa-discount{grid-template-columns:1fr auto}.aam-pa-discount small{grid-column:1/-1}.aam-pa-foot{flex-direction:column;align-items:stretch}.aam-cd-actions{justify-content:flex-start}}
.aam-pa-input[hidden],[data-aam-pa-sale][hidden]{display:none!important}
.aam-cd-fields input:not([type=checkbox]),.aam-cd-fields select,.aam-cd-brand input{height:40px;padding:0 12px!important;border:1px solid #d0d5dd!important;border-radius:10px!important;background:#fff!important;font:500 14px "DM Sans",sans-serif;color:#101828;box-shadow:0 1px 2px rgba(16,24,40,.05)!important;box-sizing:border-box}
.aam-cd-fields input:focus,.aam-cd-fields select:focus,.aam-cd-brand input:focus{outline:0;border-color:var(--aam-primary,#940000)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--aam-primary,#940000) 12%,transparent)!important}
.aam-cd-plans input[type=checkbox]{width:16px;height:16px;accent-color:var(--aam-primary,#940000)}
.aam-cd-table .aam-status{text-transform:none}
.aam-cd-table td.aam-cd-actions{display:table-cell;white-space:nowrap;text-align:right}
.aam-cd-actions>details,.aam-cd-actions>form{display:inline-block;vertical-align:top;margin-left:6px;text-align:left}

/* ===== 1.0.60 — UI fixes: header avatar letter, close icons, editor drawer buttons ===== */
/* Header avatar: older rules forced display:block, pushing the letter to the top */
.aam-site .aam-profile-toggle{display:grid!important;place-items:center;padding:0!important;overflow:visible}
.aam-site .aam-profile-toggle .avatar.aam-avatar-initial,.aam-profile-toggle span.aam-avatar-initial{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;margin:0!important;padding:0!important;line-height:1!important;font-size:17px!important;letter-spacing:0;text-align:center;box-shadow:none!important}

/* One clean close icon everywhere (replaces the dashicon glyph and the "×" character) */
.aam-site .aam-modal-close,.aam-modal .aam-modal-close,.aam-dashboard-editor-modal .aam-modal-close{display:inline-grid!important;place-items:center!important;padding:0!important;font-size:0!important;line-height:0!important;color:#344054!important;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.aam-modal-close>.dashicons{display:none!important}
.aam-modal-close::before{content:"";display:block;width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat}
.aam-modal-close::after{content:none!important}
.aam-dashboard-editor-modal .aam-modal-close:hover{color:#fff!important}
.aam-app-mode .aam-modal-close:hover{color:#101828!important}

/* Editor drawer: action bar stays inside the drawer (no sideways scroll, buttons aligned) */
.aam-dashboard-editor-modal{overflow-x:hidden!important}
.aam-app-mode .aam-dashboard-editor-modal .aam-dashboard-editor-actions{margin:20px 0 0!important;padding:14px 28px!important;width:auto!important;box-sizing:border-box;justify-content:flex-start;align-items:center}
.aam-dashboard-editor-actions .aam-btn{min-width:120px;justify-content:center}
@media (max-width:640px){.aam-app-mode .aam-dashboard-editor-modal .aam-dashboard-editor-actions{padding:12px 18px!important}.aam-dashboard-editor-actions .aam-btn{flex:1 1 0}}
.aam-modal-close::before{transform:none!important;position:static!important;inset:auto!important;margin:0!important;border:0!important;border-radius:0!important}
@media (max-width:760px){.aam-site.aam-app-mode .aam-dashboard-editor-modal.is-open{left:0!important;right:0!important;width:100%!important}.aam-site.aam-app-mode .aam-modal.is-open .aam-modal-dialog{width:100%!important}}
.aam-site .aam-modal .aam-modal-close,.aam-site.aam-app-mode .aam-modal-close,.aam-site .aam-dashboard-editor-modal .aam-modal-close{font-size:0!important;line-height:0!important}
.aam-site:not(.aam-app-mode) .aam-modal .aam-modal-close{color:#fff!important}
