.abops {
  --ink: #30366f;
  --muted: #65796f;
  --line: #dce6df;
  --paper: #fff;
  --soft: #f3f6f2;
  --green: #678f3d;
  --purple: #464ea1;
  --lime: #d6df22;
  max-width: 1240px;
  margin: 18px auto 60px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.abops *, .abops *::before, .abops *::after { box-sizing: border-box; }
.abops a { color: inherit; }
.abops-header { min-height: 188px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 44px; border-radius: 22px; color: white; background: linear-gradient(125deg, #303878, #464ea1); box-shadow: 0 18px 40px rgba(48,56,120,.17); }
.abops-brand { display: flex; align-items: center; gap: 28px; }
.abops-brand img { width: 118px; height: 118px; object-fit: contain; }
.abops-eyebrow { color: #c8db85; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.abops h1 { margin: 6px 0 4px; color: white; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 58px); font-weight: 500; line-height: 1; }
.abops-header p { margin: 0; color: #c9d9d2; font-size: 14px; }
.abops-open { width: 118px; height: 118px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.07); }
.abops-open strong { color: var(--lime); font-family: Georgia, serif; font-size: 44px; font-weight: 500; line-height: .9; }
.abops-open span { margin-top: 7px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.abops-header-actions { display: flex; align-items: center; gap: 14px; }
.abops-logout button { padding: 8px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; color: white; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 800; cursor: pointer; }
.abops-login { width: min(460px, calc(100% - 32px)); margin: 58px auto; padding: 34px; border: 1px solid var(--line); border-top: 5px solid var(--lime); border-radius: 18px; background: white; box-shadow: 0 20px 55px rgba(48,56,120,.12); text-align: center; }
.abops-login > img { width: 150px; height: 150px; object-fit: contain; }
.abops-login .abops-eyebrow { display: block; margin-top: 4px; color: var(--green); }
.abops-login h1 { margin: 7px 0 8px; color: var(--ink); font-size: 42px; }
.abops-login > p { margin: 0 auto 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.abops-login form { text-align: left; }
.abops-login label { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.abops-login input { min-height: 48px; padding: 11px 12px; border: 1px solid #cbd8d0; border-radius: 9px; font-size: 16px; }
.abops-login form button { width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 9px; color: white; background: var(--purple); font-weight: 800; cursor: pointer; }
.abops-login-error { margin-bottom: 14px; padding: 11px; border: 1px solid #e3b4b4; border-radius: 8px; color: #813939; background: #fff0f0; font-size: 12px; text-align: left; }
.abops-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.abops-stats a { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; padding: 21px 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); text-decoration: none; overflow: hidden; }
.abops-stats a::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #b7c2bd; }
.abops-stats a.is-new::before { background: #d89049; }
.abops-stats a.is-progress::before { background: #6187aa; }
.abops-stats a.is-complete::before { background: #65956d; }
.abops-stats span { align-self: end; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.abops-stats strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink); font-family: Georgia, serif; font-size: 36px; font-weight: 500; }
.abops-stats small { color: var(--ink); font-size: 13px; }
.abops-filters { display: flex; align-items: end; gap: 12px; margin: 22px 0; }
.abops-filters label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.abops-filters select, .abops-status select { min-height: 40px; padding: 0 32px 0 11px; border: 1px solid #cbd8d0; border-radius: 8px; color: var(--ink); background: white; }
.abops-filters button, .abops-status button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; color: white; background: var(--purple); font-weight: 750; cursor: pointer; }
.abops-queue { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #f8faf7; }
.abops-queue-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 19px; }
.abops-queue-title h2 { margin: 4px 0 0; color: var(--ink); font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.abops-queue-title > span { color: var(--muted); font-size: 12px; }
.abops-cards { display: grid; gap: 12px; }
.abops-card { position: relative; display: grid; grid-template-columns: 1fr 210px; gap: 18px; padding: 19px 20px 19px 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 5px 18px rgba(23,59,48,.04); overflow: hidden; }
.abops-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #d89049; }
.abops-card.status-in_progress::before { background: #6187aa; }
.abops-card.status-complete::before { background: #65956d; }
.abops-card-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.abops-card-top time { color: var(--muted); font-size: 11px; }
.abops-type { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #805326; background: #fff1df; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.abops-type.type-maintenance { color: #5b547f; background: #eeebfa; }
.abops-type.type-propane { color: #4f6f31; background: #eef5e6; }
.abops-type.type-noise { color: #8a3d3d; background: #faeaea; }
.abops-type.type-wifi_issue { color: #3f6688; background: #e9f2fa; }
.abops-type.type-other { color: #45675b; background: #eaf3ee; }
.abops-card-main { min-width: 0; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; }
.abops-site { display: flex; flex-direction: column; padding-right: 18px; border-right: 1px solid var(--line); }
.abops-site small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.abops-site strong { margin-top: 4px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.abops-request h3 { margin: 0 0 4px; color: var(--ink); font-size: 15px; }
.abops-request > p { margin: 0 0 10px; color: #50645b; font-size: 13px; line-height: 1.5; }
.abops-guest { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 11px; }
.abops-guest a { color: var(--green); font-weight: 700; }
.abops-card-ok { color: #567c34; font-weight: 800; }
.abops-text-status { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-weight: 800; }
.abops-text-status.is-sent { color: #456b2f; background: #edf5e7; }
.abops-text-status.is-failed { color: #8a3d3d; background: #faeaea; }
.abops-text-status.is-not_configured { color: #6f6653; background: #f4f0e8; }
.abops-card-actions { align-self: center; display: grid; gap: 12px; }
.abops-status { align-self: center; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.abops-status label { grid-column: 1 / -1; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.abops-reply { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding-top: 11px; border-top: 1px solid var(--line); }
.abops-reply label { grid-column: 1 / -1; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.abops-reply select { min-width: 0; min-height: 40px; padding: 0 30px 0 10px; border: 1px solid #cbd8d0; border-radius: 8px; color: var(--ink); background: white; font-size: 11px; }
.abops-reply button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; color: white; background: var(--green); font-size: 11px; font-weight: 800; cursor: pointer; }
.abops-reply small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.abops-reply small.is-sent { color: #567c34; }
.abops-reply small.is-failed { color: #8a3d3d; }
.abops-reply small.is-not_configured { color: #6f6653; }
.abops-no-reply { align-self: center; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.abops-empty { padding: 58px 20px; color: var(--muted); text-align: center; }
.abops-empty .dashicons { width: 42px; height: 42px; color: #65956d; font-size: 42px; }
.abops-empty h3 { margin: 10px 0 3px; color: var(--ink); font-family: Georgia, serif; font-size: 24px; }
.abops-empty p { margin: 0; }

@media (max-width: 782px) {
  .abops { margin-top: 8px; }
  .abops-header { min-height: 154px; padding: 27px 24px; border-radius: 15px; }
  .abops-brand { gap: 14px; }
  .abops-brand img { width: 72px; height: 72px; }
  .abops-open { width: 86px; height: 86px; }
  .abops-header-actions { align-items: flex-end; flex-direction: column; }
  .abops-open strong { font-size: 34px; }
  .abops-stats { grid-template-columns: 1fr; }
  .abops-filters { align-items: stretch; flex-direction: column; }
  .abops-filters select, .abops-filters button { width: 100%; max-width: none; }
  .abops-queue { padding: 18px 12px; }
  .abops-card { grid-template-columns: 1fr; padding: 16px 15px 16px 19px; }
  .abops-card-main { grid-template-columns: 92px minmax(0, 1fr); gap: 13px; }
  .abops-site { padding-right: 12px; }
  .abops-site strong { font-size: 20px; }
  .abops-status { grid-template-columns: 1fr auto; }
  .abops-reply { grid-template-columns: minmax(0, 1fr) auto; }
}

/* 2.5 — iOS-inspired operations */
.abops {
  --ink: #1c1c1e;
  --muted: #6e6e73;
  --line: rgba(60,60,67,.13);
  --paper: #fff;
  --soft: #f2f2f7;
  max-width: 1180px;
  padding: 18px;
  border-radius: 34px;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, sans-serif;
}
.abops-header { min-height: 146px; padding: 22px 26px; border: .5px solid var(--line); border-radius: 26px; color: var(--ink); background: rgba(255,255,255,.92); box-shadow: 0 10px 32px rgba(0,0,0,.07); backdrop-filter: blur(18px); }
.abops-brand { gap: 18px; }
.abops-brand img { width: 92px; height: 92px; }
.abops-eyebrow { color: var(--green); letter-spacing: .12em; }
.abops h1 { margin: 4px 0; color: var(--ink); font-family: inherit; font-size: clamp(34px, 4.5vw, 50px); font-weight: 740; letter-spacing: -.045em; }
.abops-header p { color: var(--muted); }
.abops-open { width: auto; height: auto; min-width: 102px; padding: 13px 16px; border: 0; border-radius: 18px; background: #f0f1fa; }
.abops-open strong { color: var(--purple); font-family: inherit; font-size: 34px; font-weight: 740; }
.abops-open span { color: var(--muted); letter-spacing: .04em; }
.abops-logout button { border: 0; border-radius: 12px; color: var(--purple); background: #f0f1fa; }
.abops-session-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.abops-refresh, .abops-logout button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px; border: 0; border-radius: 11px; color: var(--purple); background: #f0f1fa; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.abops-login { border: .5px solid var(--line); border-top: 0; border-radius: 28px; box-shadow: 0 22px 60px rgba(0,0,0,.12); }
.abops-login > img { width: 124px; height: 124px; }
.abops-login h1 { font-size: 38px; }
.abops-login input { border: .5px solid var(--line); border-radius: 14px; background: #f2f2f7; }
.abops-login form button { border-radius: 14px; box-shadow: 0 8px 18px rgba(70,78,161,.20); }
.abops-stats { gap: 10px; }
.abops-stats a { padding: 17px 19px; border: .5px solid var(--line); border-radius: 20px; box-shadow: 0 5px 16px rgba(0,0,0,.035); }
.abops-stats a::before { inset: auto 18px 13px 18px; width: auto; height: 3px; border-radius: 999px; }
.abops-stats strong { font-family: inherit; font-weight: 720; }
.abops-filters { padding: 4px; border-radius: 14px; background: rgba(118,118,128,.12); }
.abops-filters label { flex: 1; gap: 3px; padding-left: 8px; }
.abops-filters select, .abops-status select { min-height: 43px; border: 0; border-radius: 11px; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.abops-filters button, .abops-status button { min-height: 43px; border-radius: 11px; background: var(--purple); }
.abops-queue { padding: 22px; border: 0; border-radius: 26px; background: transparent; }
.abops-queue-title h2 { font-family: inherit; font-weight: 730; letter-spacing: -.03em; }
.abops-cards { gap: 10px; }
.abops-card { grid-template-columns: minmax(0,1fr) 250px; gap: 16px; padding: 18px 18px 18px 21px; border: .5px solid var(--line); border-radius: 22px; box-shadow: 0 6px 20px rgba(0,0,0,.045); }
.abops-card::before { inset: 14px auto 14px 0; width: 4px; border-radius: 0 999px 999px 0; }
.abops-type { padding: 5px 10px; letter-spacing: .04em; }
.abops-card-main { grid-template-columns: 112px minmax(0,1fr); }
.abops-site { border-right-color: var(--line); }
.abops-site strong { font-family: inherit; font-size: 23px; font-weight: 690; letter-spacing: -.02em; }
.abops-request h3 { font-size: 15px; font-weight: 690; }
.abops-text-status { border-radius: 999px; }
.abops-card-actions { padding: 10px; border-radius: 16px; background: #f2f2f7; }
.abops-reply { border-top-color: var(--line); }
.abops-reply select { min-height: 42px; border: 0; border-radius: 11px; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.abops-reply button { min-height: 42px; border-radius: 11px; }
.abops-empty-icon { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%; color: white; background: #34c759; font-size: 28px; font-weight: 750; }
.abops-empty h3 { font-family: inherit; font-weight: 700; }

@media (max-width: 782px) {
  .abops { margin: 0; padding: 10px; border-radius: 0; }
  .abops-header { min-height: 132px; padding: 20px 18px; border-radius: 22px; }
  .abops-brand img { width: 70px; height: 70px; }
  .abops-open { min-width: 84px; padding: 11px; }
  .abops-queue { padding: 18px 0; }
  .abops-card { grid-template-columns: 1fr; border-radius: 20px; }
  .abops-card-actions { padding: 9px; }
}

/* 2.14 — dedicated mobile staff portal */
@media (max-width: 600px) {
  .abops-login { width: calc(100% - 24px); margin: 22px auto; padding: 26px 18px; border-radius: 22px; }
  .abops-login > img { width: 88px; height: 88px; }
  .abops-login h1 { font-size: 31px; }
  .abops-login input, .abops-login form button { min-height: 52px; font-size: 16px; }
  .abops { width: 100%; padding: 8px; }
  .abops-header { min-height: 0; align-items: flex-start; gap: 10px; padding: 16px 13px; border-radius: 18px; }
  .abops-brand { min-width: 0; gap: 9px; }
  .abops-brand img { width: 44px; height: 44px; }
  .abops-brand h1 { margin-top: 2px; font-size: 25px; white-space: nowrap; }
  .abops-brand p { font-size: 11px; }
  .abops-header-actions { flex: 0 0 auto; gap: 7px; }
  .abops-open { min-width: 64px; padding: 8px; border-radius: 13px; }
  .abops-open strong { font-size: 27px; }
  .abops-open span { margin-top: 3px; font-size: 8px; }
  .abops-session-actions { gap: 5px; }
  .abops-refresh, .abops-logout button { min-height: 34px; padding: 6px 8px; font-size: 10px; }
  .abops-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
  .abops-stats a { display: flex; min-width: 0; flex-direction: column; gap: 2px; padding: 11px 9px 14px; border-radius: 14px; }
  .abops-stats span { font-size: 8px; }
  .abops-stats strong { grid-column: auto; grid-row: auto; order: -1; font-size: 27px; }
  .abops-stats small { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .abops-filters { gap: 7px; padding: 7px; }
  .abops-filters select, .abops-filters button { min-height: 46px; }
  .abops-queue { padding-top: 10px; }
  .abops-queue-title { padding: 8px 5px 13px; }
  .abops-queue-title h2 { font-size: 25px; }
  .abops-card-main { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .abops-card { padding: 15px 12px 15px 16px; }
  .abops-site { padding-right: 8px; }
  .abops-status select, .abops-status button, .abops-reply select, .abops-reply button { min-height: 46px; }
}

/* 2.8 — structured after-hours chat handoffs */
.abops-chat-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 10px !important; }
.abops-chat-meta > * { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 999px; color: #555; background: #f2f2f7; font-size: 10px; font-weight: 700; }
.abops-chat-meta > strong { color: #9b332d; background: #fff0ef; }
.abops-chat-transcript { margin: 10px 0; border: .5px solid rgba(60,60,67,.13); border-radius: 12px; background: #f7f7fa; }
.abops-chat-transcript summary { padding: 9px 11px; color: var(--purple); font-size: 12px; font-weight: 700; cursor: pointer; }
.abops-chat-transcript pre { max-height: 260px; overflow: auto; margin: 0; padding: 11px; border-top: .5px solid rgba(60,60,67,.13); color: #3a3a3c; background: white; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
