:root {
  --pink-700: #d9366c;
  --pink-600: #ed4f82;
  --pink-500: #ff6f9d;
  --pink-300: #ffb6cc;
  --pink-200: #ffd3e0;
  --pink-100: #fff0f5;
  --cream: #fffaf7;
  --white: #ffffff;
  --ink: #342a31;
  --muted: #7d6c76;
  --line: #f0dfe6;
  --green: #27a873;
  --green-soft: #e7f8f1;
  --amber: #d58a20;
  --amber-soft: #fff4dc;
  --red: #d94d5c;
  --red-soft: #ffeaed;
  --shadow-sm: 0 8px 22px rgba(108, 53, 78, .07);
  --shadow-lg: 0 24px 70px rgba(111, 44, 74, .13);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --font-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 9%, rgba(255, 182, 204, .30) 0 90px, transparent 91px),
    radial-gradient(circle at 94% 23%, rgba(255, 211, 224, .36) 0 130px, transparent 131px),
    var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-140%);
  padding: 10px 14px; border-radius: 10px; background: var(--ink); color: white; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(237, 79, 130, .42); outline-offset: 3px; }

.page-shell { max-width: 1440px; margin: 0 auto; padding: 0 52px; }
.topbar {
  height: 88px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(232, 208, 218, .75);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px 12px 12px 5px; color: white; background: var(--pink-600); box-shadow: 0 6px 14px rgba(237,79,130,.26); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .avatar-button {
  border: 1px solid var(--line); background: rgba(255,255,255,.74); box-shadow: var(--shadow-sm);
}
.icon-button { width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.spinning svg { animation: spin .7s ease; }
.avatar-button { width: 43px; height: 43px; border-radius: 15px; color: white; background: linear-gradient(145deg, var(--pink-500), var(--pink-700)); border: 0; font-weight: 700; }
.icon-button:hover, .avatar-button:hover { transform: translateY(-2px); }

.hero { min-height: 500px; display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: 30px; padding: 48px 0 28px; }
.hero-copy { padding: 18px 0; }
.eyebrow, .section-kicker { margin: 0; color: var(--pink-700); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--pink-600); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--pink-500); border-radius: 50%; animation: pulse 2s infinite; }
h1 { max-width: 720px; margin: 18px 0 10px; font-family: var(--font-display); font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.045em; color: #2e252b; text-wrap: balance; }
.hero-subtitle { margin: 0 0 28px; color: var(--muted); font-size: 18px; }
.search {
  max-width: 720px; min-height: 66px; display: grid; grid-template-columns: 25px 1fr auto auto; align-items: center; gap: 12px;
  padding: 8px 8px 8px 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.91); box-shadow: var(--shadow-lg);
}
.search > svg { width: 23px; fill: none; stroke: var(--pink-600); stroke-width: 1.8; }
.search input { min-width: 0; height: 46px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 17px; }
.search input::placeholder { color: #b29ca7; }
.search select { height: 42px; border: 0; border-left: 1px solid var(--line); padding: 0 14px; color: var(--muted); background: transparent; outline: 0; }
.search button, .save-button { border: 0; color: white; background: var(--pink-600); font-weight: 700; }
.search button { height: 48px; padding: 0 22px; border-radius: 14px; }
.search button:hover, .save-button:hover { background: var(--pink-700); }
.quick-searches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick-searches button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.65); font-size: 12px; }
.quick-searches button:hover { color: var(--pink-700); border-color: var(--pink-300); background: white; }

.hero-art { position: relative; min-height: 410px; display: grid; place-items: center; }
.cat-wrap { position: relative; z-index: 2; width: min(100%, 420px); filter: drop-shadow(0 26px 25px rgba(107,62,79,.11)); animation: float 5s ease-in-out infinite; }
.kitty { width: 100%; overflow: visible; }
.cat-shadow { fill: rgba(128,67,90,.12); }
.face, .ear { fill: #fff; stroke: #3c3036; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.inner-ear { fill: #ffd7e4; stroke: #3c3036; stroke-width: 4; stroke-linejoin: round; }
.eye { fill: #3c3036; }
.nose { fill: #ffd24a; stroke: #3c3036; stroke-width: 3; }
.whisker { fill: none; stroke: #3c3036; stroke-width: 4; stroke-linecap: round; }
.bow { fill: var(--pink-600); stroke: #3c3036; stroke-width: 4; stroke-linejoin: round; }
.bow-highlight { fill: none; stroke: #ffb6cc; stroke-width: 5; stroke-linecap: round; }
.hero-art::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 44% 56% 61% 39% / 48% 45% 55% 52%; background: linear-gradient(145deg, #ffe4ed, #fff2f6); transform: rotate(-7deg); }
.sparkle { position: absolute; z-index: 3; color: var(--pink-500); font-size: 28px; animation: twinkle 2.8s ease-in-out infinite; }
.sparkle-one { top: 57px; left: 8%; }
.sparkle-two { top: 114px; right: 8%; animation-delay: -1.2s; }
.speech-bubble { position: absolute; z-index: 4; right: 0; bottom: 42px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; background: white; box-shadow: var(--shadow-sm); color: var(--muted); font-size: 13px; transform: rotate(2deg); }
.speech-bubble span { color: var(--pink-600); }

.info-strip { display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; gap: 14px; margin: 4px 0 58px; }
.info-card, .quote-card { min-height: 132px; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.76); box-shadow: var(--shadow-sm); }
.info-card { display: flex; align-items: center; gap: 16px; }
.info-icon, .weather-symbol { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 17px; font-family: var(--font-display); font-weight: 700; }
.info-icon.pink { color: var(--pink-700); background: var(--pink-100); }
.info-icon.green { background: var(--green-soft); }
.weather-symbol { color: #e99b20; background: var(--amber-soft); font-size: 26px; }
.status-ring { width: 16px; height: 16px; border: 4px solid rgba(39,168,115,.22); border-top-color: var(--green); border-radius: 50%; animation: spin 1.8s linear infinite; }
.label { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.big-value { margin: 0; font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.05; }
.unit { margin-left: 1px; font-size: 16px; color: var(--muted); }
.meta { margin: 5px 0 0; color: #a08d97; font-size: 12px; }
.quote-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; background: var(--pink-600); color: white; border-color: transparent; }
.quote-card p { position: relative; z-index: 1; margin: 0 0 8px; font-family: var(--font-display); font-size: 19px; line-height: 1.25; }
.quote-card cite { opacity: .72; font-size: 11px; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.quote-mark { position: absolute; top: -22px; right: 10px; opacity: .16; font-family: Georgia, serif; font-size: 130px; }

.section-block { margin: 0 0 58px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 20px; }
h2 { margin: 5px 0 0; font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); letter-spacing: -.025em; }
.text-button { border: 0; padding: 10px 2px; color: var(--pink-700); background: transparent; font-weight: 700; }
.text-button:hover { color: var(--ink); }
.shortcut-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.shortcut-card { position: relative; min-height: 164px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.shortcut-card:hover { transform: translateY(-5px); border-color: var(--pink-300); box-shadow: 0 16px 34px rgba(108,53,78,.12); }
.shortcut-card::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 78px; height: 78px; border-radius: 50%; background: var(--card-soft); }
.shortcut-icon { position: relative; z-index: 1; width: 47px; height: 47px; display: grid; place-items: center; border-radius: 16px; color: var(--card-color); background: var(--card-soft); font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.shortcut-name { position: relative; z-index: 1; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.shortcut-meta { display: block; margin-top: 3px; color: var(--muted); font-family: var(--font-body); font-size: 11px; font-weight: 500; }
.shortcut-arrow { position: absolute; top: 20px; right: 18px; color: #b7a5ae; font-size: 16px; }

.auto-refresh { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.auto-refresh > span, .footer-status > span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(39,168,115,.12); }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card, .status-skeleton { min-height: 156px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.78); box-shadow: var(--shadow-sm); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.service-name { margin: 0; font-family: var(--font-display); font-size: 18px; }
.service-endpoint { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.online { color: var(--green); background: var(--green-soft); }
.status-pill.degraded { color: var(--amber); background: var(--amber-soft); }
.status-pill.offline { color: var(--red); background: var(--red-soft); }
.service-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 31px; }
.latency { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.latency small { margin-left: 3px; color: var(--muted); font: 11px var(--font-body); }
.service-link { color: var(--pink-700); font-size: 12px; font-weight: 700; text-decoration: none; }
.service-link:hover { text-decoration: underline; }
.status-skeleton { background: linear-gradient(100deg, #fff 20%, #fff5f8 40%, #fff 60%); background-size: 240% 100%; animation: shimmer 1.4s infinite; }

footer { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer p { margin: 0; }
footer p > span { color: var(--pink-600); }
.footer-status { display: flex; align-items: center; gap: 8px; }

/* dialogs */
dialog { width: min(92vw, 560px); padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: transparent; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(48,34,42,.36); backdrop-filter: blur(5px); }
.dialog-card { padding: 27px; border: 1px solid var(--line); border-radius: 28px; background: var(--cream); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.dialog-header h2 { font-size: 28px; }
.dialog-close { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 23px; line-height: 1; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 17px 0; border-top: 1px solid var(--line); }
.toggle-row span { display: flex; flex-direction: column; gap: 4px; }
.toggle-row small { color: var(--muted); }
.toggle-row input { width: 46px; height: 25px; accent-color: var(--pink-600); }
.save-button { width: 100%; min-height: 49px; margin-top: 18px; border-radius: 14px; }
.dialog-help { margin: -8px 0 18px; color: var(--muted); font-size: 13px; }
.shortcut-toggles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.shortcut-toggle { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.shortcut-toggle input { accent-color: var(--pink-600); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 20px; }
.dialog-actions .save-button { margin: 0; }
.secondary-button { min-height: 49px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: white; font-weight: 700; }

.no-motion *, .no-motion *::before, .no-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes twinkle { 0%,100% { opacity: .35; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(18deg); } }
@keyframes pulse { 0% { opacity: .8; transform: scale(.65); } 70%,100% { opacity: 0; transform: scale(1.5); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position-x: -240%; } }

@media (max-width: 1120px) {
  .page-shell { padding: 0 34px; }
  .info-strip { grid-template-columns: repeat(3, 1fr); }
  .quote-card { grid-column: 1 / -1; min-height: 100px; }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .page-shell { padding: 0 20px; }
  .topbar { height: 72px; }
  .hero { grid-template-columns: 1fr; padding-top: 45px; }
  .hero-copy { text-align: left; }
  h1 { font-size: clamp(46px, 14vw, 66px); }
  .hero-art { min-height: 330px; order: -1; margin-bottom: -35px; }
  .cat-wrap { width: min(92%, 340px); }
  .hero-art::before { width: 300px; height: 300px; }
  .speech-bubble { right: 2%; bottom: 30px; }
  .search { grid-template-columns: 22px 1fr auto; }
  .search select { display: none; }
  .search button { padding: 0 16px; }
  .info-strip { grid-template-columns: 1fr; margin-top: 25px; }
  .quote-card { grid-column: auto; }
  .shortcut-grid, .status-grid { grid-template-columns: repeat(2, 1fr); }
  .shortcut-card { min-height: 146px; }
  footer { padding: 24px 0; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 470px) {
  .page-shell { padding: 0 15px; }
  .brand { font-size: 17px; }
  .hero { padding-top: 26px; }
  .hero-art { min-height: 275px; }
  .hero-art::before { width: 245px; height: 245px; }
  .speech-bubble { display: none; }
  h1 { margin-top: 14px; }
  .search { padding-left: 14px; border-radius: 17px; }
  .search button { width: 48px; overflow: hidden; color: transparent; position: relative; }
  .search button::after { content: "→"; position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: 20px; }
  .quick-searches { display: none; }
  .shortcut-grid, .status-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shortcut-card, .service-card { padding: 16px; }
  .shortcut-name { font-size: 15px; }
  .status-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: center; }
  .auto-refresh { display: none; }
  .shortcut-toggles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
