@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap');

:root {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #26332c;
  background: #f9faf8;
  font-synthesis: none;
  --muted: #727c70;
  --line: #e3e7e1;
  --focus: #357f54;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.page { max-width: 832px; margin: 0 auto; padding: 0 36px 32px; min-height: 100svh; display: flex; flex-direction: column; }
.masthead { height: 88px; display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; }
.wordmark { font-size: 23px; font-weight: 650; letter-spacing: -1px; text-decoration: none; display: flex; align-items: center; }
.wordmark-suffix { color: #76906c; }
.brand-mark { display: flex; align-items: center; gap: 3px; margin-right: 10px; height: 19px; }
.brand-mark i { width: 3px; border-radius: 2px; background: #659b67; height: 9px; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 13px; }
.local-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.local-note svg { width: 15px; stroke: currentColor; stroke-width: 1.15; }
.search-section { position: relative; }
.search-field { display: flex; align-items: center; gap: 12px; border: 1px solid #dce1d8; background: #fff; border-radius: 8px; padding: 0 15px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.search-field:focus-within { border-color: #8bab88; box-shadow: 0 0 0 3px #b5cdb51f; }
.search-field > svg { flex-shrink: 0; width: 18px; height: 18px; stroke: #839080; stroke-width: 1.5; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #27362b; font-size: 13px; padding: 14px 0; }
.search-field input::placeholder { color: #87907f; }
kbd { color: #8b9484; border: 1px solid #e5e8e1; border-radius: 4px; font-size: 11px; padding: 2px 6px; line-height: 1.3; }
.icon-button { background: none; border: 0; padding: 7px; line-height: 1; color: #8b9583; border-radius: 4px; font-size: 21px; flex-shrink: 0; }
.icon-button:hover { color: #26332c; background: #edf0e9; }
.suggestions { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 11px; min-height: 25px; flex-wrap: wrap; }
.suggestions > span { margin-right: 3px; }
.suggestions button { display: flex; gap: 10px; align-items: center; padding: 4px 8px; border: 1px solid #e1e6dc; border-radius: 5px; background: transparent; font-size: 11px; color: #64725e; }
.suggestions button:hover { border-color: #9aad95; background: #f1f4ed; }
.suggestions button span { font-size: 14px; line-height: 1; color: #819573; }
.search-results { position: absolute; top: 54px; left: 0; right: 0; border: 1px solid #dfe5da; border-radius: 8px; background: #fff; box-shadow: 0 12px 32px #25372013; z-index: 5; padding: 5px; max-height: 340px; overflow: auto; }
.result { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px; border: 0; background: transparent; border-radius: 5px; text-align: left; }
.result:hover, .result[aria-selected='true'] { background: #f1f5ed; }
.result-text { flex: 1; min-width: 0; }
.result-name { display: block; font-weight: 550; font-size: 13px; }
.result-detail { display: block; font-size: 11px; color: #77816f; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-action { font-size: 12px; color: #718365; }
.result-empty { margin: 0; padding: 15px 13px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.search-message { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 11px 0 0; }
.search-message.has-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; border: 1px solid #e1e7da; border-radius: 7px; padding: 13px 15px; background: #f1f4ed; }
.search-message-copy { flex: 1; min-width: 170px; }
.search-message-text, .search-message-detail { margin: 0; }
.has-actions .search-message-text { color: #4f6146; font-weight: 500; }
.search-message-detail { margin-top: 3px; font-size: 11px; }
.search-message-actions { display: flex; align-items: center; gap: 16px; }
.retry-button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.retry-button:hover { color: #4f7044; }
.support-link { color: #4f7044; font-size: 12px; text-decoration: underline; text-decoration-color: #b6c6ab; text-underline-offset: 3px; white-space: nowrap; }
.support-link:hover { text-decoration-color: currentColor; }
.services-section { margin-top: 25px; }
.empty-state { padding: 48px 12px; text-align: center; }
.empty-state h2 { margin: 0; font-size: 14px; font-weight: 500; color: #68765f; }
.empty-state p { font-size: 12px; line-height: 1.7; margin: 8px 0 0; color: var(--muted); }
.list-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; min-height: 24px; }
.list-heading h2 { font-size: 10px; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 550; color: #74816b; margin: 0; display: flex; gap: 8px; align-items: center; }
#service-count { font-size: 10px; letter-spacing: 0; background: #eaf0e3; border-radius: 4px; padding: 2px 5px; color: #6d815f; }
.refresh-controls { display: flex; align-items: center; gap: 6px; color: #7a8770; font-size: 10px; }
.refresh-button { padding: 5px; }
.refresh-button svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.refresh-button:disabled { opacity: .5; }
.refresh-button:disabled svg { animation: rotate 1s linear infinite; }
.services { border-top: 1px solid var(--line); }
.services:empty { border: 0; }
.service { border-bottom: 1px solid var(--line); }
.service-row { display: flex; align-items: center; gap: 4px; }
.service-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 12px 0; min-height: 59px; text-align: left; }
.service-row:hover { background: #f2f5ee; }
.service-toggle:focus-visible { outline-offset: -2px; }
.service-icon { width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; }
.service-icon img { display: block; width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }
.icon-fallback { display: none; width: 24px; height: 24px; color: #8a9782; }
.icon-fallback svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.25; }
.icon-missing .icon-fallback { display: block; }
.service-info { min-width: 0; flex: 1; }
.service-name { display: block; font-size: 14px; font-weight: 550; line-height: 1.4; letter-spacing: -.15px; overflow-wrap: anywhere; }
.status-block { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; margin-left: 10px; }
.service-status { font-size: 12px; display: flex; align-items: center; gap: 7px; color: #75816d; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #9ba892; flex-shrink: 0; }
.level-operational { color: #4c7651; }
.level-operational .status-dot { background: #77a975; }
.level-degraded, .level-maintenance { color: #997320; }
.level-degraded .status-dot, .level-maintenance .status-dot { background: #cba448; }
.level-partial { color: #ab6e30; }
.level-partial .status-dot { background: #d99249; }
.level-major { color: #ac5848; }
.level-major .status-dot { background: #ce7968; }
.level-unknown { color: #797e70; }
.level-checking { color: #838d78; }
.level-checking .status-dot { animation: pulse 1s ease-in-out infinite; }
.issue-timing { color: #7a826f; font-size: 10px; line-height: 1.3; text-align: right; }
.expand-chevron { width: 14px; height: 14px; flex-shrink: 0; color: #8e9a83; margin-left: 3px; transition: transform .15s; }
.expand-chevron svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.3; }
[aria-expanded='true'] .expand-chevron { transform: rotate(180deg); }
.remove-button { font-size: 18px; padding: 5px; opacity: 0; margin-right: -5px; }
.service-row:hover .remove-button, .service:focus-within .remove-button { opacity: 1; }
.service-details { padding: 4px 27px 17px 40px; }
.affected-components { display: flex; gap: 10px; align-items: baseline; margin: 2px 0 15px; font-size: 11px; line-height: 1.6; }
.detail-label { flex-shrink: 0; color: #788570; }
.component-list { display: flex; flex-wrap: wrap; gap: 5px; }
.component-name { background: #edf1e7; border-radius: 4px; color: #526446; padding: 1px 6px; }
.incident + .incident { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 15px; }
.incident h3 { font-size: 13px; line-height: 1.5; font-weight: 550; margin: 0 0 5px; }
.incident-title { text-decoration: none; }
.incident-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.incident-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #77816f; font-size: 10px; line-height: 1.6; }
.incident-state { color: #65775a; font-weight: 500; }
.incident-components { font-size: 11px; color: #66775b; margin: 8px 0; }
.incident-body { white-space: pre-line; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; color: #58654e; margin: 10px 0 0; }
.update-time { font-size: 10px; line-height: 1.5; color: #7b8570; margin: 6px 0 0; }
.detail-message { font-size: 12px; line-height: 1.7; color: #69775f; margin: 2px 0 0; }
.detail-source { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 14px; }
.source-link { color: #5b7350; font-size: 11px; text-decoration: underline; text-decoration-color: #c1ccb8; text-underline-offset: 3px; }
.source-link:hover { text-decoration-color: currentColor; }
.notice { font-size: 12px; line-height: 1.6; margin-top: 20px; color: #936f40; }
.attribution { align-self: flex-end; margin-top: auto; padding-top: 32px; color: #6d775f; font-size: 11px; line-height: 1.5; }
.attribution a { text-decoration: underline; text-decoration-color: #c1cbb6; text-underline-offset: 3px; }
.attribution a:hover { color: #3d6541; text-decoration-color: currentColor; }
.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; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .25; } }
@media (max-width: 600px) {
  .page { padding: 0 20px 30px; }
  .masthead { height: 73px; }
  .wordmark { font-size: 21px; }
  .local-note { font-size: 10px; gap: 5px; }
  .search-field { gap: 9px; padding: 0 12px; }
  .search-field input { font-size: 12px; }
  .search-field kbd { display: none; }
  .services-section { margin-top: 20px; }
  .service-toggle { gap: 9px; padding: 12px 0; }
  .service-name { font-size: 13px; }
  .service-icon { width: 25px; height: 25px; }
  .service-icon img { width: 22px; height: 22px; }
  .status-block { margin-left: 3px; max-width: 170px; }
  .service-status { font-size: 11px; gap: 6px; }
  .issue-timing { font-size: 9px; }
  .expand-chevron { width: 12px; margin-left: 0; }
  .remove-button { opacity: .65; padding: 4px; }
  .service-details { padding-left: 34px; padding-right: 12px; }
  .affected-components { flex-direction: column; gap: 4px; }
  .incident-meta { gap: 3px 8px; }
  .incident-body { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
