@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@400;500&family=Fraunces:opsz,wght@9..144,700&display=swap");

/* Painel Hermes — classes de componente. Cores, raios e sombras vêm só dos tokens. */
:root { --hm-gradient: linear-gradient(16deg, var(--coral-pulse), var(--sunset-amber) 85%); }

body {
  margin: 0; background: var(--linen); color: var(--graphite);
  font-family: var(--font-sans); font-size: 14px; line-height: 1.67; letter-spacing: .007em;
  font-feature-settings: "ss01" on, "cv11" on; -webkit-font-smoothing: antialiased;
}
.hm-pad { padding: var(--space-24); }
.hm-row { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: center; }
.hm-stack { display: flex; flex-direction: column; gap: var(--space-24); }

/* Tracked label + ponto */
.hm-label { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: .05em; line-height: 1.25; text-transform: uppercase; color: var(--slate); display: inline-flex; align-items: center; gap: 6px; }
.hm-label--sm { font-size: 10px; letter-spacing: .075em; }
.hm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--slate); flex: none; display: inline-block; }
.hm-dot--sm { width: 4px; height: 4px; }
.hm-dot--ember { background: var(--ember-red); }
.hm-dot--iris { background: var(--iris-glow); }
.hm-dot--blue { background: var(--signal-blue); }
.hm-dot--amber { background: var(--sunset-amber); }
.hm-dot--green { background: var(--emerald); }

/* Navegação em pílula */
.hm-nav { display: inline-flex; gap: 2px; padding: 6px; height: var(--nav-height); box-sizing: border-box; background: var(--paper); border-radius: var(--radius-navpill); box-shadow: var(--shadow-nav); }
.hm-nav button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: var(--radius-buttons); font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--graphite); }
.hm-nav button:hover { background: var(--lavender-mist); }
.hm-nav button:focus-visible { outline: 2px solid var(--iris-glow); outline-offset: 2px; }
.hm-nav button[aria-selected="true"] { background: var(--ash); color: var(--ink); }
.hm-nav button[aria-selected="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember-red); }

/* Card / widget */
.hm-card { background: var(--paper); border-radius: var(--radius-cards); padding: var(--space-24); box-shadow: var(--shadow-widget); display: flex; flex-direction: column; gap: var(--space-12); min-width: 0; }
.hm-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.hm-card__title { font-family: var(--font-ui); font-size: 20px; font-weight: 600; line-height: 1.38; letter-spacing: .1px; color: var(--ink); margin: 0; }
.hm-card--cream { background: var(--cream); }

/* KPI */
.hm-kpi { background: var(--paper); border-radius: var(--radius-cards); padding: 20px var(--space-24); box-shadow: var(--shadow-widget); display: flex; flex-direction: column; gap: var(--space-4); }
.hm-kpi__value { font-family: var(--font-ui); font-size: 31px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums; }
.hm-kpi__meta { font-size: 12px; color: var(--cool-gray); line-height: 1.4; }

/* Chip de link (contornado, nunca preenchido) */
.hm-chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-buttons); border: 1px solid var(--signal-blue); color: var(--signal-blue); font-family: var(--font-ui); font-size: 14px; font-weight: 500; line-height: 1.2; box-shadow: var(--shadow-chip); }
.hm-chip--iris { border-color: var(--iris-glow); color: var(--iris-glow); }
.hm-chip--quiet { border-color: var(--pearl); color: var(--graphite); box-shadow: none; }
.hm-chip:hover { background: var(--lavender-mist); }
.hm-chip:focus-visible { outline: 2px solid var(--iris-glow); outline-offset: 2px; }

/* Etiqueta pastel */
.hm-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-buttons); font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: .03em; line-height: 1.3; color: var(--graphite); background: var(--ash); white-space: nowrap; }
.hm-tag--violet { background: var(--tag-violet); }
.hm-tag--blue { background: var(--tag-blue); }
.hm-tag--amber { background: var(--tag-amber); }
.hm-tag--green { background: var(--tag-green); }
.hm-tag--rose { background: var(--tag-rose); }

/* Card de destaque em gradiente (um por tela) */
.hm-feature { background: var(--hm-gradient); color: var(--on-gradient); border-radius: var(--radius-cards); padding: var(--space-24); box-shadow: var(--shadow-warm); display: flex; flex-direction: column; gap: var(--space-8); }
.hm-feature__title { font-family: var(--font-ui); font-size: 20px; font-weight: 600; line-height: 1.38; margin: 0; }
.hm-feature__body { font-family: var(--font-ui); font-size: 16px; line-height: 1.5; margin: 0; }
.hm-feature .hm-chip { border-color: var(--on-gradient); color: var(--on-gradient); box-shadow: none; align-self: flex-start; }
.hm-feature .hm-chip:hover { background: rgba(255, 255, 255, .16); }

/* Lista de atividades / alertas */
.hm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hm-list li { display: grid; grid-template-columns: 6px 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--pearl); }
.hm-list li:first-child { border-top: 0; padding-top: 0; }
.hm-list .hm-dot { transform: translateY(-2px); }
.hm-list__text { color: var(--graphite); }
.hm-list__text b { font-weight: 600; color: var(--ink); }
.hm-list__time { font-family: var(--font-label); font-size: 10px; letter-spacing: .075em; text-transform: uppercase; color: var(--cool-gray); white-space: nowrap; }

/* Barra de progresso / distribuição */
.hm-bar { display: flex; height: 8px; border-radius: var(--radius-buttons); overflow: hidden; background: var(--mist); gap: 2px; }
.hm-bar span { display: block; height: 100%; }

/* Wireframe: placeholders */
.hm-ph { background: var(--ash); border-radius: var(--radius-images); border: 1px dashed var(--mist); display: flex; align-items: center; justify-content: center; color: var(--cool-gray); font-family: var(--font-label); font-size: 10px; letter-spacing: .075em; text-transform: uppercase; }
.hm-ph-line { height: 8px; border-radius: var(--radius-buttons); background: var(--ash); }

/* Kanban */
.hm-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
.hm-kanban__col { background: var(--ash); border-radius: var(--radius-images); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-8); min-height: 120px; }
.hm-kanban__col > .hm-label { padding: 4px 4px 0; }
.hm-kcard { background: var(--paper); border-radius: var(--radius-images); padding: 10px 12px; box-shadow: var(--shadow-widget); font-size: 13px; line-height: 1.4; color: var(--graphite); display: flex; flex-direction: column; gap: 6px; }
.hm-kcard .hm-label { font-size: 10px; }
