/* Amazon CloudWatch page only. Loaded via `extra: crm, p-aws-cloudwatch`. Every class is scoped with .pacw- */

/* ---------- hero: live-looking dashboard ---------- */
.pacw-hero .pacw-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pacw-hero .crm-sub { max-width: 40ch; }
.pacw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; max-width: 580px; }
.pacw-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid #DCE7EF; font: 600 13.5px/1.25 var(--f-body); color: #082238; }
.pacw-chips img, .pacw-chips svg { flex: none; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: #EAF6F1; }
.pacw-chips svg { fill: none; stroke: #0D9488; stroke-width: 2.2; stroke-linecap: round; }
.pacw-badge img { width: 64px !important; padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid #E2E8F0; }

.pacw-dash { position: relative; margin: 0; padding: 14px; border-radius: 20px; background: #0B1B2B; border: 1px solid #1C3550; box-shadow: 0 50px 90px -50px rgba(8,34,56,.75), 0 0 0 6px rgba(255,255,255,.6); color: #CFE0EC; }
.pacw-dash__bar { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; font: 600 12px/1 var(--f-body); }
.pacw-dash__bar b { font: 700 13.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; }
.pacw-dash__dots { display: inline-flex; gap: 5px; }
.pacw-dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2A4560; }
.pacw-dash__range { margin-left: auto; color: #7FA3BF; font-weight: 500; }
.pacw-dash__bar em { padding: 4px 8px; border-radius: 999px; background: rgba(255,184,28,.16); color: #FFCF66; font: 700 10.5px/1 var(--f-body); font-style: normal; letter-spacing: .04em; }
.pacw-dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pacw-w { position: relative; padding: 12px 12px 10px; border-radius: 12px; background: #10263B; border: 1px solid #1C3550; min-width: 0; }
.pacw-w--wide { grid-column: 1 / -1; }
.pacw-w__h { margin: 0 0 8px; font: 700 12.5px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: #E6F1F8; }
.pacw-w__h span { margin-left: 6px; font-weight: 500; color: #7FA3BF; }
.pacw-w__svg { display: block; width: 100%; height: 110px; overflow: visible; }
.pacw-w:not(.pacw-w--wide) .pacw-w__svg { height: 62px; }
.pacw-w__line { fill: none; stroke: #5FD3F3; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pacw-w__line--b { stroke: #A78BFA; }
.pacw-w__line--r { stroke: #FF7A7F; }
.pacw-w__area { fill: rgba(95,211,243,.12); }
.pacw-w__thr { stroke: #FF7A7F; stroke-width: 1.4; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.pacw-w__thrt { font: 600 10px/1 ui-monospace, Menlo, monospace; fill: #FF9EA2; text-anchor: end; }
.pacw-w__num { position: absolute; top: 10px; right: 12px; margin: 0; font: 800 15px/1 var(--f-display); color: #fff; }
.pacw-alarm { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 11px 14px; border-radius: 12px; background: rgba(63,185,122,.12); border: 1px solid rgba(63,185,122,.45); transition: background .4s, border-color .4s; }
.pacw-alarm__dot { width: 10px; height: 10px; border-radius: 50%; background: #3FB97A; box-shadow: 0 0 0 4px rgba(63,185,122,.25); }
.pacw-alarm__name { font: 600 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: #E6F1F8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pacw-alarm__state { margin-left: auto; padding: 5px 10px; border-radius: 6px; background: #3FB97A; color: #062A19; font: 800 12px/1 var(--f-body); letter-spacing: .06em; }
.pacw-alarm[data-state="alarm"] { background: rgba(229,72,77,.16); border-color: rgba(229,72,77,.6); }
.pacw-alarm[data-state="alarm"] .pacw-alarm__dot { background: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.3); animation: pacw-blink 1s steps(2) infinite; }
.pacw-alarm[data-state="alarm"] .pacw-alarm__state { background: #E5484D; color: #fff; }
@keyframes pacw-blink { 50% { opacity: .35; } }
.pacw-toast { position: absolute; left: -22px; bottom: -18px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #fff; color: #082238; border: 1px solid #DCE7EF; font: 600 12.5px/1.2 var(--f-body); box-shadow: 0 18px 30px -16px rgba(8,34,56,.6); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.pacw-toast.is-on { opacity: 1; transform: none; }

/* ---------- #what: fit list ---------- */
.pacw-fit__cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 40px; }
.pacw-fit__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; align-content: start; }
.pacw-fit__list--yes { grid-template-columns: 1fr 1fr; }
.pacw-fit__list li { position: relative; padding: 20px 20px 20px 52px; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0; }
.pacw-fit__list li::before { content: ""; position: absolute; left: 18px; top: 21px; width: 22px; height: 22px; border-radius: 50%; background: #3FB97A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pacw-fit__list--no li { background: #FBF7EF; border-color: #F1E3C4; }
.pacw-fit__list--no li::before { background-color: #D08A00; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.pacw-fit__list b { display: block; font: 700 16.5px/1.3 var(--f-display); color: #082238; }
.pacw-fit__list span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.55; color: #475569; }

/* ---------- #services: cards ---------- */
.pacw-svc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pacw-card { position: relative; padding: 24px 22px 22px; border-radius: 18px; background: #fff; border: 1px solid #E2E8F0; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.pacw-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.pacw-card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(8,34,56,.5); }
.pacw-card__k { display: inline-block; padding: 4px 9px; border-radius: 6px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font: 700 11.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.pacw-card h3 { margin: 14px 0 0; font: 700 19px/1.3 var(--f-display); color: #082238; }
.pacw-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: #475569; }

/* ---------- #night: clock-face story ---------- */
.pacw-night__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 40px; }
.pacw-clock { text-align: center; padding: 24px; border-radius: 24px; background: #082238; color: #fff; }
.pacw-clock svg { display: block; width: 100%; max-width: 240px; margin: 0 auto; }
.pacw-clock__face { fill: #0E2E4A; stroke: #1F4B70; stroke-width: 2; }
.pacw-clock__track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 8; }
.pacw-clock__arc { fill: none; stroke: #E5484D; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .6s ease, stroke .4s; }
.pacw-clock[data-ok] .pacw-clock__arc { stroke: #3FB97A; }
.pacw-clock__ticks line { stroke: #4D7393; stroke-width: 2; }
.pacw-clock__hr { stroke: #9FC0D8; stroke-width: 5; stroke-linecap: round; }
.pacw-clock__min { stroke: #fff; stroke-width: 3; stroke-linecap: round; transform-origin: 110px 110px; transition: transform .6s cubic-bezier(.3,1.3,.5,1); }
.pacw-clock__pin { fill: #FFB81C; }
.pacw-clock__t { margin: 14px 0 0; font: 800 34px/1 var(--f-display); letter-spacing: -.02em; }
.pacw-clock__s { margin: 6px 0 0; font: 600 13px/1 ui-monospace, Menlo, monospace; color: #FF9EA2; letter-spacing: .06em; text-transform: uppercase; }
.pacw-clock[data-ok] .pacw-clock__s { color: #7BE0A9; }
.pacw-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pacw-step button { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 18px; width: 100%; padding: 18px 20px; border: 1px solid #E2E8F0; border-radius: 16px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .25s, box-shadow .25s, background .25s; }
.pacw-step button:hover { border-color: #B9D3E4; }
.pacw-step button:focus-visible { outline: 3px solid #00A3D9; outline-offset: 2px; }
.pacw-step__t { grid-row: span 2; font: 700 14px/1.3 ui-monospace, Menlo, monospace; color: #64748B; padding-top: 2px; }
.pacw-step b { font: 700 17px/1.3 var(--f-display); color: #082238; }
.pacw-step__p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: #475569; }
.pacw-step.is-on button { border-color: #E5484D; background: #FFF6F6; box-shadow: 0 16px 34px -26px rgba(229,72,77,.7); }
.pacw-step.is-on .pacw-step__t { color: #C62F35; }
.pacw-step:last-child.is-on button { border-color: #3FB97A; background: #F2FBF6; box-shadow: 0 16px 34px -26px rgba(63,185,122,.7); }
.pacw-step:last-child.is-on .pacw-step__t { color: #1F8A52; }
.pacw-night__note { margin: 16px 0 0; font-size: 13px; color: #64748B; }

/* ---------- #builder: alarm builder (dark band) ---------- */
.pacw-ab__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; margin-top: 40px; }
.pacw-ab__form, .pacw-ab__out { padding: 22px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); min-width: 0; }
.pacw-f { display: block; margin: 0 0 18px; padding: 0; border: 0; color: #DCEAF4; font: 600 14px/1.3 var(--f-body); }
.pacw-f > span, .pacw-f legend { display: flex; justify-content: space-between; margin-bottom: 8px; padding: 0; color: #DCEAF4; }
.pacw-f b { color: #FFB81C; font-family: ui-monospace, Menlo, monospace; }
.pacw-f select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: #0B2236; color: #fff; font: 500 14px/1.2 var(--f-body); }
.pacw-mn div { display: flex; align-items: center; gap: 10px; color: #9FC0D8; font-weight: 500; }
.pacw-mn select { width: auto; min-width: 64px; }
.pacw-f input[type="range"] { width: 100%; accent-color: #FFB81C; }
.pacw-seg { display: block; }
.pacw-seg legend { width: 100%; }
.pacw-seg label { display: inline-block; margin: 0 6px 6px 0; cursor: pointer; }
.pacw-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pacw-seg span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #DCEAF4; font: 600 13.5px/1 var(--f-body); }
.pacw-seg input:checked + span { background: #FFB81C; border-color: #FFB81C; color: #082238; }
.pacw-seg input:focus-visible + span { outline: 3px solid #5FD3F3; outline-offset: 2px; }
.pacw-ab__cost { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13.5px; line-height: 1.5; color: #9FC0D8; }
.pacw-ab__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pacw-ab__head b { font: 700 14px/1.2 ui-monospace, Menlo, monospace; color: #fff; overflow-wrap: anywhere; }
.pacw-ab__head em { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: rgba(255,184,28,.16); color: #FFCF66; font: 700 10.5px/1 var(--f-body); font-style: normal; }
.pacw-ab__pill { padding: 5px 10px; border-radius: 6px; background: #3FB97A; color: #062A19; font: 800 12px/1 var(--f-body); letter-spacing: .06em; }
.pacw-ab__pill.is-alarm { background: #E5484D; color: #fff; }
.pacw-ab__svg { display: block; width: 100%; height: 240px; border-radius: 12px; background: #081B2C; }
.pacw-ab__svg .g { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.pacw-ab__svg .br { fill: rgba(229,72,77,.22); }
.pacw-ab__svg .al { fill: rgba(229,72,77,.12); }
.pacw-ab__svg .ln { fill: none; stroke: #5FD3F3; stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pacw-ab__svg .pt { fill: #5FD3F3; }
.pacw-ab__svg .pt.is-br { fill: #FF7A7F; }
.pacw-ab__svg .th { stroke: #FFB81C; stroke-width: 1.6; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.pacw-ab__svg .fire { stroke: #FF7A7F; stroke-width: 2; vector-effect: non-scaling-stroke; }
.pacw-ab__svg .ok { stroke: #3FB97A; stroke-width: 2; vector-effect: non-scaling-stroke; }
.pacw-ab__axis { display: flex; justify-content: space-between; margin-top: 6px; font: 500 11.5px/1 ui-monospace, Menlo, monospace; color: #7FA3BF; }
.pacw-ab__res { margin: 14px 0 0; font-size: 15.5px; line-height: 1.55; color: #E6F1F8; }
.pacw-ab__res b { color: #FFB81C; }
.pacw-ab__code { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #061524; color: #A8D8EE; font: 500 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.pacw-ab__note { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: #9FC0D8; max-width: 80ch; }

/* ---------- #zoho: patterns ---------- */
.pacw-zoho__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.pacw-zp { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid #E2E8F0; }
.pacw-zp__path { display: flex; align-items: center; gap: 6px; padding: 12px; border-radius: 12px; background: #F3F7FA; }
.pacw-zp__path img { flex: none; width: 34px; height: 34px; padding: 4px; border-radius: 9px; background: #fff; box-shadow: 0 6px 14px -10px rgba(8,34,56,.6); }
.pacw-zp__path i { flex: 1; height: 2px; min-width: 10px; background: repeating-linear-gradient(90deg, #00A3D9 0 6px, transparent 6px 10px); background-size: 20px 2px; animation: pacw-dash 1.2s linear infinite; }
@keyframes pacw-dash { to { background-position: 20px 0; } }
.pacw-zp h3 { margin: 16px 0 0; font: 700 18px/1.3 var(--f-display); color: #082238; }
.pacw-zp p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: #475569; }

/* ---------- #pricing ---------- */
.pacw-rates { margin-top: 32px; }
.pacw-rates td b { display: block; font: 800 18px/1.2 var(--f-display); color: #082238; }
.pacw-rates td small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: #64748B; }
.pacw-price__ours { margin-top: 22px; padding: 20px 22px; border-radius: 16px; background: #EAF6F1; border: 1px solid #C8E9DA; }
.pacw-price__ours p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #1E3A2F; }
.pacw-price__ours b { color: #0B4D33; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pacw-hero .pacw-hero__grid { grid-template-columns: 1fr; }
  .pacw-fit__cols, .pacw-night__grid, .pacw-ab__grid { grid-template-columns: 1fr; }
  .pacw-svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pacw-clock { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 18px; text-align: left; padding: 16px 20px; }
  .pacw-clock svg { grid-row: span 2; }
  .pacw-clock__t { margin: 0; align-self: end; }
}
@media (max-width: 640px) {
  .pacw-fit__list--yes, .pacw-svc__grid, .pacw-zoho__list { grid-template-columns: 1fr; }
  .pacw-toast { left: 8px; right: 8px; bottom: -16px; justify-content: center; }
  .pacw-dash { padding: 10px; }
  .pacw-dash__range { display: none; }
  .pacw-dash__bar em { margin-left: auto; }
  .pacw-step button { grid-template-columns: 1fr; }
  .pacw-step__t { grid-row: auto; margin-bottom: 4px; }
  .pacw-clock { grid-template-columns: 84px 1fr; }
  .pacw-clock__t { font-size: 26px; }
  .pacw-ab__svg { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .pacw-zp__path i, .pacw-alarm[data-state="alarm"] .pacw-alarm__dot { animation: none; }
  .pacw-clock__min, .pacw-clock__arc, .pacw-toast, .pacw-card, .pacw-alarm { transition: none; }
}
