/* Hero graphic styles */

.hg-root {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg-elev);
}

.hg-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-inset);
  flex-shrink: 0;
}
.hg-dots { display: flex; gap: 6px; }
.hg-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
}
.hg-dots span:first-child { background: var(--accent); }
.hg-file {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.hg-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 500;
}
.hg-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: hg-pulse 1.6s ease-in-out infinite;
}
@keyframes hg-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 40%, transparent); }
  50% { opacity: 0.5; box-shadow: 0 0 0 8px transparent; }
}

.hg-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  flex: 1;
  min-height: 0;
}

.hg-editor {
  padding: 20px 0 20px 0;
  overflow: hidden;
  border-right: 1px solid var(--line-soft);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hg-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 2px 18px;
  white-space: pre;
  font-size: 13px;
  line-height: 1.8;
  min-height: 24px;
  transition: background .3s;
}
.hg-lineno {
  color: var(--ink-mute);
  opacity: 0.5;
  font-size: 11px;
  min-width: 18px;
  text-align: right;
  flex-shrink: 0;
}
.hg-linetext { color: var(--ink); position: relative; }

.hg-line-comment .hg-linetext { color: var(--ink-mute); font-style: italic; }
.hg-line-ghost .hg-linetext {
  color: var(--accent);
  opacity: 0.7;
}
.hg-line-accepted {
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  animation: hg-flash .6s ease-out;
}
.hg-line-accepted .hg-linetext {
  color: var(--ink);
}
.hg-line-accepted .hg-linetext::after {
  content: " ✓";
  color: var(--accent);
}
@keyframes hg-flash {
  0% { background: color-mix(in oklab, var(--accent) 40%, transparent); }
  100% { background: color-mix(in oklab, var(--accent) 10%, transparent); }
}

.hg-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 1px;
  animation: hg-blink 1s step-end infinite;
}
@keyframes hg-blink {
  50% { opacity: 0; }
}

.hg-sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 18px;
  background: var(--bg-elev);
  min-width: 0;
  font-size: 12px;
}

.hg-suggestion {
  padding: 14px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--accent) 10%, var(--bg-elev));
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
}
.hg-sug-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 600;
}
.hg-sug-text {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  animation: hg-slidein .5s var(--ease);
}
@keyframes hg-slidein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hg-activity { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hg-act-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  margin-bottom: 10px;
  font-weight: 500;
}
.hg-act-list { display: flex; flex-direction: column; gap: 4px; }
.hg-act-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  transition: all .3s var(--ease);
}
.hg-act-row.active {
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.hg-act-who {
  color: var(--ink-mute);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
  align-self: center;
}
.hg-act-row.active .hg-act-who { color: var(--accent); }
.hg-act-text { color: var(--ink); align-self: center; font-size: 11.5px; }
.hg-act-t { color: var(--ink-mute); font-size: 10px; align-self: center; }

.hg-meter { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.hg-meter-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.hg-meter-bar {
  height: 4px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.hg-meter-bar i {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--accent);
  transition: width .6s var(--ease);
  animation: hg-fill 2s var(--ease);
}
@keyframes hg-fill {
  from { width: 0; }
}

@media (max-width: 720px) {
  .hg-body { grid-template-columns: 1fr; }
  .hg-sidebar { border-top: 1px solid var(--line-soft); }
  .hg-meter { display: none; }
}
