:host {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #333;
}

.feed-container {
  padding: 16px;
  max-width: 1100px;
}

.page-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #1a1a2e;
}

fieldset {
  border: 1px solid #dde2ea;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 0 16px;

  legend {
    font-size: 11px;
    font-weight: 600;
    color: #5a6070;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 6px;
  }
}

.fs-inline {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;

  label {
    font-size: 11px;
    font-weight: 500;
    color: #5a6070;
    white-space: nowrap;
  }
}

.sel-input, .date-input, .num-input {
  height: 30px;
  border: 1px solid #cdd5e0;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 12px;
  color: #333;
  background: #fff;
  outline: none;

  &:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.12);
  }
}

.sel-input  { width: 150px; }
.date-input { width: 140px; }
.num-input  { width: 90px; }

.btn {
  height: 32px;
  padding: 0 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;

  &.btn-primary {
    background: #1a73e8;
    color: #fff;
    &:hover { background: #1558c0; }
  }
}

.status-msg {
  font-size: 12px;
  color: #1a73e8;
  margin: 8px 0;
  &.muted { color: #888; }
}

.table-scroll {
  overflow-x: auto;
}

.grid-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;

  th {
    background: #f5f7fa;
    padding: 8px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #5a6070;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #dde2ea;
    white-space: nowrap;

    &.num-col { text-align: right; }
  }

  td {
    padding: 6px 10px;
    border-bottom: 1px solid #eef0f4;
    font-size: 12px;

    &.num-col { text-align: right; font-variant-numeric: tabular-nums; }
  }

  tr:hover td { background: #f0f4ff; }
}

.source-badge {
  display: inline-block;
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;

  &.src-appraisal { background: #e8f0fe; color: #1a73e8; }
  &.src-okr       { background: #e8f5e9; color: #2e7d32; }
}

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f7fa;
  border: 1px solid #dde2ea;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a2e;
}

.muted-dash { color: #bbb; }

.row-count {
  font-size: 11px;
  color: #888;
  margin-top: 8px;
  text-align: right;
}
