html[data-kumai-overview-ui="on"] .kumai-overview-host {
  min-width: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

html[data-kumai-overview-ui="on"] .kumai-overview-host > [data-kumai-overview-original="true"] {
  display: none !important;
}

.kumai-overview-root {
  --kumai-overview-green: var(--success, #0f9f6e);
  --kumai-overview-blue: var(--primary, #2563eb);
  --kumai-overview-amber: var(--warning, #d97706);
  --kumai-overview-cyan: var(--info, #0891b2);
  --kumai-overview-coral: var(--destructive, #e25555);
  --kumai-overview-violet: var(--chart-4, #7c3aed);
  display: flex;
  width: 100%;
  min-height: 0;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  color: var(--foreground, #111827);
  font-family: inherit;
}

.kumai-overview-root *,
.kumai-overview-root *::before,
.kumai-overview-root *::after {
  box-sizing: border-box;
}

.kumai-overview-header {
  display: flex;
  min-height: 60px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 16px 12px;
}

.kumai-overview-content {
  min-height: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 6px 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.kumai-overview-title-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.kumai-overview-title {
  margin: 0;
  color: var(--foreground, #111827);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0;
}

.kumai-overview-connection {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  gap: 6px;
  color: var(--muted-foreground, #6b7280);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.kumai-overview-connection-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kumai-overview-green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--kumai-overview-green) 13%, transparent);
}

.kumai-overview-connection-dot::after {
  position: absolute;
  inset: -3px;
  border: 1px solid color-mix(in srgb, var(--kumai-overview-green) 34%, transparent);
  border-radius: inherit;
  content: "";
  animation: kumai-overview-pulse 2.6s ease-out infinite;
}

.kumai-overview-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.kumai-overview-action {
  display: inline-flex;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0.8rem;
  padding: 0 10px;
  background: var(--background, #ffffff);
  color: var(--foreground, #111827);
  font: inherit;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 19.2px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.kumai-overview-action:hover {
  border-color: color-mix(in srgb, var(--foreground, #111827) 22%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--muted, #f3f4f6) 72%, var(--background, #ffffff));
}

.kumai-overview-action:active {
  transform: translateY(1px);
}

.kumai-overview-action:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--kumai-overview-blue) 54%, transparent);
  outline-offset: 2px;
}

.kumai-overview-action svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.kumai-overview-action-icon {
  width: 28px;
  padding: 0;
}

.kumai-overview-reset-action {
  display: none;
}

.kumai-overview-root[data-editing="true"] .kumai-overview-reset-action {
  display: inline-flex;
}

.kumai-overview-action[data-loading="true"] svg {
  animation: kumai-overview-spin 800ms linear infinite;
}

.kumai-overview-guide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 336px);
  align-items: stretch;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.kumai-overview-guide[data-open="true"] {
  display: grid;
}

.kumai-overview-guide-main,
.kumai-overview-guide-recommendations {
  min-width: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: var(--card, #ffffff);
}

.kumai-overview-guide-main {
  padding: 20px;
}

.kumai-overview-guide-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.kumai-overview-guide-heading {
  min-width: 0;
}

.kumai-overview-guide-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--muted-foreground, #6b7280);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.kumai-overview-guide-kicker svg {
  width: 13px;
  height: 13px;
}

.kumai-overview-guide-title {
  margin: 0 0 4px;
  color: var(--foreground, #111827);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0;
}

.kumai-overview-guide-text {
  margin: 0;
  color: var(--muted-foreground, #6b7280);
  font-size: 12px;
  line-height: 18px;
}

.kumai-overview-guide-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.kumai-overview-guide-hide,
.kumai-overview-guide-primary {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  padding: 0 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.kumai-overview-guide-hide {
  border: 1px solid var(--border, #e5e7eb);
  background: var(--background, #ffffff);
  color: var(--foreground, #111827);
}

.kumai-overview-guide-primary {
  border: 1px solid var(--foreground, #111827);
  background: var(--foreground, #111827);
  color: var(--background, #ffffff);
}

.kumai-overview-guide-hide:hover {
  border-color: color-mix(in srgb, var(--foreground, #111827) 24%, var(--border, #e5e7eb));
  background: var(--muted, #f3f4f6);
}

.kumai-overview-guide-primary:hover {
  background: color-mix(in srgb, var(--foreground, #111827) 88%, transparent);
}

.kumai-overview-guide-hide:active,
.kumai-overview-guide-primary:active {
  transform: translateY(1px);
}

.kumai-overview-guide-hide:focus-visible,
.kumai-overview-guide-primary:focus-visible,
.kumai-overview-guide-step a:focus-visible,
.kumai-overview-guide-request-head button:focus-visible,
.kumai-overview-guide-recommendation-list a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--kumai-overview-blue) 54%, transparent);
  outline-offset: 2px;
}

.kumai-overview-guide-hide svg,
.kumai-overview-guide-primary svg {
  width: 13px;
  height: 13px;
}

.kumai-overview-guide-body {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 37%);
  gap: 16px;
  align-items: stretch;
}

.kumai-overview-guide-steps {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kumai-overview-guide-steps::before {
  position: absolute;
  z-index: 0;
  top: 31px;
  bottom: 31px;
  left: 16px;
  width: 1px;
  background: var(--border, #e5e7eb);
  content: "";
}

.kumai-overview-guide-step {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.kumai-overview-guide-marker {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 50%;
  background: var(--card, #ffffff);
  color: var(--muted-foreground, #6b7280);
}

.kumai-overview-guide-number {
  font-size: 11px;
  font-weight: 700;
}

.kumai-overview-guide-check {
  display: none;
}

.kumai-overview-guide-check svg {
  width: 15px;
  height: 15px;
}

.kumai-overview-guide-step[data-complete="true"] .kumai-overview-guide-marker {
  border-color: color-mix(in srgb, var(--kumai-overview-green) 30%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--kumai-overview-green) 9%, var(--card, #ffffff));
  color: var(--kumai-overview-green);
}

.kumai-overview-guide-step[data-complete="true"] .kumai-overview-guide-number {
  display: none;
}

.kumai-overview-guide-step[data-complete="true"] .kumai-overview-guide-check {
  display: grid;
}

.kumai-overview-guide-step a {
  display: grid;
  min-width: 0;
  min-height: 62px;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--background, #ffffff);
  color: var(--foreground, #111827);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.kumai-overview-guide-step a:hover {
  border-color: color-mix(in srgb, var(--foreground, #111827) 24%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--muted, #f3f4f6) 58%, var(--background, #ffffff));
  transform: translateX(2px);
}

.kumai-overview-guide-step-icon,
.kumai-overview-guide-recommendation-icon,
.kumai-overview-guide-status-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--muted, #f3f4f6);
  color: var(--foreground, #111827);
}

.kumai-overview-guide-step-icon {
  width: 32px;
  height: 32px;
}

.kumai-overview-guide-step-icon svg {
  width: 14px;
  height: 14px;
}

.kumai-overview-guide-step-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.kumai-overview-guide-step-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kumai-overview-guide-step-copy span {
  overflow: hidden;
  color: var(--muted-foreground, #6b7280);
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kumai-overview-guide-step-arrow {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--muted-foreground, #6b7280);
}

.kumai-overview-guide-step-arrow svg,
.kumai-overview-guide-recommendation-arrow svg {
  width: 13px;
  height: 13px;
}

.kumai-overview-guide-request {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: var(--background, #ffffff);
}

.kumai-overview-guide-request-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  padding: 10px 12px;
}

.kumai-overview-guide-request-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.kumai-overview-guide-request-title > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--muted, #f3f4f6);
}

.kumai-overview-guide-request-title svg {
  width: 14px;
  height: 14px;
}

.kumai-overview-guide-request-title h4,
.kumai-overview-guide-request-title p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kumai-overview-guide-request-title h4 {
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.kumai-overview-guide-request-title p {
  color: var(--muted-foreground, #6b7280);
  font-size: 10px;
  line-height: 15px;
}

.kumai-overview-guide-request-head button {
  display: inline-flex;
  min-height: 27px;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 0 8px;
  background: var(--background, #ffffff);
  color: var(--foreground, #111827);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.kumai-overview-guide-request-head button:hover,
.kumai-overview-guide-request-head button[data-copied="true"] {
  background: var(--muted, #f3f4f6);
}

.kumai-overview-guide-request-head button[data-copied="true"] {
  color: var(--kumai-overview-green);
}

.kumai-overview-guide-request-head button svg {
  width: 12px;
  height: 12px;
}

.kumai-overview-guide-code {
  position: relative;
  min-height: 128px;
  margin: 0;
  overflow: auto;
  padding: 26px 13px 13px;
  background: color-mix(in srgb, var(--muted, #f3f4f6) 72%, var(--background, #ffffff));
  color: var(--foreground, #111827);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  line-height: 17px;
  white-space: pre;
}

.kumai-overview-guide-code::before {
  position: absolute;
  top: 11px;
  left: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 11px 0 0 #e5a000, 22px 0 0 #0f9f6e;
  content: "";
}

.kumai-overview-guide-status-list {
  display: grid;
}

.kumai-overview-guide-status-list > div {
  display: grid;
  min-width: 0;
  min-height: 37px;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border-top: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 72%, transparent);
  padding: 6px 11px;
}

.kumai-overview-guide-status-list > div:first-child {
  border-top: 0;
}

.kumai-overview-guide-status-icon {
  width: 25px;
  height: 25px;
}

.kumai-overview-guide-status-icon svg {
  width: 12px;
  height: 12px;
}

.kumai-overview-guide-status-list strong,
.kumai-overview-guide-status-value {
  overflow: hidden;
  font-size: 10px;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kumai-overview-guide-status-list strong {
  font-weight: 600;
}

.kumai-overview-guide-status-value {
  max-width: 128px;
  color: var(--muted-foreground, #6b7280);
  text-align: right;
}

.kumai-overview-guide-status-online {
  color: var(--kumai-overview-green);
}

.kumai-overview-guide-recommendations {
  padding: 20px;
}

.kumai-overview-guide-recommendations-head {
  margin-bottom: 17px;
}

.kumai-overview-guide-recommendations-head span {
  color: var(--muted-foreground, #6b7280);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.kumai-overview-guide-recommendations-head h4 {
  margin: 3px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
}

.kumai-overview-guide-recommendation-list {
  display: grid;
  gap: 8px;
}

.kumai-overview-guide-recommendation-list a {
  display: grid;
  min-width: 0;
  min-height: 66px;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--background, #ffffff);
  color: var(--foreground, #111827);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.kumai-overview-guide-recommendation-list a:hover {
  border-color: color-mix(in srgb, var(--foreground, #111827) 24%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--muted, #f3f4f6) 58%, var(--background, #ffffff));
  transform: translateX(2px);
}

.kumai-overview-guide-recommendation-icon {
  width: 36px;
  height: 36px;
}

.kumai-overview-guide-recommendation-icon svg {
  width: 15px;
  height: 15px;
}

.kumai-overview-guide-recommendation-list a > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.kumai-overview-guide-recommendation-list strong,
.kumai-overview-guide-recommendation-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kumai-overview-guide-recommendation-list strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.kumai-overview-guide-recommendation-list small {
  color: var(--muted-foreground, #6b7280);
  font-size: 10px;
  line-height: 15px;
}

.kumai-overview-guide-recommendation-arrow {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: var(--muted-foreground, #6b7280);
}

.kumai-overview-dashboard {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: minmax(76px, auto);
  gap: 16px;
  align-items: stretch;
}

.kumai-overview-dashboard[data-empty="true"] {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
}

.kumai-overview-dashboard-empty {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed color-mix(in srgb, var(--border, #e5e7eb) 86%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--muted, #f3f4f6) 24%, transparent);
  color: var(--muted-foreground, #6b7280);
  text-align: center;
}

.kumai-overview-dashboard-empty[hidden] {
  display: none;
}

.kumai-overview-dashboard-empty > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 50%;
  background: var(--card, #ffffff);
  color: var(--foreground, #111827);
}

.kumai-overview-dashboard-empty svg {
  width: 16px;
  height: 16px;
}

.kumai-overview-dashboard-empty strong {
  color: var(--foreground, #111827);
  font-size: 13px;
  font-weight: 600;
}

.kumai-overview-dashboard-empty p {
  margin: 0;
  font-size: 11px;
}

.kumai-overview-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 1rem;
  background: var(--card, #ffffff);
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.kumai-overview-dashboard > .kumai-overview-chart-card {
  grid-column: span 8;
  grid-row: span 3;
}

.kumai-overview-dashboard > .kumai-overview-metric-card {
  grid-column: span 3;
  grid-row: span 2;
}

.kumai-overview-card-editor {
  position: absolute;
  z-index: 8;
  top: 8px;
  right: 8px;
  display: flex;
  height: 28px;
  align-items: center;
  gap: 2px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 92%, transparent);
  border-radius: 8px;
  padding: 2px;
  background: color-mix(in srgb, var(--card, #ffffff) 92%, transparent);
  box-shadow: 0 5px 16px color-mix(in srgb, #000000 10%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 140ms ease, transform 140ms ease;
  backdrop-filter: blur(8px);
}

.kumai-overview-card-editor button,
.kumai-overview-card-drag {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  color: var(--muted-foreground, #6b7280);
}

.kumai-overview-card-editor button {
  cursor: pointer;
}

.kumai-overview-card-editor button:hover {
  background: var(--muted, #f3f4f6);
  color: var(--foreground, #111827);
}

.kumai-overview-card-editor button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--kumai-overview-blue) 54%, transparent);
  outline-offset: 1px;
}

.kumai-overview-card-editor button:disabled {
  opacity: 0.3;
  cursor: default;
}

.kumai-overview-card-editor svg,
.kumai-overview-card-drag svg {
  width: 13px;
  height: 13px;
}

.kumai-overview-card-drag {
  cursor: grab;
}

.kumai-overview-root[data-editing="true"] .kumai-overview-dashboard > .kumai-overview-card {
  cursor: grab;
}

.kumai-overview-root[data-editing="true"] .kumai-overview-dashboard > .kumai-overview-card:hover,
.kumai-overview-root[data-editing="true"] .kumai-overview-dashboard > .kumai-overview-card:focus,
.kumai-overview-root[data-editing="true"] .kumai-overview-dashboard > .kumai-overview-card:focus-within {
  border-color: color-mix(in srgb, var(--kumai-overview-blue) 42%, var(--border, #e5e7eb));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--kumai-overview-blue) 9%, transparent);
  outline: 0;
}

.kumai-overview-root[data-editing="true"] .kumai-overview-dashboard > .kumai-overview-card:hover .kumai-overview-card-editor,
.kumai-overview-root[data-editing="true"] .kumai-overview-dashboard > .kumai-overview-card:focus .kumai-overview-card-editor,
.kumai-overview-root[data-editing="true"] .kumai-overview-dashboard > .kumai-overview-card:focus-within .kumai-overview-card-editor {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.kumai-overview-root[data-editing="true"] .kumai-overview-card[data-dragging="true"] {
  z-index: 9;
  opacity: 0.55;
  cursor: grabbing;
  transform: scale(0.99);
}

.kumai-overview-root[data-editing="true"] .kumai-overview-card[data-drop-position] {
  border-color: var(--kumai-overview-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kumai-overview-blue) 18%, transparent);
}

.kumai-overview-delete-target {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  background: color-mix(in srgb, var(--kumai-overview-coral) 12%, var(--card, #ffffff));
  color: var(--kumai-overview-coral);
  cursor: pointer;
}

.kumai-overview-delete-target span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--kumai-overview-coral) 28%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--card, #ffffff) 88%, transparent);
}

.kumai-overview-delete-target svg {
  width: 16px;
  height: 16px;
}

.kumai-overview-delete-target strong {
  font-size: 12px;
  font-weight: 600;
}

.kumai-overview-root[data-delete-mode="true"] .kumai-overview-dashboard > .kumai-overview-card {
  border-color: color-mix(in srgb, var(--kumai-overview-coral) 36%, var(--border, #e5e7eb));
  cursor: pointer;
}

.kumai-overview-root[data-delete-mode="true"] .kumai-overview-dashboard > .kumai-overview-card:hover .kumai-overview-delete-target,
.kumai-overview-root[data-delete-mode="true"] .kumai-overview-dashboard > .kumai-overview-card:focus .kumai-overview-delete-target {
  display: flex;
}

.kumai-overview-root[data-delete-mode="true"] .kumai-overview-card-editor {
  display: none;
}

.kumai-overview-chart-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 20px;
}

.kumai-overview-chart-head {
  display: flex;
  min-height: 30px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.kumai-overview-chart-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.kumai-overview-chart-title {
  margin: 0;
  color: var(--muted-foreground, #6b7280);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.kumai-overview-chart-granularity {
  color: var(--muted-foreground, #6b7280);
  font-size: 12px;
  font-weight: 500;
}

.kumai-overview-chart-icon,
.kumai-overview-metric-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.8rem;
}

.kumai-overview-chart-icon {
  width: 32px;
  height: 32px;
  margin-top: -2px;
  background: var(--muted, #f3f4f6);
  color: var(--muted-foreground, #6b7280);
}

.kumai-overview-chart-icon svg {
  width: 16px;
  height: 16px;
}

.kumai-overview-chart-value {
  margin-top: 8px;
  color: var(--foreground, #111827);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0;
}

.kumai-overview-chart-canvas {
  position: relative;
  min-height: 120px;
  flex: 1 1 auto;
  margin-top: 8px;
}

.kumai-overview-chart-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  overflow: visible;
}

.kumai-overview-chart-grid-line {
  stroke: color-mix(in srgb, var(--border, #e5e7eb) 72%, transparent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.kumai-overview-chart-area {
  opacity: 0.16;
}

.kumai-overview-chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.kumai-overview-chart-point {
  opacity: 0;
  transition: opacity 140ms ease;
}

.kumai-overview-chart-point:hover {
  opacity: 1;
}

.kumai-overview-chart-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground, #6b7280);
  font-size: 11px;
}

.kumai-overview-chart-canvas[data-empty="true"] .kumai-overview-chart-empty {
  display: flex;
}

.kumai-overview-chart-axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3px;
  color: color-mix(in srgb, var(--muted-foreground, #6b7280) 82%, transparent);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.kumai-overview-chart-axis span:nth-child(2) {
  text-align: center;
}

.kumai-overview-chart-axis span:last-child {
  text-align: right;
}

.kumai-overview-chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted-foreground, #6b7280);
  font-size: 11px;
  line-height: 1.4;
}

.kumai-overview-chart-foot strong {
  color: var(--foreground, #111827);
  font-weight: 500;
}

.kumai-overview-metric-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.kumai-overview-metric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kumai-overview-metric-label {
  min-width: 0;
  margin: 0;
  color: var(--muted-foreground, #6b7280);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.kumai-overview-metric-icon {
  width: 32px;
  height: 32px;
}

.kumai-overview-metric-icon svg {
  width: 16px;
  height: 16px;
}

.kumai-tone-green {
  background: color-mix(in srgb, var(--kumai-overview-green) 10%, var(--card, #ffffff));
  color: var(--kumai-overview-green);
}

.kumai-tone-blue {
  background: color-mix(in srgb, var(--kumai-overview-blue) 9%, var(--card, #ffffff));
  color: var(--kumai-overview-blue);
}

.kumai-tone-amber {
  background: color-mix(in srgb, var(--kumai-overview-amber) 10%, var(--card, #ffffff));
  color: var(--kumai-overview-amber);
}

.kumai-tone-cyan {
  background: color-mix(in srgb, var(--kumai-overview-cyan) 9%, var(--card, #ffffff));
  color: var(--kumai-overview-cyan);
}

.kumai-tone-coral {
  background: color-mix(in srgb, var(--kumai-overview-coral) 9%, var(--card, #ffffff));
  color: var(--kumai-overview-coral);
}

.kumai-tone-violet {
  background: color-mix(in srgb, var(--kumai-overview-violet) 9%, var(--card, #ffffff));
  color: var(--kumai-overview-violet);
}

.kumai-overview-metric-value {
  overflow-wrap: anywhere;
  margin-top: 14px;
  color: var(--foreground, #111827);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0;
}

.kumai-overview-metric-description {
  margin: 8px 0 0;
  color: var(--muted-foreground, #6b7280);
  font-size: 11px;
  line-height: 16px;
}

.kumai-overview-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.kumai-overview-secondary-card {
  min-height: 178px;
  padding: 20px;
}

.kumai-overview-secondary-head {
  display: flex;
  min-height: 34px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.kumai-overview-secondary-copy {
  min-width: 0;
}

.kumai-overview-secondary-title {
  margin: 0;
  color: var(--foreground, #111827);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.kumai-overview-secondary-subtitle {
  margin: 4px 0 0;
  color: var(--muted-foreground, #6b7280);
  font-size: 12px;
  line-height: 18px;
}

.kumai-overview-secondary-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.8rem;
}

.kumai-overview-secondary-icon svg {
  width: 16px;
  height: 16px;
}

.kumai-overview-notice-empty {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  border-top: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 74%, transparent);
  color: var(--foreground, #111827);
}

.kumai-overview-notice-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--kumai-overview-amber) 22%, var(--border, #e5e7eb));
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--kumai-overview-amber) 8%, var(--card, #ffffff));
  color: var(--kumai-overview-amber);
}

.kumai-overview-notice-mark svg {
  width: 15px;
  height: 15px;
}

.kumai-overview-notice-empty strong {
  display: block;
  color: color-mix(in srgb, var(--foreground, #111827) 82%, transparent);
  font-size: 12px;
  font-weight: 600;
}

.kumai-overview-notice-empty p {
  margin: 4px 0 0;
  color: var(--muted-foreground, #6b7280);
  font-size: 11px;
  line-height: 16px;
}

.kumai-overview-notice-list {
  margin-top: 15px;
  border-top: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 74%, transparent);
}

.kumai-overview-notice-item {
  position: relative;
  padding: 12px 0 12px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 74%, transparent);
}

.kumai-overview-notice-item:last-child {
  border-bottom: 0;
}

.kumai-overview-notice-item::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--kumai-overview-amber);
  content: "";
}

.kumai-overview-notice-item-success::before {
  background: var(--kumai-overview-green);
}

.kumai-overview-notice-item-warning::before {
  background: var(--kumai-overview-amber);
}

.kumai-overview-notice-item-error::before {
  background: var(--kumai-overview-coral);
}

.kumai-overview-notice-item-ongoing::before {
  background: var(--kumai-overview-blue);
}

.kumai-overview-notice-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kumai-overview-notice-type {
  display: inline-flex;
  min-height: 19px;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: color-mix(in srgb, var(--kumai-overview-amber) 10%, var(--card, #ffffff));
  color: var(--kumai-overview-amber);
  font-size: 10px;
  font-weight: 600;
}

.kumai-overview-notice-item-success .kumai-overview-notice-type {
  background: color-mix(in srgb, var(--kumai-overview-green) 10%, var(--card, #ffffff));
  color: var(--kumai-overview-green);
}

.kumai-overview-notice-item-error .kumai-overview-notice-type {
  background: color-mix(in srgb, var(--kumai-overview-coral) 10%, var(--card, #ffffff));
  color: var(--kumai-overview-coral);
}

.kumai-overview-notice-item-ongoing .kumai-overview-notice-type {
  background: color-mix(in srgb, var(--kumai-overview-blue) 10%, var(--card, #ffffff));
  color: var(--kumai-overview-blue);
}

.kumai-overview-notice-item time {
  color: var(--muted-foreground, #6b7280);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kumai-overview-notice-content {
  margin: 7px 0 0;
  color: color-mix(in srgb, var(--foreground, #111827) 84%, transparent);
  font-size: 12px;
  line-height: 18px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.kumai-overview-notice-extra {
  margin: 5px 0 0;
  color: var(--muted-foreground, #6b7280);
  font-size: 11px;
  line-height: 16px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.kumai-overview-common-links {
  display: block;
  margin-top: 0;
}

.kumai-overview-links-empty {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-foreground, #6b7280);
  font-size: 11px;
}

.kumai-overview-links-empty-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 7px;
  color: color-mix(in srgb, var(--foreground, #111827) 54%, transparent);
}

.kumai-overview-links-empty-icon svg {
  width: 13px;
  height: 13px;
}

.kumai-overview-common-link {
  display: flex;
  min-width: 0;
  min-height: 63px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 74%, transparent);
  padding: 13px 20px;
  color: inherit;
  transition: background-color 160ms ease;
}

.kumai-overview-common-link:hover {
  background: color-mix(in srgb, var(--kumai-overview-blue) 4%, var(--card, #ffffff));
}

.kumai-overview-common-link:last-child {
  border-bottom: 0;
}

.kumai-overview-common-links-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.kumai-overview-common-links-card .kumai-overview-secondary-head {
  min-height: 47px;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 78%, transparent);
  padding: 0 20px;
}

.kumai-overview-common-links-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.kumai-overview-common-links-heading-icon {
  display: flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--foreground, #111827) 58%, transparent);
}

.kumai-overview-common-links-heading-icon svg {
  width: 15px;
  height: 15px;
}

.kumai-overview-common-link-primary {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.kumai-overview-common-link-primary:focus-visible,
.kumai-overview-common-link-action:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--kumai-overview-blue) 54%, transparent);
  outline-offset: 2px;
}

.kumai-overview-common-link-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.kumai-overview-common-link-dot-blue {
  background: #2f7df6;
}

.kumai-overview-common-link-dot-cyan {
  background: #16b9d4;
}

.kumai-overview-common-link-dot-green {
  background: #11b990;
}

.kumai-overview-common-link-dot-pink {
  background: #e35a9d;
}

.kumai-overview-common-link-dot-purple,
.kumai-overview-common-link-dot-violet {
  background: #8b5cf6;
}

.kumai-overview-common-link-dot-red {
  background: #ef4444;
}

.kumai-overview-common-link-dot-orange,
.kumai-overview-common-link-dot-amber {
  background: #f59e0b;
}

.kumai-overview-common-link-dot-yellow {
  background: #eab308;
}

.kumai-overview-common-link-dot-lime {
  background: #84cc16;
}

.kumai-overview-common-link-dot-teal {
  background: #14b8a6;
}

.kumai-overview-common-link-dot-indigo {
  background: #6366f1;
}

.kumai-overview-common-link-dot-slate {
  background: #64748b;
}

.kumai-overview-common-link-copy {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.kumai-overview-common-link-meta {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 9px;
}

.kumai-overview-common-link-copy strong,
.kumai-overview-common-link-copy small,
.kumai-overview-common-link-copy code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kumai-overview-common-link-copy strong {
  color: var(--foreground, #111827);
  font-size: 12px;
  font-weight: 600;
}

.kumai-overview-common-link-copy small {
  color: var(--muted-foreground, #6b7280);
  font-size: 10px;
  line-height: 14px;
}

.kumai-overview-common-link-copy code {
  display: block;
  margin-top: 4px;
  color: color-mix(in srgb, var(--muted-foreground, #6b7280) 80%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 14px;
}

.kumai-overview-common-link-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 15px;
}

.kumai-overview-common-link-action {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: color-mix(in srgb, var(--foreground, #111827) 78%, transparent);
  cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.kumai-overview-common-link-action:hover {
  color: var(--kumai-overview-blue);
  transform: translateY(-1px);
}

.kumai-overview-common-link-action[data-copied] {
  color: var(--kumai-overview-green);
}

.kumai-overview-common-link-action svg {
  width: 14px;
  height: 14px;
}

.kumai-overview-statusbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 11px;
  color: var(--muted-foreground, #6b7280);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.kumai-overview-statusbar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--kumai-overview-green);
}

.kumai-overview-editor-dock {
  position: fixed;
  z-index: 40;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 999px;
  padding: 8px;
  background: color-mix(in srgb, var(--background, #ffffff) 90%, transparent);
  box-shadow: 0 12px 34px color-mix(in srgb, #000000 16%, transparent);
  opacity: 0.42;
  transform: translateX(-50%);
  transition: opacity 160ms ease;
  backdrop-filter: blur(10px);
}

.kumai-overview-root[data-editing="true"] .kumai-overview-editor-dock {
  display: flex;
}

.kumai-overview-editor-dock:hover,
.kumai-overview-editor-dock:focus-within {
  opacity: 1;
}

.kumai-overview-editor-dock button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0;
  background: var(--kumai-overview-blue);
  color: var(--primary-foreground, #ffffff);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.kumai-overview-editor-dock button + button {
  border-color: var(--border, #e5e7eb);
  background: var(--background, #ffffff);
  color: var(--muted-foreground, #6b7280);
}

.kumai-overview-editor-dock button:hover {
  transform: translateY(-1px);
}

.kumai-overview-editor-dock button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--kumai-overview-blue) 54%, transparent);
  outline-offset: 2px;
}

.kumai-overview-root[data-delete-mode="true"] .kumai-overview-editor-dock button[data-action="toggle-delete-mode"] {
  border-color: color-mix(in srgb, var(--kumai-overview-coral) 34%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--kumai-overview-coral) 12%, var(--background, #ffffff));
  color: var(--kumai-overview-coral);
}

.kumai-overview-editor-dock svg {
  width: 15px;
  height: 15px;
}

.kumai-overview-dialog-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: color-mix(in srgb, #000000 34%, transparent);
  backdrop-filter: blur(4px);
}

.kumai-overview-dialog-backdrop[aria-hidden="false"] {
  display: flex;
}

.kumai-overview-dialog {
  display: flex;
  width: min(520px, 100%);
  max-height: min(640px, calc(100vh - 32px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--popover, var(--card, #ffffff));
  color: var(--popover-foreground, var(--foreground, #111827));
  box-shadow: 0 24px 64px color-mix(in srgb, #000000 24%, transparent);
}

.kumai-overview-dialog-header,
.kumai-overview-dialog-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.kumai-overview-dialog-header {
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.kumai-overview-dialog-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 22px;
}

.kumai-overview-dialog-header p {
  margin: 3px 0 0;
  color: var(--muted-foreground, #6b7280);
  font-size: 11px;
  line-height: 16px;
}

.kumai-overview-dialog-header > button {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: transparent;
  color: var(--muted-foreground, #6b7280);
  cursor: pointer;
}

.kumai-overview-dialog-header > button:hover {
  background: var(--muted, #f3f4f6);
  color: var(--foreground, #111827);
}

.kumai-overview-dialog-header svg {
  width: 15px;
  height: 15px;
}

.kumai-overview-card-form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.kumai-overview-card-form-body {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  overflow-y: auto;
  padding: 16px;
}

.kumai-overview-form-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--foreground, #111827);
  font-size: 11px;
  font-weight: 600;
}

.kumai-overview-form-field > span,
.kumai-overview-form-range > label {
  line-height: 16px;
}

.kumai-overview-form-field input,
.kumai-overview-form-field select {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--background, #ffffff);
  color: var(--foreground, #111827);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  outline: none;
}

.kumai-overview-form-field select {
  cursor: pointer;
}

.kumai-overview-form-field input::placeholder {
  color: color-mix(in srgb, var(--muted-foreground, #6b7280) 72%, transparent);
}

.kumai-overview-form-field input:hover,
.kumai-overview-form-field select:hover {
  border-color: color-mix(in srgb, var(--foreground, #111827) 24%, var(--border, #e5e7eb));
}

.kumai-overview-form-field input:focus,
.kumai-overview-form-field select:focus {
  border-color: color-mix(in srgb, var(--kumai-overview-blue) 62%, var(--border, #e5e7eb));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kumai-overview-blue) 12%, transparent);
}

.kumai-overview-form-field input[aria-invalid="true"] {
  border-color: var(--kumai-overview-coral);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kumai-overview-coral) 10%, transparent);
}

.kumai-overview-form-range {
  grid-column: 1 / -1;
}

.kumai-overview-range-presets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.kumai-overview-range-presets button {
  min-width: 0;
  height: 28px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 7px;
  padding: 0 5px;
  background: var(--background, #ffffff);
  color: var(--muted-foreground, #6b7280);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.kumai-overview-range-presets button:hover,
.kumai-overview-range-presets button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--kumai-overview-blue) 42%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--kumai-overview-blue) 8%, var(--background, #ffffff));
  color: var(--kumai-overview-blue);
}

.kumai-overview-range-presets button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--kumai-overview-blue) 54%, transparent);
  outline-offset: 2px;
}

.kumai-overview-form-error {
  margin: 0;
  color: var(--kumai-overview-coral);
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
}

.kumai-overview-restore-section {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid var(--border, #e5e7eb);
  padding-top: 14px;
}

.kumai-overview-restore-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 7px;
}

.kumai-overview-restore-heading strong {
  font-size: 11px;
  font-weight: 600;
}

.kumai-overview-restore-heading span {
  color: var(--muted-foreground, #6b7280);
  font-size: 10px;
}

.kumai-overview-dialog-list {
  max-height: 180px;
  overflow-y: auto;
  padding: 2px 0;
}

.kumai-overview-library-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  border-radius: 8px;
  padding: 8px;
}

.kumai-overview-library-item:hover {
  background: color-mix(in srgb, var(--muted, #f3f4f6) 72%, transparent);
}

.kumai-overview-library-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
}

.kumai-overview-library-icon svg {
  width: 16px;
  height: 16px;
}

.kumai-overview-library-copy {
  display: block;
  min-width: 0;
}

.kumai-overview-library-copy strong,
.kumai-overview-library-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kumai-overview-library-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.kumai-overview-library-copy small {
  margin-top: 3px;
  color: var(--muted-foreground, #6b7280);
  font-size: 10px;
}

.kumai-overview-library-item > button,
.kumai-overview-dialog-footer > button {
  display: inline-flex;
  min-width: 0;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--background, #ffffff);
  color: var(--foreground, #111827);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.kumai-overview-dialog-footer > button svg {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.kumai-overview-library-item > button:hover,
.kumai-overview-dialog-footer > button:hover {
  background: var(--muted, #f3f4f6);
}

.kumai-overview-library-item > button:focus-visible,
.kumai-overview-dialog-header > button:focus-visible,
.kumai-overview-dialog-footer > button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--kumai-overview-blue) 54%, transparent);
  outline-offset: 2px;
}

.kumai-overview-library-item > button svg {
  width: 13px;
  height: 13px;
}

.kumai-overview-dialog-footer {
  border-top: 1px solid var(--border, #e5e7eb);
  justify-content: flex-end;
}

.kumai-overview-dialog-footer > span {
  color: var(--muted-foreground, #6b7280);
  font-size: 11px;
}

.kumai-overview-dialog-footer > button[type="submit"] {
  border-color: var(--foreground, #111827);
  background: var(--foreground, #111827);
  color: var(--background, #ffffff);
}

.kumai-overview-dialog-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted-foreground, #6b7280);
  text-align: center;
}

.kumai-overview-dialog-empty > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 50%;
  color: var(--foreground, #111827);
}

.kumai-overview-dialog-empty svg {
  width: 15px;
  height: 15px;
}

.kumai-overview-dialog-empty strong {
  color: var(--foreground, #111827);
  font-size: 12px;
  font-weight: 600;
}

.kumai-overview-dialog-empty p {
  margin: 0;
  font-size: 11px;
}

.kumai-overview-sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.kumai-overview-root[data-state="loading"] .kumai-overview-chart-value,
.kumai-overview-root[data-state="loading"] .kumai-overview-metric-value {
  width: 44%;
  min-width: 72px;
  height: 31px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--muted, #f3f4f6) 0%,
    color-mix(in srgb, var(--muted, #f3f4f6) 48%, var(--background, #ffffff)) 50%,
    var(--muted, #f3f4f6) 100%
  );
  background-size: 220% 100%;
  color: transparent;
  animation: kumai-overview-shimmer 1.25s linear infinite;
}

.kumai-overview-root[data-state="loading"] .kumai-overview-chart-canvas {
  opacity: 0.42;
}

.kumai-overview-root[data-state="error"] .kumai-overview-connection-dot,
.kumai-overview-root[data-state="error"] .kumai-overview-statusbar-dot {
  background: var(--kumai-overview-coral);
  box-shadow: none;
}

.kumai-overview-root[data-state="error"] .kumai-overview-connection-dot::after {
  display: none;
}

@keyframes kumai-overview-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes kumai-overview-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.68);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes kumai-overview-shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 1280px) {
  .kumai-overview-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  .kumai-overview-guide-recommendation-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kumai-overview-dashboard {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .kumai-overview-dashboard > .kumai-overview-chart-card {
    grid-column: span 3;
    grid-row: span 1;
  }

  .kumai-overview-dashboard > .kumai-overview-metric-card {
    grid-column: span 2;
    grid-row: span 1;
  }

  .kumai-overview-secondary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .kumai-overview-guide-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .kumai-overview-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kumai-overview-dashboard > .kumai-overview-chart-card {
    grid-column: span 2;
  }

  .kumai-overview-dashboard > .kumai-overview-metric-card {
    grid-column: span 1;
  }

  .kumai-overview-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  .kumai-overview-guide-head {
    flex-direction: column;
  }

  .kumai-overview-guide-head-actions {
    width: 100%;
  }

  .kumai-overview-guide-hide,
  .kumai-overview-guide-primary {
    flex: 1 1 0;
  }

  .kumai-overview-guide-recommendation-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .kumai-overview-secondary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .kumai-overview-header {
    min-height: 46px;
    align-items: center;
    padding: 12px 12px 10px;
  }

  .kumai-overview-content {
    padding: 4px 12px 12px;
  }

  .kumai-overview-title-group {
    gap: 7px;
  }

  .kumai-overview-title {
    font-size: 16px;
    line-height: 24px;
  }

  .kumai-overview-connection {
    font-size: 11px;
  }

  .kumai-overview-action-label {
    display: none;
  }

  .kumai-overview-action {
    width: 28px;
    padding: 0;
  }

  .kumai-overview-dashboard {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .kumai-overview-dashboard > .kumai-overview-chart-card,
  .kumai-overview-dashboard > .kumai-overview-metric-card {
    grid-column: span 1;
  }

  .kumai-overview-chart-card {
    min-height: 244px;
    padding: 16px;
  }

  .kumai-overview-metric-card {
    min-height: 136px;
    padding: 16px;
  }

  .kumai-overview-metric-value {
    font-size: 20px;
    line-height: 30px;
  }

  .kumai-overview-guide {
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .kumai-overview-guide-main,
  .kumai-overview-guide-recommendations {
    padding: 14px;
  }

  .kumai-overview-guide-head {
    gap: 14px;
    margin-bottom: 14px;
  }

  .kumai-overview-guide-title {
    font-size: 17px;
    line-height: 24px;
  }

  .kumai-overview-guide-head-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kumai-overview-guide-hide,
  .kumai-overview-guide-primary {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .kumai-overview-guide-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
  }

  .kumai-overview-guide-marker {
    width: 28px;
    height: 28px;
  }

  .kumai-overview-guide-steps::before {
    left: 14px;
  }

  .kumai-overview-guide-step a {
    min-height: 66px;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    gap: 8px;
    padding: 9px;
  }

  .kumai-overview-guide-step-icon {
    width: 30px;
    height: 30px;
  }

  .kumai-overview-guide-step-copy span {
    white-space: normal;
  }

  .kumai-overview-guide-code {
    max-width: 100%;
    min-height: 124px;
  }

  .kumai-overview-guide-status-value {
    max-width: 104px;
  }

  .kumai-overview-guide-recommendations-head {
    margin-bottom: 12px;
  }

  .kumai-overview-secondary-card {
    padding: 16px;
  }

  .kumai-overview-common-link {
    min-height: 59px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .kumai-overview-common-link-actions {
    gap: 9px;
  }

  .kumai-overview-editor-dock {
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .kumai-overview-dialog-backdrop {
    align-items: flex-end;
    padding: 10px;
  }

  .kumai-overview-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
  }

  .kumai-overview-card-form-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .kumai-overview-form-range,
  .kumai-overview-restore-section {
    grid-column: span 1;
  }

  .kumai-overview-range-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kumai-overview-dialog-header,
  .kumai-overview-dialog-footer {
    padding: 14px;
  }

  .kumai-overview-dialog-footer {
    flex-wrap: wrap;
  }

  .kumai-overview-dialog-footer > button {
    min-width: 96px;
    flex: 1 1 0;
  }
}

@media (hover: none) {
  .kumai-overview-root[data-editing="true"] .kumai-overview-card-editor {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .kumai-overview-root[data-editing="true"] .kumai-overview-editor-dock {
    opacity: 0.9;
  }

  .kumai-overview-root[data-delete-mode="true"] .kumai-overview-delete-target {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kumai-overview-root *,
  .kumai-overview-root *::before,
  .kumai-overview-root *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
